https://github.com/zefer/energy-monitor
Listen, decode and forward lightwaverf energy usage data to your metrics backend
https://github.com/zefer/energy-monitor
lightwave lightwaverf
Last synced: 5 months ago
JSON representation
Listen, decode and forward lightwaverf energy usage data to your metrics backend
- Host: GitHub
- URL: https://github.com/zefer/energy-monitor
- Owner: zefer
- Created: 2020-05-30T14:05:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T14:37:10.000Z (9 months ago)
- Last Synced: 2025-01-11T11:35:44.362Z (6 months ago)
- Topics: lightwave, lightwaverf
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Energy Monitor
This listens for, decodes, and sends electricity usage to an InfluxDB database
so it can be plotted on a Grafana dashboard and MQTT for home automation tools.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
- [LightwaveRF Energy Monitor](https://lightwaverf.com/products/jsjslw600-lightwaverf-electricity-monitor-and-energy-monitor)
- [InfluxDB](https://influxdata.com/time-series-platform/influxdb/)
- [influxdb-ruby](https://github.com/influxdata/influxdb-ruby)
- [ruby-mqtt](https://github.com/njh/ruby-mqtt)
- [Grafana](https://grafana.com/)## Docker
Included is sample Docker usage based on how I'm running this at home.
```sh
# 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 --env MQTT_URL=$MQTT_URL --name energy-monitor energy-monitor# Save the docker image to a local file, for distribution.
docker save energy-monitor > energy-monitor.tar
```