From: Mike Brady Date: Sun, 10 Sep 2017 12:39:20 +0000 (+0100) Subject: Add a few "get" examples. X-Git-Tag: 3.2d8~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=500313859535cc6108046b6fc3d417a4bf39ae6a;p=thirdparty%2Fshairport-sync.git Add a few "get" examples. --- diff --git a/dbus/sample dbus-send calls b/dbus/sample dbus-send calls index e7681926..2bbf2ded 100644 --- a/dbus/sample dbus-send calls +++ b/dbus/sample dbus-send calls @@ -11,6 +11,11 @@ mike@ubuntu:~/sps$ dbus-send --system --print-reply --dest=org.gnome.ShairportSy > string:"LoudnessFilterActive" variant:boolean:true method return time=1505039217.715753 sender=:1.87 -> destination=:1.91 serial=27 reply_serial=2 +#Get the state of LoudnessFilterActive: +mike@ubuntu:~/sps$ dbus-send --system --print-reply --dest=org.gnome.ShairportSync /org/gnome/ShairportSync org.freedesktop.DBus.Properties.Get string:"org.gnome.ShairportSync" string:"LoudnessFilterActive" +method return time=1505047038.024401 sender=:1.131 -> destination=:1.144 serial=34 reply_serial=2 + variant boolean true + #Set the Loudness Threshold: mike@ubuntu:~/sps$ dbus-send --system --print-reply --dest=org.gnome.ShairportSync /org/gnome/ShairportSync org.freedesktop.DBus.Properties.Set string:"org.gnome.ShairportSync" string:"LoudnessThreshold" variant:double:-10.0 method return time=1505039378.650185 sender=:1.87 -> destination=:1.92 serial=61 reply_serial=2 @@ -19,4 +24,9 @@ method return time=1505039378.650185 sender=:1.87 -> destination=:1.92 serial=61 mike@ubuntu:~/sps$ dbus-send --system --print-reply --dest=org.gnome.ShairportSync /org/gnome/ShairportSync org.freedesktop.DBus.Properties.Set string:"org.gnome.ShairportSync" string:"Volume" variant:double:-13.5 method return time=1505039453.757603 sender=:1.87 -> destination=:1.93 serial=73 reply_serial=2 +#Get the Volume: +mike@ubuntu:~/sps$ dbus-send --system --print-reply --dest=org.gnome.ShairportSync /org/gnome/ShairportSync org.freedesktop.DBus.Properties.Get string:"org.gnome.ShairportSync" string:"Volume" +method return time=1505046937.165751 sender=:1.131 -> destination=:1.141 serial=30 reply_serial=2 + variant double -13.5 +