From 9f6a2d25c026932d5e0eca4e7a7a7d806c2f849d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Dec 2023 07:52:07 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 1cb8e371..a52488e1 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -390,14 +390,14 @@ Previous Temp: ${last_temp[${SENSOR}]}${GAUGESH}" echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - ${SENSOR} - Back to NORMAL ${GAUGE}" >> ${PW_LOGFILE} [ "$(compgen -G "${PW_FOLDER}/shutdown.*")" != "" ] && rm -f ${PW_FOLDER}/shutdown.* - elif [ $(bc -l <<< "${last_temp[${SENSOR}]} = 1") -eq 1 ]; then + elif [ "${last_temp[${SENSOR}]}" == "1" ]; then # SENDNOTICE "${SENSOR} TEMP NORMAL" "Service Startup - # NORMAL TEMP: ${temp_f}${GAUGESH}" +# NORMAL TEMP: ${temp_f}${GAUGESH}" echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - Service Startup - NORMAL ${GAUGE}" >> ${logtemp} echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - ${SENSOR} - Service Startup" >> ${PW_LOGFILE} [ "$(compgen -G "${PW_FOLDER}/shutdown.*")" != "" ] && rm -f ${PW_FOLDER}/shutdown.* - elif [ ${relog} -eq 1 ]; then + elif [ "${relog}" == "1" ]; then echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - Normal ${GAUGE}" >> ${logtemp} fi