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
#4
Hi,

I created the API so I guess i can make it work for you (:

Few questions:

1) Do you use old or new Sonos app and uploaded only the .lp file? I guess the last.
2) Where did you store the mp3, given the url it seems to be on the normal FTP correct?
3) If you open a new browser session (don’t login to controller!) and open the url (without credentials in the url!) to the mp3, does your pc play the file?

Reasons why it might not work:

1) I think you use the sonos.lp file as a single file without ever running the old Sonos app, this can work but the old sonos app triggered a API action on startup to detect all Sonos devices and created a table in the storage with IP addresses and Rincon Id’s. All API actions are using this lookup table, when it’s not created once it won’t ever work. To trigger the action to create the lookup table manually (that the old app did on startup) you can try this: 
Code:
require('socket.http')
socket.http.timeout = 5
socket.http.request('http://127.0.0.1/user/sonos.lp?action=getsonosdata')

or

socket.http.request('http://127.0.0.1/user/sonos.lp?action=refreshsonosdata')
2) I see you have the file in Music folder, i think the URL that is passed is on a secured location and Sonos is not able to play it. Move the file to the apps ftp user folder and disable the need for password on the user folder in the user settings on the user tab.

BR,

Erwin
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 Erwin van der Zwart - 01.02.2020, 21:31
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: