diff --git a/powerwall.sh b/powerwall.sh index 5dc3c6fe..39664163 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -361,7 +361,6 @@ Previous Temp: ${last_temp[${SENSOR}]}'F" DAILYTEMP(){ - start=`date +%s` cw=35; echo echo -e "Sensor Temperature(s) Now / 1DayAVG / 7DayAVG" @@ -420,11 +419,6 @@ DAILYTEMP(){ done [ "$temp_c" != "null" ] && [ "$temp_c" != "" ] && echo done - echo - end=`date +%s` - runtime=$((end-start)) - echo "runtime: ${runtime}" - # echo } @@ -944,8 +938,11 @@ fi ;; checktemp) CHECKTEMP ${2};; dailytemp) + start=`date +%s` DAILYTEMP # SENDNOTICE "Daily Temp Readings" "$(DAILYTEMP)" + end=`date +%s`; runtime=$((end-start)) + echo -e "\nruntime: ${runtime}\n" ;; checkpower) CHECKPOWER;; test) CHECKTEMP ${2} ${3};;