XtheOne / Inverter-Data-Logger

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

when parameter use_temperature = false , no export due error. #23

Open alco28 opened 5 years ago

alco28 commented 5 years ago

There is a error when I set the use_temperature configuration on FALSE. the check if the temperature is in the designated range isn't excluded when the use_temperature is set to false.

relevant part of the config:

# choose one of these
# use temperature of inverter for output to pvoutput/mqtt
#use_temperature = true
# do not use temperature of inverter for output to pvoutput/mqtt
use_temperature = false

min_temp = -32768

error on command line:

/var/www/Inverter-Data-Logger# python InverterExport.py
Inverter ID: ****************ABC********
E Today :  1.05   Total: 4310.95
H Total :     0   Temp : 25.1
errorMsg:     0
PV1   V: 177.6   I:  0.3
PV2   V:   0.0   I:  0.1
PV3   V:   0.0   I:  0.0
L1    P:    43   V: 231.2   I:  0.5   F: 50.01
L2    P:     0   V:   0.0   I:  0.0   F:   0.0
L3    P:     0   V:   0.0   I:  0.0   F:   0.0
2018-12-27 14:56:27,371 ERROR temperature out of range: 25.1

Also I want to suggest that there could be a list of PIP installs in the readme.md file. like : pip install paho-mqtt for MQTT plugin and pip install six for console output.

XtheOne commented 5 years ago

Which output module does this occur in? No problem in consoleoutput.