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: "joe@domain.com"
SENSE_PASSWORD: ""
INFLUXDB_URL: "http://influxdb:8086"
INFLUXDB_TOKEN: ""
INFLUXDB_ORG: "org"
INFLUXDB_BUCKET: "sense"
restart: unless-stoppeddocker run -d \
--name=sense_monitor_to_influxdb \
-e SENSE_MONITOR_NAME="geothermal" \
-e SENSE_USERNAME="joe@domain.com" \
-e SENSE_PASSWORD="" \
-e INFLUXDB_URL="" \
-e INFLUXDB_TOKEN="" \
-e INFLUXDB_ORG="" \
-e INFLUXDB_BUCKET="" \
--restart unless-stopped \
ablyler/sense-monitor-to-influxdb:latestSENSE_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).