mcolyer / smartermeter

A ruby library to access PG&E SmartMeter data
http://matt.colyer.name/projects/smartermeter/
MIT License
48 stars 15 forks source link

Allow fetching range of dates.. #2

Closed Artem-B closed 13 years ago

Artem-B commented 13 years ago

Hi,

I've made a small change to allow fetching data for the range of dates. It works somewhat faster than fetching one day at a time because you only have to log in once.

Feel free to pull the change.

talisein commented 13 years ago

pge2google ignores everything it isn't explicitly looking for, so adding some lines that start in a unique way should be fine.

It should also take multiple input files on invocation, e.g. 'python pge2google.py Week1.csv Week2.csv Week3.csv' should work fine.

I haven't tried this patch set yet, but it looks like it should be fine wrt pge2google. :)

talisein commented 13 years ago

I've tested this patch now and it works well with pge2google. I did have to add the WWW::Mechanize back in; depreciation warnings are better than hard failures. :)

mcolyer commented 13 years ago

I am going to close this out, as SmarterMeter can now talk directly to Google PowerMeter.