https://github.com/bradjc/juicenet-influxdb
Push JuiceNet data to InfluxDB 1.x.
https://github.com/bradjc/juicenet-influxdb
Last synced: 12 months ago
JSON representation
Push JuiceNet data to InfluxDB 1.x.
- Host: GitHub
- URL: https://github.com/bradjc/juicenet-influxdb
- Owner: bradjc
- Created: 2022-03-13T15:34:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-14T02:33:14.000Z (over 4 years ago)
- Last Synced: 2025-01-04T20:14:14.190Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](https://github.com/jesserockz/python-juicenet/blob/master/JuiceNet%20API_client_12_11_2017.docx.pdf).
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=
```