DAMEK86 / go-kostal-piko

pkg for dealing with kostal piko inverter writen in go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-kostal-piko

A small go lib port from Kostal Piko Dataexporter for grabbing Kostal Piko Inverter data.

build and run the executable

Usage: ./do
	 go-fmt              format go code
	 build-cli [OS]      builds the go executable for cli
	 build-influx [OS]   builds the go executable with influx for container usage
	 build-container     builds the container image

the cli version works with parameters and the container version uses environment variables

Dockerfile for K8s

if you like to use the dockerfile within your cluster, you need to set at least the following config:

ports:
- name: http
    containerPort: 8080
    protocol: TCP
env:
- name: KOSTAL_URL
    value: <kostal-forwarding-service>.<namespace>
- name: INFLUXDB_HOST
    value: http://<influxdb-service>.<namespace>
- name: INFLUXDB_PORT
    value: "<influxdb port>"
- name: INFLUXDB_DB
    value: "<target db>"

About

pkg for dealing with kostal piko inverter writen in go

License:MIT License


Languages

Language:Go 97.8%Language:Dockerfile 2.2%