diff --git a/powerwall.sh b/powerwall.sh index d7a9a9a4..38b3ba95 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -28,9 +28,10 @@ CHECKTEMP(){ for SENSOR in ${!SENSOR_ID[@]}; do if [[ "${SENSOR}" = *"${1}"* ]]; then + echo -en "${idsCL[LightCyan]}Gathering '${SENSOR}' Data...${spc}${idsCL[Default]}: ${reading}" reading=$(CHECKTEMPSENSOR ${SENSOR}) c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done - echo -e "${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}" + echo -e "\033[K${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}" fi done