Update powerwall.sh
This commit is contained in:
@@ -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]}"
|
||||
|
||||
Reference in New Issue
Block a user