Energy Consumption RRD Logger (CC128/EON Energy)

Chart showing consumption data

What?

Many UK energy suppliers are giving away 'free' energy monitors to their customers. I think this is a great idea.

My current supplier, EON-UK, is using the ENVI monitor from CurrentCost which is supplied with a USB cable for connection to the computer. Through this connection, it is possible to make a much better logger than the device itself shows.

The supplied cable is actually an all-in-one USB->UART->TTL convertor. The drivers for it are already present in modern Linux kernels so for Linux it's plug 'n' play.

Here you can download a few programs which:

  • Connect to the serial output of the CC128 monitor, capture the data and save it into a RRD
  • Produce charts of the captured data.

The main program is written in Python using documentation from the CurrentCost.com website. The message parsing part is in a separate class which you can use for your own programs.

Although these scripts are standalone, they are designed to form part of an overall solution so don't expect any fancy user interfaces.

new!Now supports multi-channel/multi-appliance setups automatically. Including an example for 3-phase setup!

Please leave a comment below if you find this useful or have any feedback!

Downloads

Now updated to support multiple channels and multiple appliances. The command line arguments have changed so please check before upgrading.


Leave a comment

Your email address will not be published.
CAPTCHACAPTCHA

Previous comments

  • Chiny posted 2017-02-09 17:47:59.339 (227)

    Useful routines that seem to be working well after just under a day. I did write my own Python code but it creaked a bit - well, it was my first foray into Python. My Raspberry Pi code needed a tweak to the first line, plus a second line to give me the UK sterling symbol. #!/usr/bin/env python # -*- coding: latin-1 -*- I also added code for daily energy (kWh) use/cost and min/av/peak HRULEs and prettified the output for my eyes. Your code was a sound base to start from; thanks.