Update powerwall.sh

This commit is contained in:
2023-12-03 17:28:55 -06:00
parent 5e4564b278
commit 5e08683bbb

View File

@@ -94,8 +94,7 @@ CHECKTEMP(){
if [ "${SENSOR}" == "Powerwall-CPU" ] || [ "${SENSOR}" == "OctoPi-CPU" ]; then
SENSOR="${SENSOR}-Usage"
echo -en "${idsCL[Yellow]}Pulling data for '${SENSOR}' ... "
CHECKTEMPSENSOR ${SENSOR}
# reading=$(CHECKTEMPSENSOR ${SENSOR})
reading=$(CHECKTEMPSENSOR ${SENSOR})
c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
echo -e "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${reading}"
fi