This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Sonos old function
#3
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 Smile
Reply


Messages In This Thread
Sonos old function - by zuuper - 25.01.2020, 21:58
RE: Sonos old function - by Joep - 27.01.2020, 07:50
RE: Sonos old function - by zuuper - 01.02.2020, 20:30
RE: Sonos old function - by zuuper - 01.02.2020, 21:56
RE: Sonos old function - by zuuper - 01.02.2020, 22:26
RE: Sonos old function - by zuuper - 02.02.2020, 16:06
RE: Sonos old function - by zuuper - 02.02.2020, 20:39
RE: Sonos old function - by davidchispas - 19.02.2020, 17:28
RE: Sonos old function - by davidchispas - 20.02.2020, 11:46

Forum Jump: