Update powerwall.sh

This commit is contained in:
2023-05-14 18:54:24 -05:00
parent 7095a96e44
commit 669f5c2d34

View File

@@ -47,7 +47,7 @@ CHECKTEMPSENSOR(){
elif [ $(bc -l <<< "$temp_f >= $temp_crit") -eq 1 ]; then
echo -en "${idsCL[Red]}CRITICAL - $temp_f°F${idsCL[Default]}"
else
echo -en "${idsCL[Green]}Normal - $temp_f°F${idsCL[Default]}"
echo -en "${idsCL[Green]}Normal - ($temp_f°F)${idsCL[Default]}"
fi
c=0; spc=''; spc1=`expr 17 - ${#temp_f} - 2`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -e "${spc}${idsCL[Green]}<=$(expr $(echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1) - 1)°F${idsCL[Default]}/${idsCL[Yellow]}$(echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1)°F${idsCL[Default]}/${idsCL[Red]}$(echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 2)°F${idsCL[Default]}"