CurrentCost Graphs – Monitoring Home Power

currentcost_cable

It might not look like it, but that is a wondrous thing. It represents the next step in home hacking with the current cost meter. It is a lead which connects the current cost meter to the serial port on a lower power PC that runs a simple Perl script that records our power usage. The PC runs a script that captures the information from the current cost meter (current power used, in Watts, and temperature in ‘C) and build pretty graphs that are then published on a local web server.

Here are some of the useful resources I used to get it done:

The Jibble post got me started, although not being a PERL programmer or RRD user meant some of the “easy to make” changes weren’t actually that “easy to make”. Having learnt RRD a bit more, I’m impressed with it – great for performance monitoring of all sorts of thigns. It will take something more to move me to PERL as a programming language – PHP is as non-visual as I’m going to get. Some other pointers that helped (and give you an idea what it is all about):

A slight warning: the commonly used PERL script fails when the temperature goes bellow 10’C though (since the current cost prints a leading space then, which causes the perl string matching clause to barf) – keep your current cost warm or fix up the script ;).

I have been amazed at the power of measuring usage in changing behaviours. Measuring really is the first step to managing. Even more excitingly, I have noticed that my gas meter is readable (via a magnetic or optical sensor) so I should be able to track that too soon – as if I’m not driving the family crazy already. Here’s a day of our electricity use (with min, max and average power):

power-day

  3 comments for “CurrentCost Graphs – Monitoring Home Power

Leave a Reply