18.08.2017, 20:55
(This post was last modified: 18.08.2017, 21:12 by Erwin van der Zwart.)
Hi,
Sorry i gave wrong info, the numbering is always 1,2,3,4,5 etc, the gaps only counts for playlist id's.
I notice a mistake in loading a playlist, the play command is not executed after the load of a list (only with radio or single track), i will try to fix this in the next version.
For now you can solve it by sending a load command and after that the play command.
BR,
Erwin
Hi,
I assume your controller IP is 10.10.20.99 and your Sonos IP is 10.10.20.254
Run this from the browser to see the list ID's:
http://admin:admin@10.10.20.99/apps/data....10.20.254
Run this from script to call a list and use a listnumber received from command above:
BR,
Erwin
Sorry i gave wrong info, the numbering is always 1,2,3,4,5 etc, the gaps only counts for playlist id's.
I notice a mistake in loading a playlist, the play command is not executed after the load of a list (only with radio or single track), i will try to fix this in the next version.
For now you can solve it by sending a load command and after that the play command.
Code:
socket.http.request('http://127.0.0.1/apps/data/sonos/sonos.lp?action=playuri&ip=192.168.0.11&listtype=favorites&listnumber=1')
socket.http.request('http://127.0.0.1/apps/data/sonos/sonos.lp?action=play&ip=192.168.0.11')
BR,
Erwin
(18.08.2017, 12:08)kythas100Hello I tested them below to play a song from a playlist but it does not work me can someone help me? Wrote: http://10.10.20.99/apps/data/sonos/sonos....10.20.254
http://10.10.20.99/apps/data/sonos/sonos...stnumber=1
http://10.10.20.99/apps/data/sonos/sonos...play=false
Hi,
I assume your controller IP is 10.10.20.99 and your Sonos IP is 10.10.20.254
Run this from the browser to see the list ID's:
http://admin:admin@10.10.20.99/apps/data....10.20.254
Run this from script to call a list and use a listnumber received from command above:
Code:
socket.http.request('http://admin:admin@10.10.20.99/apps/data/sonos/sonos.lp?action=loadplaylist&ip=10.10.20.254&listnumber=1&autoplay=true')
BR,
Erwin