29.05.2020, 09:55
(This post was last modified: 29.05.2020, 09:56 by Erwin van der Zwart.)
Hi,
Apperently admin added the sonos.lua and changed the sonos.lp and i was unaware of this change (:
I removed all storage entry's before testing (so that couldn't influence the test) and uploaded the 2 new files to my ftp and runned this script:
I was playing a radio track from intune, it paused, went to a higer volume , played the doorbell.mp3 and reduced volume and continuud playing on intune.
There are no errors in my log so it seems to work perfect..
BR,
Erwin
Apperently admin added the sonos.lua and changed the sonos.lp and i was unaware of this change (:
I removed all storage entry's before testing (so that couldn't influence the test) and uploaded the 2 new files to my ftp and runned this script:
Code:
require('socket.http')
socket.http.timeout = 5
audiofile = socket.url.escape('http://192.168.10.200/user/deurbel.mp3')
ip = '192.168.10.206' -- change this to your Sonos IP
reply = socket.http.request('http://127.0.0.1/user/sonos.lp?action=say&ip=' .. ip .. '&audiofile=' .. audiofile .. '&volume=80&duration=20')
There are no errors in my log so it seems to work perfect..
BR,
Erwin