From 833cf8c3a5f8477b1be96297d2f68f1a85ec7a17 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 27 May 2023 17:07:58 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/powerwall.sh b/powerwall.sh index 16cc3fd4..cabcf109 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -37,9 +37,10 @@ CHECKTEMP(){ else for SENSOR in ${!SENSOR_ID[@]}; do + 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}" done fi [ "${action}" != "" ] && echo