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