Get Sofart Inverter's data from solarman logger. Tested with LSW-3 (SN 17xxxxxxx, 21xxxxxx)
Clone whole project from github and put in crontab to run in intervals.
- Sofar Inverter support.
- Language support (Polish, English).
- Cleaned SOFARMap.xml file.
To upgrade overwrite all previous project files. To use prometheus+graphana support:
- Configure prometheus options in config.cfg
- Serve prometheus metrics file using any web server (name it index.html to be the default page in configured path)
- Configure prometheus target to access the file
- Add Prometheus datasource in Grafana
- Import grafana_en/pl.json file (Dashboards->Manage->Import). Enjoy :)
- Prometheus + grafana support.
- Verbose mode.
- 4-byte values (Total production, Total generation time) calculated correctly.
To upgrade overwrite all previous project files. To use prometheus+graphana support:
- Configure prometheus options in config.cfg
- Serve prometheus metrics file using any web server (name it index.html to be the default page in configured path)
- Configure prometheus target to access the file
- Add Prometheus datasource in Grafana
- Import grafana_en/pl.json file (Dashboards->Manage->Import).
To use InfluxDB support:
- Install InfluxDB
- Create database to store data (i.e: create database Data)
- Configure InfluxDB options in config.cfg
- Add InfluxDB datasource in Grafana (name it InfluxDB)
- Import grafana_ifdb_en/pl.json file (Dashboards->Manage->Import). Enjoy :)
- InfluxDB support
- Totaltime and totalpower zeroed befor being sent to MQTT (thx to pablolite for pointing that one out)
To upgrade overwrite all previous project files.
- Prometheus integration code (write to a file all data at once).
- Script writes values to InfluxDB/Promtheus/MQTT only if inverter status is Normal. In other states values can be unreliable - especially when inverter is starting in the morning.
- Grafana dashboard for InfluxDB datasource was changed and fixed in a few places.
To upgrade overwrite all previous project files.
- New script to read hardware/software/SN info from inverter. Two new files: InverterHWData.py (main script) and SOFARHWMap.xml (register configuration)
A few additions and changes.
- New parameters in config.cfg to define register address ranges
- Checking if logger response is correct (no empty values for defined registers). If not - report end exit.
- config.cfg format has slightly changed