Skip to main content


Project description

# 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:"
dbname: pv-nodes
host: localhost
password: no-need
port: 8086
user: no-need
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

## SMA Sunny Boy over RS485


## SMA Sunny Mini Central over Bluetooth


## 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

- deploy using some software, e.g.

- make distributio of raspberry reliable and always-on

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pv_logger, version 0.0.1.dev9
Filename, size File type Python version Upload date Hashes
Filename, size pv_logger-0.0.1.dev9.tar.gz (7.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page