Skip to content
Python Script which exports Kostal Inverter Data into a PostgreSQL Database
Python Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
Dockerfile
README.md
init.sql
kostal-piko-dataexport.py
requirements.txt Add first draft of kostal-piko-dataexport Dec 26, 2018

README.md

Kostal Piko Dataexporter

This Python scripts grabs content of the REST API of a Kostal PIKO 7.0 and exports the data to a PostgreSQL Database.

Setup

  • Import the init.sql into your PostgreSQL Database
  • Set environment variables with the relevant details
  • KOSTAL_USERNAME
  • KOSTAL_PASSWORD
  • DB_HOST
  • DB_PORT
  • DB_NAME
  • DB_USER
  • DB_PASSWORD
  • Run python kostal-piko-dataexport.py

There's also a Docker Image available on Docker Hub.

Grafana

By logging the data with this script it's easily possible to create a nice Grafana Dashboard to display some of the interesting data:

My dashboard on a rainy day in Germany

Note

This is just a quick-and-dirty script to grab to content of the REST-API of my Kostal Piko 7.0 Inverter. This might be usable on other Inverters aswell.

You can’t perform that action at this time.