From 0593c55465d9a12b52195d4c558b3b3319171484 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 27 May 2023 17:10:52 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index af74b9f7..a0aa0501 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -28,16 +28,16 @@ CHECKTEMP(){ for SENSOR in ${!SENSOR_ID[@]}; do if [[ "${SENSOR}" = *"${1}"* ]]; then - echo -en "${idsCL[LightCyan]}Gathering '${SENSOR}' Data...${spc}${idsCL[Default]}: ${reading}" + echo -en "${idsCL[LightYellow]}Pulling '${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 "\033[K${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}" + echo -e "\r\033[K${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}" fi done else for SENSOR in ${!SENSOR_ID[@]}; do - echo -en "${idsCL[LightCyan]}Gathering '${SENSOR}' Data..." + echo -en "${idsCL[LightYellow]}Pulling '${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 "\r\033[K${idsCL[LightCyan]}${SENSOR}${spc}${idsCL[Default]}: ${reading}"