30.06.2020, 08:00
(This post was last modified: 30.06.2020, 08:18 by Trond Hoyem.)
(29.06.2020, 14:06)Erwin van der Zwart Wrote: Hi,
Try this script, it is stand alone and it does not uses any of the (old) Sonos App files
BR,
Erwin
Nothing happens when running it.
I changed the start of the script to;
Code:
playername = 'Kontor'
renew_stored_player_data = true -- set to true to force a network scan and renew stored player data table
audiofile = 'http://192.168.39.10/user/Ringeklokke.mp3'
duration = 10 -- duration of the audiofile
volume = 10
I am soon ready to give up the sonos integration. It seems that what I need to do is not possible, or I am just not able to do it...
What I need to do is the following:
- If I get a TRUE on my object, I want to play a mp3 file from the ftp of LM on a certain player.
- If I get a FALSE on my object, the playing of the mp3 shold stop.
I am able to play the file on the player I want with the old API created by Erwin. But it seems that to stop it when playing is not possible as it always play the complete file. As I am playing a file to indicate that the alarm is triggered, I naturally need the file to stop when I reset the alarm by entering the code.
Is this even possible, or should I simply tell the customer that we need to go for a totally different solution?
There are 10 kinds of people in the world; those who can read binary and those who don't