/juicenet-influxdb

Push JuiceNet data to InfluxDB 1.x.

Primary LanguagePython

Juicenet to InfluxDB 1.x

This python script pulls data from the Juicenet API and then pushes to InfluxDB 1.x.

I used the API documentation from here.

Scripts

  • juicenet-influxdb.py: This pulls historical charge session data including the timeseries of power measurements. The intention is this runs once per day.

  • juicenet-status-influxdb.py: This fetches the current charging state and lifetime energy use. I run this one per minute.

Configuration

/etc/swarm-gateway/influx.conf:

url=
port=
username=
password=
database=

/etc/swarm-gateway/juicenet.conf:

api_key=
location_general=
location_specific=