21.07.2019, 11:11
Hi,
You only need sonos.lp and this API has nothing to do with the Sonos app and you can use it even without the appĀ installed..
I wrote this API for the previous version of the Sonos app but due to the certifcation of the Sonos app we where not allowed to embed the API in it.
You can use it separate like you do now, but there needs to be a table with your players before you can execute commands like you do now.
The table was created by the previous app on startup of the app so you did not need to take care of it, but now you use it seperate from the app so you must ttigger it at least one time, my recommendation is to run the command more often for any case something changes in your Sonos setup.
These are the command(s) that you need to trigger, use one of them as you think fits the action.
BR,
Erwin
You only need sonos.lp and this API has nothing to do with the Sonos app and you can use it even without the appĀ installed..
I wrote this API for the previous version of the Sonos app but due to the certifcation of the Sonos app we where not allowed to embed the API in it.
You can use it separate like you do now, but there needs to be a table with your players before you can execute commands like you do now.
The table was created by the previous app on startup of the app so you did not need to take care of it, but now you use it seperate from the app so you must ttigger it at least one time, my recommendation is to run the command more often for any case something changes in your Sonos setup.
These are the command(s) that you need to trigger, use one of them as you think fits the action.
Code:
-- Get sonos data from players, only new found players are added to the existing array, earlier discovered players are already stored and not updated to keep fast performance
http://127.0.0.1/apps/data/sonos/sonos.lp?action=getsonosdata
-- Remove all items from stored array and rediscover all players again from start, this will reduce speed performance (only trigger by button)
http://127.0.0.1/apps/data/sonos/sonos.lp?action=refreshsonosdata
BR,
Erwin