Logic Machine Forum
Bose Processor - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Bose Processor (/showthread.php?tid=3420)



Bose Processor - YOUSSEF - 12.06.2021

Hello 
trying to control a bose processor ESP 880A via http request to set an input and change volume, 


https://firstandsecondhomes.com/assets/uploads/SoundTouchAPI_WebServices_v1.1.0.pdf


i used this exemple found and i still get "connexion failed"

http = require('socket.http')

IP = '192.168.5.160'
url = 'http://' .. IP .. ':8090/volume>$20'
res, err = http.request(url)
log(res, err)


any insights ?


RE: Bose Processor - admin - 14.06.2021

Can you ping this IP from LM (System config > Status > Network utilities)? Can you access this URL from your browser?
The code for setting the volume is incorrect, use this:
Code:
http = require('socket.http')

volume = 20
data = '<volume>' .. volume .. '</volume>'

IP = '192.168.5.160'
url = 'http://' .. IP .. ':8090/volume'

res, err = http.request(url, data)
log(res, err)