XtheOne / Inverter-Data-Logger

Data logger for Omnik/Hosola and other Solarman Wi-Fi kit powered Solar Inverters
GNU General Public License v3.0
116 stars 28 forks source link

ERROR no listen address defined in configuration file, exiting. #39

Closed McGyver64 closed 3 years ago

McGyver64 commented 3 years ago

August 2020 i changed my PV setup. Replaced 1.5-TL(1 mppt) for a 3-TL2 (2 mppt) and added extra panels on an other roof. I used the script from Woutrrr https://github.com/Woutrrr/Omnik-Data-Logger) with Domoticz for about 3 years with pleasure. I changed some things to use the 2nd PV and then I found this "new" script. It has more info about the 2 mppt trackers and also gives more info about Voltage, current, frequency, Day Total Power, hours use,. etc. My 1.5-tl serial was 601xxxxxx My 3-tl2 serial is 603xxxxxx wich works with the Woutrrr script, so should also work with this (see InverterExport.py)

I got the script working up to python InverterExport.py wich gives this output:


2020-08-19 09:46:11,301 DEBUG Importing output plugin ConsoleOutput 2020-08-19 09:46:11,307 INFO Connecting to logger with IP: 192.168.178.210 and SN 63237xxxx 2020-08-19 09:46:11,310 INFO connecting to 192.168.178.210 port 8899 2020-08-19 09:46:11,325 DEBUG RAW sent Packet (len=16): 68:02:41:b1:4e:54:b1:25:4e:54:b1:25:01:00:e5:16 hANT%NT% 2020-08-19 09:46:11,956 DEBUG RAW received Packet (len=183): 68:a9:41:b0:4e:54:b1:25:4e:54:b1:25:81:02:01:4e:4c:42:4e:33:30:32:30:31:38:31:43:35:30:35:39:01:1b:07:a6:07:e4:00:00:00:10:00:15:00:00:00:1e:00:00:00:00:09:1a:00:00:00:00:13:88:02:9e:00:00:00:00:00:00:00:00:00:b3:00:00:03:09:00:00:00:c4:00:01:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:86:16 hANT%NT%NLBN3020181C5059 2020-08-19 09:46:11,959 DEBUG DATA len=169: 2020-08-19 09:46:11,963 INFO Inverter ID: NLBN3020181Cxxxx 2020-08-19 09:46:11,965 INFO Inverter main firmware version: 2020-08-19 09:46:11,967 INFO Inverter slave firmware version: 2020-08-19 09:46:11,969 INFO RUN State: 1 2020-08-19 09:46:11,971 DEBUG Run pluginConsoleOutput Inverter ID: NLBN3020181Cxxxx E Today : 1.79 Total: 77.79 H Total : 196 Temp : 28.3 errorMsg: 0 PV1 V: 195.8 I: 1.6 PV2 V: 202.0 I: 2.1 PV3 V: 0.0 I: 0.0 L1 P: 670 V: 233.0 I: 3.0 F: 50.0 L2 P: 0 V: 0.0 I: 0.0 F: 0.0 L3 P: 0 V: 0.0 I: 0.0 F: 0.0 2020-08-19 09:46:11,986 DEBUG RAW received Packet (len=99): 68:11:41:f0:4e:54:b1:25:4e:54:b1:25:44:41:54:41:20:53:45:4e:44:20:49:53:20:4f:4b:0d:0a:23:16:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff hANT%NT%DATA SEND IS OK# 2020-08-19 09:46:11,988 DEBUG DATA len=17: 2020-08-19 09:46:11,991 DEBUG Exit Status: DATA SEND IS OK


when I run python InverterServer.py, I get next error (and no output to Domoticz) 2020-08-18 22:59:55,925 DEBUG Importing output plugin ConsoleOutput 2020-08-18 22:59:55,931 ERROR no listen address defined in configuration file, exiting.

My internal network is 172.16.x.x The Inverter has 192.x.178.210 (connected to DMZ between Firewall and Ziggo Router) i have a route in firewall from intern (172.10.x.x) to Inverter (192.x.178.210), wich can read the Inverter with the new script (see InverterExport.py) I can access the inverter website from internal network, I also could read the inverter to Domoticz with the Woutrrr script.

I have no programming skills :-( , can somebody help me to overcome the last step ... :-)

config.cfg is attached

config-cfg.txt McGyver

McGyver64 commented 3 years ago

Problem solved. I copy-paste this line to crontab ( * /usr/bin/python /home/username/Inverter-Data-Logger/InverterExport.py) and was overseeing the "username" should be changed to the name of the Raspberry Pi (pi in my case) also had to change the "enabled_plugins" in config.cfg to DomoticzOutput instead of Console Don't know if the Listen Address is important, but the data gets updated every minute now to Domoticz.