Yesterday, 08:29
(Yesterday, 07:58)RomansP Wrote: Hi alexll
Here is a script
Code:require('socket.http')
require('json')
url = 'http://192.168.1.111:3000/api/v1/hvac?systemid=01&zoneid=15'
response = socket.http.request(url)
--log (response)
decoded = json.pdecode(response)
--log(decoded)
status = decoded.data[1]
grp.checkwrite('50/1/4', status.systemID)
grp.checkwrite('50/1/5', status.zoneID)
grp.checkwrite('50/1/6', status.name)
Great! Thank you so much!