/energy-monitor

Listen, decode and forward lightwaverf energy usage data to your metrics backend

Primary LanguageRuby

Energy Monitor

This listens for, decodes, and sends electricity usage to an InfluxDB database so it can be plotted on a Grafana dashboard.

The electricity usage data used comes from a LightwaveRF Electricity Monitor which broadcasts usage over UDP on port 9761.

Grafana Dashboard

Here is mine.

Links

Docker

Included is sample Docker usage based on how I'm running this at home.

# Build the docker image.
docker build -t energy-monitor .

# Run it, exposing the UDP broadcast port & configuring the target InfluxDB.
docker run -it -p 9761:9761/udp --env INFLUXDB_URL=$INFLUXDB_URL --name energy-monitor energy-monitor

# Save the docker image to a local file, for distribution.
docker save energy-monitor > energy-monitor.tar