Update powerwall.sh

This commit is contained in:
2023-05-27 17:28:20 -05:00
parent eae38d4673
commit 0eb76fcb5c

View File

@@ -73,8 +73,8 @@ CHECKTEMPSENSOR(){
else
echo -en "${idsCL[Green]}Normal (${spct}${temp_f}'F / ${spca}${average}'F)${idsCL[Default]}"
fi
c=0; spc=''; spc1=`expr 10 - ${#temp_f} - 2`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
tmp="${spct}${temp_f}"
c=0; spc=''; spc1=`expr 10 - ${#tmp} - 2`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
echo -e "${spc}[${spcw}${idsCL[Green]}<=$(expr ${temp_warn} - 1)'F${idsCL[Default]} /${spcw}${idsCL[Yellow]}${temp_warn}'F${idsCL[Default]} /${spcc}${idsCL[Red]}${temp_crit}'F=>${idsCL[Default]} ]"