omnik datalogger script wiki incorrect

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
ralphw
Posts: 2
Joined: Thursday 10 December 2015 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

omnik datalogger script wiki incorrect

Post 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
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest