Google Power meter download

19 views
Skip to first unread message

SRooney

unread,
May 13, 2011, 7:10:08 AM5/13/11
to Current Cost
I have the current cost meter and bridge set up and I have it enabled
for Google PowerMeter. Both the my.currentcost.com and the Google
interfaces work fine and I can see data on both.

I am currently trying to download the consumption data directly
through google power meter and I have it nearly working through a
provided python script from google. The only thing I seem to be
missing is a variable name which I need to append to the end of this
argument "/user/12406511174510224903/12406511174510224903/variable/
currentcost.CurrentCostBridge.3046" to download from Google power
meter.

So basically the entire argument to run the script is the following:
"./get_events_devices.py -v $TOKEN /user/
12406511174510224903/12406511174510224903/variable/
currentcost.CurrentCostBridge.3046 --min=01d"

From what I can pick up, I think it should be something like .d1 that
gets appended but that does not work for me.

Has anyone else got this to work?

thanks in advance,

Seamus

Neko

unread,
May 16, 2011, 1:42:57 PM5/16/11
to Current Cost
I get that information from the CurrentCost application that runs on
the PC - version x.x.24 by enabling debug information. The token and
user ID information is displayed there and you can copy from the
screen and paste to another file. I could not get the logging directly
to a file option to work. Also you get part of the information from
the Google PowerMeter Settings menu but it will not show the .dx value
and the GPM CC data is duration based.

https://www.google.com/powermeter/feeds/user/{20digits}/{20digits}/variable/currentcost.envi.MyEnvi.d1/durMeasurement

======Sample log with Token and User removed.==========

Command: [7/30/2010 6:34:32 AM] Hitting google
Status: [7/30/2010 6:34:32 AM] authToken: {YourToken}
Status: [7/30/2010 6:34:32 AM] id:
https://www.google.com/powermeter/feeds/user/{20digituser}/{20digituser}/variable/currentcost.envi.MyEnvi.d1/durMeasurement
Response: [7/30/2010 6:34:32 AM] Success talking to google: OK - OK
Status: [] Using the authToken:{yourToken}
Response: [] Using the path:
https://www.google.com/powermeter/feeds/user/{20digituser}/{20digituser}/variable/currentcost.envi.MyEnvi.d1/durMeasurement
Command: [] checking db for live data...
Status: [7/30/2010 6:34:33 AM] Status: Data last uploaded 2010-07-30
13:24:32
Status: [7/30/2010 6:34:33 AM] Status: Looping through the live data
Status: [7/30/2010 6:34:33 AM] Status: Live database records found
Status: [7/30/2010 6:34:33 AM] Status: Building the XML for google
Status: [7/30/2010 6:34:33 AM] Building the file for Google PowerMeter
with 87 records
Status: [7/30/2010 6:34:33 AM] <?xml version="1.0" encoding="utf-8" ?
><feed xmlns="http://www.w3.org/2005/Atom" xmlns:meter="http://
schemas.google.com/meter/2008" xmlns:batch="http://schemas.google.com/
gdata/batch"><entry><category scheme="http://schemas.google.com/g/
2005#kind" term="http://schemas.google.com/meter/2008#durMeasurement"/
><meter:subject>https://www.google.com/powermeter/feeds/user/{20user}/
{20user}/variable/currentcost.envi.MyEnvi.d1</
meter:subject><meter:startTime
meter:uncertainty="1.0">2010-07-30T13:24:45.000Z</
meter:startTime><meter:duration meter:uncertainty="1.0">588</
meter:duration><meter:quantity meter:uncertainty="0.001"
meter:unit="kW h">0.142753333333333</meter:quantity></entry></feed>

Command: [7/30/2010 6:34:33 AM] Start batch uploading

Status: [7/30/2010 6:34:44 AM] Ready to post to Google PowerMeter
Response: [7/30/2010 6:34:44 AM] Response Status Code is OK and Status
Description is: OK
Response: [7/30/2010 6:34:33 AM] Batch upload to google complete: 87
records Successfully posted to Google: OK

Response: [7/30/2010 6:34:33 AM] db updated
Response: [] Live upload compled successfully

=== End of log ====

SRooney

unread,
May 17, 2011, 4:59:02 AM5/17/11
to Current Cost
Thats brilliant. Ill check this out and try it. Thanks very much
Neko :)

Regards,

Seamus
Reply all
Reply to author
Forward
0 new messages