06.10.2019, 13:09
(This post was last modified: 06.10.2019, 13:12 by Trond Hoyem.)
(11.09.2019, 07:47)Daniel. Wrote: HiHi Daniel
Here is how to use new Sonos app via script:
The app runs a daemon which keeps communication with each player/group The daemon will be closed down after 120s if no update is send so we need to run such script every 60s to keep communication up and running.
Code:require('custom.sonos.lib')
groupID=sonos_app.GetStoragePlayerGroups()
for k, v in pairs(groupID) do
sonos_app.SendApiActionCommand(k, 'watchPlayerGroup', os.time())
end
Is there a command for reading the volume level? If one wants a slider for volume, it would be good to be able to update the slider if the volume is changed from somewhere else than the LM-object.
There are 10 kinds of people in the world; those who can read binary and those who don't