Logging of photovoltaic inverters
- to local cache (sqlite)
- to InfluxDB (can be remote over ssh)
pip install pv_logger
create a config file config.yaml
:
archive_older_than_days: 30
# path to sqlite database
# change to file for permanent storage (!!)
engine: "sqlite:///:memory:"
influx:
dbname: pv-nodes
host: localhost
password: no-need
port: 8086
user: no-need
tags:
host: testhost.de
region: europe
port: "/dev/ttyUSB*"
inverter_ids: [1,2,3]
read_interval_seconds: 10
...
[not up to date, check config.yaml as example]
run logger in folder where config.yaml
is located
kaco_logger
TODO
TODO
- uptime (TODO)
- last request status
- reboot reason (TODO)
Implemenetd in all loggers, some minor differences.
- no internet for some amount of time
- no port (ttyUSB) found for some amount of time
- check need for reboot
- regularly check a function or result set by user
- register function to check and how often it has to fail in a row
- check if uptime enough
- log reboot reason
- reboot