Woutrrr / Omnik-Data-Logger

Data logger for Omnik Solar Inverters
GNU General Public License v3.0
40 stars 42 forks source link

Python errors to Domoticz #40

Open keitje opened 5 years ago

keitje commented 5 years ago

Hello, I tried to follow the wiki from Domoticz (https://www.domoticz.com/wiki/Omnik_Solar_Inverter). I get data out of my Omnik, but I'm struggling with the DomoticzOutput.py which was created. Everything is setup as mentioned in the wiki but I get Python errors when running OmnikExport.py.

Errors are: 2019-05-19 11:30:40,837 DEBUG Importing output plugin DomoticzOutput Traceback (most recent call last): File "OmnikExport.py", line 170, in omnik_exporter.run() File "OmnikExport.py", line 52, in run import(plugin_name) File "/home/pi/Omnik-Data-Logger/outputs/DomoticzOutput.py", line 30 def process_message(self, msg): ^ IndentationError: unexpected indent

I have to mention, I cannot read a single line of Python... (sorry), the error mentions Unexpected indent, but I dont know where of what to look for. I'm running Python 2.7. Can someone help me to the right direction? Also, do I need to run Python 3 or is 2.7 still needed?

basssment commented 4 years ago

Same problem here, followed the wiki. I do get the output correct when i run LiveStats.py but when i run OmnikExport.py i get: 2020-06-28 20:22:17,341 DEBUG Importing output plugin Traceback (most recent call last): File "OmnikExport.py", line 170, in omnik_exporter.run() File "OmnikExport.py", line 52, in run import(plugin_name) ValueError: Empty module name

Edit: forgot to fill one Value. Now it works for me! Thanx

clmcavaney commented 4 years ago

Do you have any plugins enabled in your config.cfg file?

For example:

[general]
# General:enabled_plugins
# Choose which outputs to use
# Possible options: MysqlOutput,PVoutputOutput,ConsoleOutput,CSVOutput
enabled_plugins = ConsoleOutput