Update powerwall.sh

This commit is contained in:
2023-11-04 11:33:05 -05:00
parent 84a7ecc893
commit 0fc8e1bd2d

View File

@@ -64,9 +64,9 @@ CHECKTEMP(){
c=0; spc=''; spc1=`expr ${cw} - ${#sensorname} - 1`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
[ "${1}" != "noavg" ] && [ "${1}" != "" ] && echo -en "${idsCL[LightCyan]} ${sensorname}${spc}${idsCL[Default]}: Calculating ${1} Day average"
[ "${1}" != "noavg" ] && echo -en "${idsCL[LightCyan]} ${sensorname}${spc}${idsCL[Default]}: Calculating ${1} Day average"
reading=$(CHECKTEMPSENSOR ${SENSOR} ${temp_c} ${temp_warn} ${temp_crit} ${sensorname// /_} ${1})
[ "${1}" != "noavg" ] && [ "${1}" != "" ] && echo -en "\r\033[K"
[ "${1}" != "noavg" ] && echo -en "\r\033[K"
echo -e "${idsCL[LightCyan]} ${sensorname}${spc}${idsCL[Default]}: ${reading}"
((t++))