01.02.2020, 20:30
I've tested with http like you say. It does not help.
>Another solution is to check the complete API from the old Sonos script and use playlist or favorite to play this audio file.
Isn't that what I use?
My code is:
audiofile = socket.url.escape('http://admin:admin@192.168.1.193/Music/svararinte.mp3')
http.request('http://admin:admin@192.168.1.193/user/sonos.lp?action=say&uuid=RINCON_000F5668G5B8001400&audiofile=' .. audiofile .. '&volume=40&duration=1')
My Http:request return:
* arg: 1
* string: true
* arg: 2
* number: 200
* arg: 3
* table:
["access-control-request-method"]
* string: GET, POST
["transfer-encoding"]
* string: chunked
["connection"]
* string: close
["date"]
* string: Sat, 01 Feb 2020 20:17:45 GMT
["access-control-allow-headers"]
* string: authorization
["content-type"]
* string: text/html; charset=utf-8
["access-control-allow-origin"]
* string: *
* arg: 4
* string: HTTP/1.1 200 OK
Can anyone please help me so it works? I can pay € 100 to the one who fixes it for me
>Another solution is to check the complete API from the old Sonos script and use playlist or favorite to play this audio file.
Isn't that what I use?
My code is:
audiofile = socket.url.escape('http://admin:admin@192.168.1.193/Music/svararinte.mp3')
http.request('http://admin:admin@192.168.1.193/user/sonos.lp?action=say&uuid=RINCON_000F5668G5B8001400&audiofile=' .. audiofile .. '&volume=40&duration=1')
My Http:request return:
* arg: 1
* string: true
* arg: 2
* number: 200
* arg: 3
* table:
["access-control-request-method"]
* string: GET, POST
["transfer-encoding"]
* string: chunked
["connection"]
* string: close
["date"]
* string: Sat, 01 Feb 2020 20:17:45 GMT
["access-control-allow-headers"]
* string: authorization
["content-type"]
* string: text/html; charset=utf-8
["access-control-allow-origin"]
* string: *
* arg: 4
* string: HTTP/1.1 200 OK
Can anyone please help me so it works? I can pay € 100 to the one who fixes it for me
![Smile Smile](https://forum.logicmachine.net/images/smilies/smile.png)