Update powerwall.sh
This commit is contained in:
@@ -67,10 +67,9 @@ CHECKTEMPSENSOR(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
c=0; spc=''; spc1=`expr 10 - ${#temp_f} - 2`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
c=0; spc=''; spc1=`expr 10 - ${#temp_f} - 2`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
[ ${#temp_warn} == 2 ] && spcn=' ' || spcn=' '
|
[ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '
|
||||||
# c=0; spcn=''; spc1=`expr 7 - ${#temp_warn} - 3`; until [ $c = ${spc1} ]; do spcn="${spcn} "; c=`expr $c + 1`; done
|
[ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '
|
||||||
# c=0; spcw=''; spc1=`expr 6 - ${#temp_warn} - 2`; until [ $c = ${spc1} ]; do spcw="${spcw} "; c=`expr $c + 1`; done
|
echo -e "${spc}[ ${idsCL[Green]}<=$(expr ${temp_warn} - 1)°F${idsCL[Default]}${spcn}/ ${idsCL[Yellow]}${temp_warn}°F${idsCL[Default]}${spcn}/ ${idsCL[Red]}${temp_crit}°F${idsCL[Default]}${spcc}]"
|
||||||
echo -e "${spc}[ ${idsCL[Green]}<=$(expr ${temp_warn} - 1)°F${idsCL[Default]}${spcn}/ ${idsCL[Yellow]}${temp_warn}°F${idsCL[Default]}${spcn}/ ${idsCL[Red]}${temp_crit}°F${idsCL[Default]} ]"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user