Another approach to power meter data harvesting

[Dodgy] wrote in to talk about his power meter data harvesting programs. This uses the same hardware by CurrentCost as the hack we looked at over the weekend but [Dodgy’s] implementation is different. It’s separated into two parts, the first is a webserver written in C that harvests the data and makes it available at an address on the network, the second is written in Perl to format and upload data to Google PowerMeter.

The C program serves data on a configurable port, defaulting to 3090. All of the data can be accessed in one line of code by loading http://127.0.0.1:3090, or individually with subdirectories like /watts, /time, or /tempr.¬†From there you can do what you want with the data. The second part of [Dodgy’s] suite is a Perl script that polls the C server and sends the data to your Google account.

One thing that interests us is his comment that you should be able to compile the server side C code for an embedded device. It would be a nice energy savings to be able to upload data regularly without a PC running constantly.

17 thoughts on “Another approach to power meter data harvesting

  1. “One thing that interests us is his comment that you should be able to compile the server side C code for an embedded device.”

    Hackers start your Dockstars.

  2. but that ted 5000-c is much more expensive. are there any other hardware similar to CurrentCost. they don’t ship to brazil and the powersave from EUA charges too much for it

  3. You should be able to run it on a WRT distro yes, as its just C code to compile with very little deps…

    As for the proper DB, why would you want to run mysql on a WRT install? You could use sqlite as its a smaller footprint, though rrdtool could also store the values (and create you graphs as well).

  4. There was a spectacular talk at DEFCON put on by the folks from http://pleaserobme.com/ about the relative (un)intelligence of broadcasting your power usage stats to the world with services like foursquare, powermeter, tweet-a-watt, etc. If you like the idea of broadcasting your non-presence to the world, best to accept the risk of being pwnd.

  5. Until there are more utilities or cheaper devices in the US, this kinda stuff won’t take off. I’d love to use Google meter or a device to figure out the most expensive part of our daily electrical usage. But TED is ridiculously expensive. CurrentCost is better. Is it so hard to make a meter that will do this? Hell, electric companies already collect data by radio, why not make it 802.11 and let homeowners pull it as well?

  6. I haven’t tested one personally. But, comments from some trusted sources on an electric vehicle list I frequent mentions that the CurrentCost meters don’t track voltage or power factor — they measure only amperage — so the kw readings are much less accurate than a meter like the TED that tracks voltage, amperage and power factor.

    I was excited to first see the CC as a lower cost alternative, but that inaccuracy is a dealbreaker for me. Back to saving up for a TED..

  7. @DCinNM That’s already done, Google “ZigBee” the problem with it is that all you get is a cumulative every 10minutes Vs, second by second real-time feedback with TED. Also CC does not measure voltage, so it’s assuming your voltage is 120/240 which is just not true most of the time, your voltage will fluctuate with load in your house AND considering that you also share your transformer with 3-4 other houses your voltage will fluctuate with loads changing in their house too. With voltage possibly fluctuating as much as 10% there is your error range.

  8. I bought a TED5000 several months ago and was initially very impressed, until it stopped synching to NTP, became inaccessible over my LAN, and became about as useful as one of those hand-warmer pouches if it were tethered to a wall. I did an RMA, but had the same problems with the new unit. I was able to return the entire device. I wish you luck with it, but make sure to save your receipt in case it acts up. If you can get it working continuously, it’s really cool. Mine worked for a couple of days. I did learn that if I want to save $, I should turn off lights and air conditioners when not necessary. I also learned that I don’t need this gizmo in order to do that.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s