Update powerwall.sh

This commit is contained in:
2023-05-14 21:51:06 -05:00
parent 20d1cc7184
commit 3155c42481

View File

@@ -59,11 +59,11 @@ CHECKTEMPSENSOR(){
#echo "$temp_c -> $temp_f"
if [ $(bc -l <<< "$temp_f >= $temp_warn") -eq 1 ] && [ $(bc -l <<< "$temp_f < $temp_crit") -eq 1 ]; then
echo -en "${idsCL[LightMagenta]}WARNING - $temp_f°F${idsCL[Default]}"
echo -en "${idsCL[LightMagenta]}WARNING ($temp_f°F)${idsCL[Default]}"
elif [ $(bc -l <<< "$temp_f >= $temp_crit") -eq 1 ]; then
echo -en "${idsCL[Red]}CRITICAL - $temp_f°F${idsCL[Default]}"
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 10 - ${#temp_f} - 2`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done