This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 45
Add possibility to view winter dynamic tarif event messages #63
Open
tech165
wants to merge
16
commits into
titilambert:master
Choose a base branch
from
tech165:master
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
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
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