Pull instantaneous electricity usage readings from an Sense Monitor via a Web Socket and ship them to InfluxDB.
Here are some example snippets to help you get started creating a container.
---
version: "2.1"
sense_monitor_to_influxdb:
image: ablyler/sense-monitor-to-influxdb:latest
environment:
SENSE_MONITOR_NAME: "geothermal"
SENSE_USERNAME: "[email protected]"
SENSE_PASSWORD: ""
INFLUXDB_URL: "http://influxdb:8086"
INFLUXDB_TOKEN: ""
INFLUXDB_ORG: "org"
INFLUXDB_BUCKET: "sense"
restart: unless-stopped
docker run -d \
--name=sense_monitor_to_influxdb \
-e SENSE_MONITOR_NAME="geothermal" \
-e SENSE_USERNAME="[email protected]" \
-e SENSE_PASSWORD="" \
-e INFLUXDB_URL="" \
-e INFLUXDB_TOKEN="" \
-e INFLUXDB_ORG="" \
-e INFLUXDB_BUCKET="" \
--restart unless-stopped \
ablyler/sense-monitor-to-influxdb:latest
SENSE_MONITOR_NAME
: Name to use to identify multiple Sense monitors (this can be anything you want it to be)SENSE_USERNAME
: Sense usernameSENSE_PASSWORD
: Sense passwordINFLUXDB_URL
: InfluxDB url, including protocol and port, eg. 'http://192.168.1.1:8086'INFLUXDB_TOKEN
: InfluxDB tokenINFLUXDB_ORG
: InfluxDB orgINFLUXDB_BUCKET
: InfluxDB bucket
MIT; see LICENSE
in this repository.
Andy Blyler (GitHub @ablyler).