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

What is the meaning of datastream_id? #25

Closed apuder closed 11 years ago

apuder commented 11 years ago

I have troubles uploading to pachube. I get the message "Uploading failed". I was wondering the meaning of datastream_id in .smartermeter. I have electricity and natural gas from PG&E. In pachube terminology, this should map to two different data streams. However, it does not seem possible to express in .smartermeter. Am I missing something or does smartermeter assume that only one datastream will be downloaded from PG&E?

mcolyer commented 11 years ago

Smartermeter only handles electricity currently (my PG&E account only has electricity), so yes it assumes only one datastream will be used. If you'd like to put together a pull request I'd be open to adding it.

apuder commented 11 years ago

Let me thing about that one. Need to pick up some Ruby first. :) But to clarify the current behavior: what does smartermeter do if there are two datastreams? Ignore the second one? Or fail completely?

mcolyer commented 11 years ago

Everything is currently built assuming there is only one data stream, electricity. It ignores everything else as far as I know.

apuder commented 11 years ago

I'm trying to understand why I get an "Upload failed". When you say "ignores everything else" you seem to indicate that I have a configuration problem beyond the fact that I have two datastreams. Correct?

mcolyer commented 11 years ago

So I would only put one data stream in the pachubr configuration and then double check to make sure all of those configuration values are correct.

My best guess as to why you get that message is that one or more of the pacube configuration items might be incorrect.

mcolyer commented 11 years ago

Closing this out, for now. If there is still an issue feel free to re-open.