19.08.2017, 14:13
If you want Sonos to load tracks from LM, you have to upload to user folder using apps ftp account. The same folder is reachable from HTTP without user/password (only .lp files have authentication checks).
SONOS app
|
19.08.2017, 14:13
If you want Sonos to load tracks from LM, you have to upload to user folder using apps ftp account. The same folder is reachable from HTTP without user/password (only .lp files have authentication checks).
19.08.2017, 20:21
(This post was last modified: 19.08.2017, 20:59 by ivanposada.)
(19.08.2017, 12:54)Erwin van der Zwart Wrote: Hi, Yes, i tried also with credentials, and the same result... Code: 1 socket.http.request('http://admin:admin@127.0.0.1/apps/data/sonos/sonos.lp?action=loaduri&uuid=RINCON_000E58C103D601400&&listtype=favorites&listnumber=3&autoplay=true')And for access mp3 file into the homelynk... it doesn't work Code: 123 audiofile = socket.url.escape('http://admin:admin@127.0.0.1/Musica/track1.mp3')
socket.http.request('http://admin:admin@127.0.0.1/apps/data/sonos/sonos.lp?action=say&uuid=RINCON_000E58C103D601400&audiofile=' .. audiofile .. '&volume=30&duration=20') Can you try this commands on your homelynk? My firmware 2.0.1, and Sonos APP version 20170809. Thanks, Iván. (19.08.2017, 14:13)admin Wrote: If you want Sonos to load tracks from LM, you have to upload to user folder using apps ftp account. The same folder is reachable from HTTP without user/password (only .lp files have authentication checks). Hi, i don't understand it well. Can you explain it step by step? I have a Homelynk. I create a folder named "musica" in the FTP: Code: 1 ftp://ftp:ftp@192.168.0.91/musicaand i load a track "track1.mp3" on it. Thanks!!
19.08.2017, 22:10
(This post was last modified: 20.08.2017, 10:01 by Erwin van der Zwart.)
Hi,
Your audio file(s) probably cant be reached by the Sonos system. Like admin say's you have to upload it to the apps user folder. Open the ftp with credentials apps:apps instead of ftp:ftp, there you see a folder called 'user'. Upload the mp3 file there and use /apps/user/yourmusicfile.mp3 as path. BR, Erwin
20.08.2017, 17:27
(19.08.2017, 22:10)Erwin van der Zwart Wrote: Hi, Thank you!!! The access to mp3 file WORKS!!! Any news about the problems with: loadplaylist, loaduri and playuri??? Thanks again. Iván.
20.08.2017, 18:28
(This post was last modified: 20.08.2017, 18:29 by Erwin van der Zwart.)
Hi,
Just tested loadplaylist, loaduri and playuri and all 3 are working, after loadplaylist and loaduri you need to send the play command, playuri starts playing directly. I noticed you use UUID, i tested with IP, are you sure the auto discovery has run once in the app (conversion from UUID or name to IP is based on auto discovery result table from storage) BR, Erwin
20.08.2017, 20:42
(20.08.2017, 18:28)Erwin van der Zwart Wrote: Hi, Hi Erwin, I tested with IP instead UUID and is the same... I send you some attachments that recreates the problems: LOADPLAYLIST: see loadplaylist.jpg PLAYURI: when i am listening a radiostation with an empty queue (see Playing radiostation with empty queue.jpg), and then i execute PLAYURI Code: 1 http://192.168.0.91/apps/data/sonos/sonos.lp?action=playuri&ip=192.168.0.14&listtype=favorites&listnumber=5You say that the command playuri starts playing directly, but it don't start. If i send a PLAY command, no action is executed in Sonos, because it is playing radiostation. LOADURI: After execute this command: Code: 1 http://192.168.0.91/apps/data/sonos/sonos.lp?action=loaduri&ip=192.168.0.14&listtype=favorites&listnumber=5NOTE: Playuri works perfectly when the queue "is in use" before sending the command. Maybe missing a command to put the queue "in use" - "not in use" ?? Thanks, Iván
21.08.2017, 08:21
(This post was last modified: 21.08.2017, 08:23 by Erwin van der Zwart.)
Hi,
Loading playlists by ID is working, you probably call a non existing list. Load lists like this: Load playlist by name, playuri and loaduri needs to be checked as it's not work always as expected, a sended this to the current app developer ( i don't do this anymore for this app ). BR, Erwin
21.08.2017, 10:01
(21.08.2017, 08:21)Erwin van der Zwart Wrote: Hi, Ok, i'm calling a non existing list because the number of list in Sonos table is not equal at the ordenation in the APP. Now it works, but the "autoplay=true" only works when the queue "is in use". When you are listening a radiostation, it load the playlist in queue but the radiostation continues playing. The same for PLAYURI. "Loadplaylist" by name doesn't work. "Loadplaylist" by uuid doesn't work. Thanks Erwin!
29.08.2017, 09:34
Hello!!
I've seen a new version of Sonos APP in Homelynk Store. v20170825. What's new? Thanks. Iván.
29.08.2017, 09:45
(This post was last modified: 29.08.2017, 09:45 by Erwin van der Zwart.)
Hi,
No new features, only bug fixes. I was told that the issues mentioned above are fixed, but did not test it yet. BR, Erwin
29.08.2017, 10:16
(18.08.2017, 12:08)kythas100 Wrote:Hello I tried this: http://10.10.20.99/apps/data/sonos/sonos...oplay=true and it works but if a song is already playing in sonos it does not stop and start playing what's in the playlist. If a song does not play then it normally plays. Can someone help me?(19.10.2016, 09:51)Erwin van der Zwart Wrote: Hi Andreas,
29.08.2017, 10:58
(This post was last modified: 29.08.2017, 10:58 by Erwin van der Zwart.)
Hi,
Have you updated the Sonos app to yesterdays version? BR, Erwin
31.08.2017, 13:02
05.09.2017, 09:53
05.09.2017, 10:54
Hello!
We can ungroup Sonos zones with "setplayerasstandalonegroup", but, Can we GROUP zones? Defining the group coordinator Thanks.
05.09.2017, 11:16
Hi,
Yes you can do it with this command: Code: 1 socket.http.request('http://admin:admin@127.0.0.1/apps/data/sonos/sonos.lp?action=addplayertogroup&groupuuid=RINCON_000E58C103D601400&ip=192.168.0.101')groupuuid is the UUID from the player that will be master, ip is the address of the slave or change this parameter in &uuid=RINCON_000E58C103D601500 BR, Erwin
05.09.2017, 13:30
(05.09.2017, 11:16)Erwin van der Zwart Wrote: Hi, Hi Erwin, Thanks for the command! It doesn't appear in the list of commands. Are there any complete command list of posible actions??? This command makes a group, but it does an autoplay... Thanks!
05.09.2017, 13:47
(This post was last modified: 05.09.2017, 13:48 by Erwin van der Zwart.)
Hi,
I think all actions are already published but this one was missing from the list. All actions possible in the app are available in the API as the app triggers them from JS. There are no actions other then say and sayall added that are not possible from the app options. The autoplay is probably the state of the master Sonos when you add it, the slave gets same state as master... BR, Erwin (09.09.2017, 14:57)Mr. Danielsen Wrote: Hi, Anyone? (21.08.2017, 10:01)ivanposada Wrote:(21.08.2017, 08:21)Erwin van der Zwart Wrote: Hi, Hi, I am experiencing the same in regards to listening to a radio station. The queue loads, but the radio continues/starts playing instead of the track in queue. Did you find a work around for this? BR Mr.D |
« Next Oldest | Next Newest »
|