Update powerwall.sh

This commit is contained in:
2023-11-04 11:35:19 -05:00
parent 0b767ed031
commit 31c5f62c25

View File

@@ -86,7 +86,7 @@ CHECKTEMP(){
fi
else
echo -en "${idsCL[Yellow]}Pulling data and calculating averages for '${SENSOR}' ..."
[ "${1}" != "noavg" ] && echo -en "${idsCL[Yellow]}Pulling data and calculating averages for '${SENSOR}' ..." || echo -en "${idsCL[Yellow]}Pulling data for '${SENSOR}' ..."
reading=$(CHECKTEMPSENSOR ${SENSOR} . . . . ${1})
c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
echo -e "\r\033[K${idsCL[LightCyan]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${reading}"