Hi, please help!)) Sonos does not play files with the old API ... (( where could there be an error?
require('socket.url')
require('socket.http')
socket.http.TIMEOUT = 5
reply = socket.http.request('http://198.168.0.10/user/sonos.lp?action=getsonosdata')
file = socket.url.escape('http://admin:pass@192.168.0.10/user/Mix_Lastochka.mp3')
reply = socket.http.request('http://admin:pass@192.168.0.10/user/sonos.lp?action=say&ip=192.168.0.32&audiofile=' .. file .. '&volume=90&duration=10')
log(reply)
require('socket.url')
require('socket.http')
socket.http.TIMEOUT = 5
reply = socket.http.request('http://198.168.0.10/user/sonos.lp?action=getsonosdata')
file = socket.url.escape('http://admin:pass@192.168.0.10/user/Mix_Lastochka.mp3')
reply = socket.http.request('http://admin:pass@192.168.0.10/user/sonos.lp?action=say&ip=192.168.0.32&audiofile=' .. file .. '&volume=90&duration=10')
log(reply)