From db2aa652121cee10e99e3310488a0ae97950afb5 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Dec 2023 08:34:57 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/powerwall.sh b/powerwall.sh index f597c359..5063b7f2 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -152,6 +152,7 @@ CHECKTEMPSENSOR(){ if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then [ "${PW_SENSOR_TYPE[${1}]}" == "cpu" ] && temp_f=$(echo "scale=2; $temp_c/1" | bc -l) || temp_f=$(bc <<< "scale=1; ${temp_c}*1.8+32") + (( $(bc <<<"${temp_f} < 1") )) && [[ "${temp_f}" = *"."* ]] && temp_f="0${temp_f}" [ "${1}" == "ServerRoomTH" ] && temp_f=`echo "scale=1; ${temp_f}-4" | bc` # echo "HERE: '${temp_c}' -> '${temp_f}'" # echo -en ""