-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schedule): adding crontab logic
- Loading branch information
1 parent
d15ef76
commit c4f9842
Showing
9 changed files
with
240 additions
and
126 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
#!/usr/bin/with-contenv bashio | ||
|
||
sbam -h | ||
export URL=$(bashio::config 'url') | ||
export APIKEY=$(bashio::config 'apikey') | ||
export FRONIUS_IP=$(bashio::config 'fronius_ip') | ||
export START_HR=$(bashio::config 'start_hr') | ||
export END_HR=$(bashio::config 'end_hr') | ||
export CRONTAB=$(bashio::config 'crontab') | ||
export PW_CONSUMPTION=$(bashio::config 'pw_consumption') | ||
export MAX_CHARGE=$(bashio::config 'max_charge') | ||
export PW_BATT_RESERVE=$(bashio::config 'pw_batt_reserve') | ||
export DEFAULTS=$(bashio::config 'defaults') | ||
|
||
sbam schedule |
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
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
Oops, something went wrong.