(24.09.2017, 08:18)Erwin van der Zwart Wrote: Hi,
Just tested it on my Sonos and it works as it should..
This is the command i used:
Code:-- Load modules
require('socket.http')
-- Set timout
socket.http.TIMEOUT = 5
-- Start say command - xxx.xxx.xxx.26 = my Sonos and xxx.xxx.xxx.203 = my homeLYnk
socket.http.request('http://127.0.0.1/apps/data/sonos/sonos.lp?action=say&ip=192.168.10.26&audiofile=http://192.168.10.203/user/deurbel.mp3&volume=50&duration=10')
BR,
Erwin
Thanks Erwin,
I have been using the same code as you but it does not work. Tried again, but this time increasing the duration time.... and that seem to have some effect.
socket.http.request('http://10.0.1.51/apps/data/sonos/sonos.lp?action=sayall&audiofile=http://10.0.1.51/user/doorbell.mp3&volume=30&duration=5') Changed duration to 30 made a difference...
Since the change in code i am (as mentioned before) experiencing a lag when loading a file from local source in the spacelynk. I have tried to use the sayall function together with loading a playlist instead, but I just can't get the command correct (keep getting false as a return value). This is the code I am using....
'http://10.0.1.51/apps/data/sonos/sonos.lp?action=sayall&loadplaylist&listnumber=11&volume=30&duration=10&autoplay=true'
Is there a error in my command?
BR
Mr.D