titilambert / pyhydroquebec

DEPRECATED - Get your consumption data from your HydroQuebec account (www.hydroquebec.com)
Apache License 2.0
94 stars 44 forks source link

Fix local computer timezone issues + don't crash if no weather data #17

Closed kevmegforest closed 6 years ago

kevmegforest commented 6 years ago

Just had issues with my server which had a UTC localtime instead of Montreal Timezone. (when running the script from 19:00 to 24:00, it crashed because the day given was not arrived)

The weather data is empty for the last 3 days on the hydro quebec web site for me. Since it's not the most important value given by the program, i removed the crash due to it and fill the array with None values.

titilambert commented 6 years ago

Can you click on Allow edits from maintainers at the bottom right of this screen ? Thanks !

kevmegforest commented 6 years ago

It's already checked