From d6c1a5b668ef04c19371f1d6c5c68357ffcbf8ee Mon Sep 17 00:00:00 2001 From: habuild <36288425+habuild@users.noreply.github.com> Date: Sun, 27 Nov 2022 03:38:19 +1100 Subject: [PATCH] Update run --- sbfspot/rootfs/etc/services.d/sbfspot/run | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sbfspot/rootfs/etc/services.d/sbfspot/run b/sbfspot/rootfs/etc/services.d/sbfspot/run index 6bc2a13..e8194ab 100644 --- a/sbfspot/rootfs/etc/services.d/sbfspot/run +++ b/sbfspot/rootfs/etc/services.d/sbfspot/run @@ -22,12 +22,6 @@ bashio::log.info bashio::log.info ${__BASHIO_COLORS_CYAN} "${message:="Hello World..."}" bashio::log.info -# ---- Print Host BT Controller -message=$(echo "[Host Bluetooth MAC Address] $(bluetoothctl list)") -bashio::log.info -bashio::log.info ${__BASHIO_COLORS_BLUE} "${message:="Hello World..."}" -bashio::log.info - #set -x var="$(jq --raw-output '.Sensors_HA' $CONFIG_PATH)" @@ -54,6 +48,11 @@ value=$(bashio::config 'Connection_Type') if bashio::var.equals "${value}" "Bluetooth"; then /usr/bin/sbfspot/genBluetoothConfig.sh /usr/bin/sbfspot/SBFspot.cfg /usr/bin/sbfspot/SBFspotUpload.cfg bashio::log.info + # ---- Print Host BT Controller + message=$(echo "[Host Bluetooth MAC Address] $(bluetoothctl list)") + bashio::log.info + bashio::log.info ${__BASHIO_COLORS_BLUE} "${message:="Hello World..."}" + bashio::log.info bashio::log.info message=$(echo "|| Generating Bluetooth Configs ||") bashio::log.info ${__BASHIO_COLORS_BLUE} "${message:=""}"