From a47068eaf1a502b098efccf342906eac65f8b6d8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 14 Aug 2023 19:26:33 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index c226142f..dba4141d 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -67,6 +67,7 @@ CHECKTEMP(){ echo -e "\r\033[K${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}" fi fi + echo done [ "${action}" != "" ] && echo @@ -93,9 +94,9 @@ CHECKTEMPSENSOR(){ fi elif [ "${PW_SENSOR_TYPE[${1}]}" == "esxi" ]; then temp_c=${2} - temp_f=`echo "scale=2; ${temp_c}*1.8 + 32" | bc` - # temp_warn=`echo "scale=2; ${3}*1.8 + 32" | bc` - # temp_crit=`echo "scale=2; ${4}*1.8 + 32" | bc` + temp_f=$(bc <<< "scale=2; ${temp_c}*1.8+32") + temp_warn=$(bc <<< "scale=2; ${3}*1.8+32") + temp_crit=$(bc <<< "scale=2; ${4}*1.8+32") fi