-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,37 @@ | ||
#!/usr/bin/with-contenv bashio | ||
|
||
export FiatChamp_MqttUser=$(bashio::config 'OverrideMqttUser') | ||
export FiatChamp_MqttPw=$(bashio::config 'OverrideMqttPw') | ||
export FiatChamp_MqttServer=$(bashio::config 'OverrideMqttServer') | ||
export FiatChamp_MqttPort=$(bashio::config 'OverrideMqttPort') | ||
|
||
test "$FiatChamp_MqttUser" = "null" && export FiatChamp_MqttUser=$(bashio::services "mqtt" "username") | ||
test "$FiatChamp_MqttPw" = "null" && export FiatChamp_MqttPw=$(bashio::services "mqtt" "password") | ||
test "$FiatChamp_MqttServer" = "null" && export FiatChamp_MqttServer=$(bashio::services "mqtt" "host") | ||
test "$FiatChamp_MqttPort" = "null" && export FiatChamp_MqttPort=$(bashio::services "mqtt" "port") | ||
|
||
export FiatChamp_CarUnknownLocation=$(bashio::config 'CarUnknownLocation') | ||
export FiatChamp_Brand=$(bashio::config 'Brand') | ||
export FiatChamp_Region=$(bashio::config 'Region') | ||
export FiatChamp_StartDelaySeconds=$(bashio::config 'StartDelaySeconds') | ||
|
||
export FiatChamp_SupervisorToken=$SUPERVISOR_TOKEN | ||
|
||
export FiatChamp_FiatUser=$(bashio::config 'FiatUser') | ||
export FiatChamp_FiatPw=$(bashio::config 'FiatPw') | ||
export FiatChamp_FiatPin=$(bashio::config 'FiatPin') | ||
|
||
export FiatChamp_ConvertKmToMiles=$(bashio::config 'ConvertKmToMiles') | ||
|
||
export FiatChamp_AutoRefreshLocation=$(bashio::config 'AutoRefreshLocation') | ||
export FiatChamp_AutoRefreshBattery=$(bashio::config 'AutoRefreshBattery') | ||
export FiatChamp_EnableDangerousCommands=$(bashio::config 'EnableDangerousCommands') | ||
|
||
export FiatChamp_Debug=$(bashio::config 'Debug') | ||
if [ -z ${STANDALONE+x} ]; then | ||
echo "RUNNING IN STANDALONE MODE" | ||
else | ||
export FiatChamp_MqttUser=$(bashio::config 'OverrideMqttUser') | ||
export FiatChamp_MqttPw=$(bashio::config 'OverrideMqttPw') | ||
export FiatChamp_MqttServer=$(bashio::config 'OverrideMqttServer') | ||
export FiatChamp_MqttPort=$(bashio::config 'OverrideMqttPort') | ||
|
||
test "$FiatChamp_MqttUser" = "null" && export FiatChamp_MqttUser=$(bashio::services "mqtt" "username") | ||
test "$FiatChamp_MqttPw" = "null" && export FiatChamp_MqttPw=$(bashio::services "mqtt" "password") | ||
test "$FiatChamp_MqttServer" = "null" && export FiatChamp_MqttServer=$(bashio::services "mqtt" "host") | ||
test "$FiatChamp_MqttPort" = "null" && export FiatChamp_MqttPort=$(bashio::services "mqtt" "port") | ||
|
||
export FiatChamp_CarUnknownLocation=$(bashio::config 'CarUnknownLocation') | ||
export FiatChamp_Brand=$(bashio::config 'Brand') | ||
export FiatChamp_Region=$(bashio::config 'Region') | ||
export FiatChamp_StartDelaySeconds=$(bashio::config 'StartDelaySeconds') | ||
|
||
export FiatChamp_SupervisorToken=$SUPERVISOR_TOKEN | ||
|
||
export FiatChamp_FiatUser=$(bashio::config 'FiatUser') | ||
export FiatChamp_FiatPw=$(bashio::config 'FiatPw') | ||
export FiatChamp_FiatPin=$(bashio::config 'FiatPin') | ||
|
||
export FiatChamp_ConvertKmToMiles=$(bashio::config 'ConvertKmToMiles') | ||
|
||
export FiatChamp_AutoRefreshLocation=$(bashio::config 'AutoRefreshLocation') | ||
export FiatChamp_AutoRefreshBattery=$(bashio::config 'AutoRefreshBattery') | ||
export FiatChamp_EnableDangerousCommands=$(bashio::config 'EnableDangerousCommands') | ||
|
||
export FiatChamp_Debug=$(bashio::config 'Debug') | ||
fi | ||
|
||
cd /build/ | ||
./FiatChamp |