From 127a1aae7b546e9b7bc5a1afc59d9cde59d1178c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 3 Dec 2023 15:26:31 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 6be1942e..b265938f 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -173,9 +173,8 @@ CHECKTEMPSENSOR(){ if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then [ "${PW_SENSOR_TYPE[${1}]}" != "cpu" ] && temp_f=$(bc <<< "scale=1; ${temp_c}*1.8+32") || temp_f=${temp_c} - echo "HERE: ${temp_c} -> ${temp_f}" - # c=0; spct=''; spc1=`expr 6 - ${#temp_f}`; until [ ${c} = ${spc1} ]; do spct="${spct} "; c=`expr ${c} + 1`; done - spct=" " + # echo "HERE: ${temp_c} -> ${temp_f}" + c=0; spct=''; spc1=`expr 6 - ${#temp_f}`; until [ ${c} = ${spc1} ]; do spct="${spct} "; c=`expr ${c} + 1`; done if [ "${average}" != "" ] && [ "${PW_SENSOR_TYPE[${1}]}" != "cpu" ]; then c=0; spca=''; spc1=`expr 6 - ${#average}`; until [ ${c} = ${spc1} ]; do spca="${spca} "; c=`expr ${c} + 1`; done