Skip to content

ablyler/sense-monitor-to-influxdb

Repository files navigation

sense-monitor-to-influxdb

Dockerhub

Pull instantaneous electricity usage readings from an Sense Monitor via a Web Socket and ship them to InfluxDB.

Usage

Here are some example snippets to help you get started creating a container.

docker-compose (recommended)

---
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 cli

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

Configuration

  • SENSE_MONITOR_NAME: Name to use to identify multiple Sense monitors (this can be anything you want it to be)
  • SENSE_USERNAME: Sense username
  • SENSE_PASSWORD: Sense password
  • INFLUXDB_URL: InfluxDB url, including protocol and port, eg. 'http://192.168.1.1:8086'
  • INFLUXDB_TOKEN: InfluxDB token
  • INFLUXDB_ORG: InfluxDB org
  • INFLUXDB_BUCKET: InfluxDB bucket

License

MIT; see LICENSE in this repository.

Author

Andy Blyler (GitHub @ablyler).