Update powerwall.sh

This commit is contained in:
2023-07-06 21:14:39 -05:00
parent a7a5f3dc77
commit a707de6b7c

View File

@@ -229,10 +229,11 @@ NORMAL TEMP: ${temp_f}'F"
}
DAILYTEMP(){
cw=25;
start=`date +%s`
cw=22;
echo
echo -e "Sensor Temperature(s) Current / 1DayAVG / 7DayAVG"
DIVIDER . yellow 70
echo -e "Sensor Temperature(s) Current / 1DayAVG / 7DayAVG"
DIVIDER . yellow 60
for SENSOR in ${!SENSOR_ID[@]}; do
average1=$(AVERAGETEMP ${SENSOR_ID[$SENSOR]} 1)
average7=$(AVERAGETEMP ${SENSOR_ID[$SENSOR]} 3)
@@ -256,6 +257,11 @@ DAILYTEMP(){
fi
done
echo
end=`date +%s`
runtime=$((end-start))
echo "runtime: ${runtime}"
echo
}