Skip to content

Acquisition, plot and chart code to read from an SDG&E smart power meter via Zigbee.

Notifications You must be signed in to change notification settings

phubbard/raven-peewee

Repository files navigation

Raven

This is a 2-part system for capturing and displaying electrical power consumption data from my house. I have an SDG&E 'smart' meter and a Raven Zigbee USB radio for hardware. This code has a USB/serial listener that saves data to a SQLite database and a Flask/D3.js front end that simply display today's and yesterdays' usage.

Pretty simple. There are three canned visualizations that cover my needs. A gauge that updates (using the js setInterval timer) every five seconds:

screenshot

A graph of today's data, decimate to plot one hundred data points, plus a top line about the latest update:

screenshot

Lastly, a display of today versus yesterday, again decimated down to 100 points per day:

screenshot

Way more is possible, of course, but for now those are self-hosted, reliable and suffice.

Setup and install

Unfortunately, it appears that you can't buy the Raven radio any more, so that rather blocks development. Open an issue if that changes and I'll take the time to document it.

Alternatives

This SDR project looks promising.

About

Acquisition, plot and chart code to read from an SDG&E smart power meter via Zigbee.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published