Can somebody conform that the current script on:
https://www.domoticz.com/wiki/Omnik_Solar_Inverter
has got an error ?
Code: Select all
#Current AC power and today's total power
get_data = {
'svalue': str(msg.p_ac(1)) + ';' + str(msg.e_total * 1000),
'type': 'command',
'param': 'udevice',
'idx' : idx_E_Current,
'nvalue': '0'
}
get_data_encoded = urllib.urlencode(get_data)
full_url = url + '?' + get_data_encoded
urllib.urlopen(full_url)
Ralpgh