23.04.2021, 09:20
Add some extra logging and post what you get in Logs tab:
Code:
http = require('socket.http')
json = require('json')
url = 'http://192.168.100.189/solar_api/v1/GetMeterRealtimeData.cgi?Scope=System'
resp, code = http.request(url)
log(resp, code)
data = json.decode(resp).Body.Data['0']
log(data)
grp.checkupdate('33/0/1', data.Current_AC_Sum)
grp.checkupdate('33/0/2', data.Current_AC_Phase_1)
grp.checkupdate('33/0/3', data.Current_AC_Phase_2)
grp.checkupdate('33/0/4', data.Current_AC_Phase_3)
grp.checkupdate('33/0/5', data.Voltage_AC_PhaseToPhase_12)
grp.checkupdate('33/0/6', data.Voltage_AC_PhaseToPhase_23)
grp.checkupdate('33/0/7', data.Voltage_AC_PhaseToPhase_31)
grp.checkupdate('33/0/8', data.Voltage_AC_Phase_1)
grp.checkupdate('33/0/9', data.Voltage_AC_Phase_2)
grp.checkupdate('33/0/10', data.Voltage_AC_Phase_3)