Update powerwall.sh

This commit is contained in:
2023-05-27 17:08:45 -05:00
parent 833cf8c3a5
commit c972ee84b4

View File

@@ -37,10 +37,10 @@ CHECKTEMP(){
else
for SENSOR in ${!SENSOR_ID[@]}; do
echo -en "${idsCL[LightCyan]}Gathering '${SENSOR}' Data...${spc}${idsCL[Default]}: ${reading}"
echo -e "${idsCL[LightCyan]}Gathering '${SENSOR}' Data..."
reading=$(CHECKTEMPSENSOR ${SENSOR})
c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -e "\033[K${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}"
echo -e "\r\033[K${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}"
done
fi
[ "${action}" != "" ] && echo