My first electricity graph

…almost. I’ve mentioned before how I’ve been reading my electricity and gas meters every four weeks or so, which gives a rough approximation of how much we’re consuming in our house.

I’ve got my Current Cost meter up and running with Dale Lane‘s Python app. This was ever-so-slightly fiddly, so I thought I’d add my voice to those already out there with some step-by-step instructions for OS X users.

  1. Get a Current Cost meter
  2. Order the USB serial lead
  3. Install the drivers for said lead – this creates a new device
  4. Install the Apple Developer Tools
  5. Download the Python source for Dale’s app
  6. Follow the prerequisite list
  7. Install MacPorts
  8. Rebuild SQLite (run sudo port install sqlite3 +loadable_extensions from an XTerm)
  9. Export the DYLD_LIBRARY_PATH (for me this was export DYLD_LIBRARY_PATH=/opt/local/lib)
  10. Run the app – python currentcost.py

Not too bad, and you should get a nice pretty graph, like so:

Next up, I’m going to be taking the real-time data into a database and trying my own bit of graphing.