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
Open
Add possibility to view winter dynamic tarif event messages #63tech165 wants to merge 16 commits into
tech165 wants to merge 16 commits into
Conversation
added 16 commits
February 13, 2021 12:53
Update my branch
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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