Page 1 of 1

omnik datalogger script wiki incorrect

Posted: Thursday 05 April 2018 12:50
by ralphw
I reinstalled all my Domoticz gear last week and used the script from the wiki to export the values from my Hosola invertor to Domoticz. I noticed that the "today value" was the same as the total generated kWh.

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)
msg.e_total should be e_today ??

Ralpgh