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 script on homeLynk
#5
You need to escape the audiofile parameter and it's better to use http to access files in user folder:
Code:
require('socket.url')
audiofile = socket.url.escape('http://192.168.0.203/user/there_is_someone_at_the_door.mp3')
reply = socket.http.request('http://admin:put7856@192.168.0.203/apps/data/sonos/sonos.lp?action=say&name=Keuken&audiofile=' .. audiofile .. '&volume=30&duration=5')
Reply


Messages In This Thread
sonos script on homeLynk - by stevesu - 22.06.2017, 14:08
RE: sonos script on homeLynk - by stevesu - 23.06.2017, 16:24
RE: sonos script on homeLynk - by stevesu - 06.07.2017, 07:15
RE: sonos script on homeLynk - by admin - 06.07.2017, 07:49

Forum Jump: