27.01.2020, 07:50
(25.01.2020, 21:58)zuuper Wrote: Hi,Not sure if your audio url is correct. Doesn't it need http:// as a prefix? Like http://192.168.1.193/user/svararinte.mp3
I use the old code/function in LM to integrate with Sonos. I need a door-bell-function; stop music, play a door bell .mp3 and then back to music. I have tested with
http://192.168.1.193/user/sonos.lp?action=say&audiofile=192.168.1.193/user/svararinte.mp3&volume=50&duration=1&uuid=RINCON_000G166F5B8001400
192.168.1.193 is LM.
When I run the link, the music stops on the Sonos. I can see "svararinte.mp3" in my sonos-program:
BUT, it never starts. Nothing more hapends. Can anyone help me please?
If I manually click on "PLAY" in the Sonos program, it plays "svararinte.mp3"..
BR Alexander
What happens when you copy paste the url in your webbrowser? Does the audio file play?
Another solution is to check the complete API from the old Sonos script and use playlist or favorite to play this audio file.