-
Notifications
You must be signed in to change notification settings - Fork 11
typo in Class Unknown? #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report @pete-os appreciated, and fixed. Glad you like the package. |
Fixed in v0.5.4. |
No problem. I’ve been messing around with this since and I've worked out a few things that you might find interesting:- 1. How to get a full historyI've used the following approach.. Calculate dt_to(now) # end of last complete month, week, day, half hour relative to “now” Determine dt_start_of data # use Bright app, or detect when readings are all zero. While dt_to > dt_start_of_data
2. Getting data to agree with data from Bright App.I managed to get the history to agree exactly (ignoring recurring fractions) with the data from Bright for all periods by:
3. Self-consistent data across different periods.It seems that the timestamp for a given reading refers to the start time for the given period. For example:-
This works for all periods Any other alignment (timestamp == end of period, timestamp == middle of period) will result in data not being conistent across periods (PT30M vs PT1H etc) 4. A couple of potential issues in your existing codeDepending on your intentions, line 207 of glowdata.py might not be correct. The current code is:
Did you mean to round to the end of the last complete 30 mins?
The other potential issue (depending on your intention) is weekly and monthly data should start on a Monday or 1st of the month respectively according to the API doc. Cheers |
@pete-os much thanks for the write-up, much appreciated. I've been playing with getting some of this in as improvements. Current snag is my meter stopped being Smart, so I don't have test data currently. |
No problem. I've also started looking at the new Glow Local MQTT data for instant power . The new feed is a lot easier to handle than their public MQTT data. |
Interesting! I have a local glow device (which is also not working due to meter problems), very interested to hear how you get on. |
Hi
I think there may be a typo in line 38 of glowmarkt.py:-
missing a terminal 'e'?
doesn't really break anything, just generates additional error message.
BTW - thanks for pyglowmarkt - very useful!
Rgds
Pete
The text was updated successfully, but these errors were encountered: