14.06.2021, 05:09
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:
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)