Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Add possibility to view winter dynamic tarif event messages #63

Open
tech165 wants to merge 16 commits into
titilambert:masterfrom
tech165:master
Open

Add possibility to view winter dynamic tarif event messages #63
tech165 wants to merge 16 commits into
titilambert:masterfrom
tech165:master

Conversation

@tech165

@tech165 tech165 commented Feb 13, 2021

Copy link
Copy Markdown

This PR enable the capability to view the message for today and tomorrow for the winter Dynamic Tarif. It give you the same message as when you log into your account . Ex.: 'le 13 février, réduisez votre consommation d’électricité de 6h à 9h.' in MQTT sensor or command line. You can also have your type of account. Ex.: D and your street address for the account (uncomment 2 files if needed).

Thanks

tech165 added 16 commits February 13, 2021 12:53
If like me you need it to run at a certain time, this will work, just don't forget to change your config.yaml so it run only once !
Example with entrypoint_cron.sh
Add timezone data
added mqtt_pyhydroquebec before starting cron so it updates immediately when starting and then follow cron schedule.
Remove   from the JSON data received from HQ.
Decided it was easier to parse the time here ! It is available only on MQTT so far. Gives a JSON string.
Add use case with non 24h hours. N.B. time is converted to 24h in the JSON for consistency and ease of automation.
added || true to the first app start in case of missing internet connection so that cron could start
jpjodoin added a commit to jpjodoin/pyhydroquebec that referenced this pull request Feb 26, 2022
Add possibility to view winter dynamic tarif event messages titilambert#63
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant