Skip to content

Photovoltaic Inverter logger using SQLite and InfluxDB

Notifications You must be signed in to change notification settings

plieningerweb/pv-logger

Repository files navigation

Python PV Logger

Logging of photovoltaic inverters

  • to local cache (sqlite)
  • to InfluxDB (can be remote over ssh)

Kaco over RS485

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

SMA Sunny Boy over RS485

TODO

SMA Sunny Mini Central over Bluetooth

TODO

Additional Statistics

  • uptime (TODO)
  • last request status
  • reboot reason (TODO)

Watchdog Manager

Implemenetd in all loggers, some minor differences.

Registered Checks:

  • no internet for some amount of time
  • no port (ttyUSB) found for some amount of time

Check for Reboot:

  • 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

About

Photovoltaic Inverter logger using SQLite and InfluxDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published