Update powerwall.sh

This commit is contained in:
2023-07-06 21:08:09 -05:00
parent ec8a085af0
commit 64514815a8

View File

@@ -234,12 +234,12 @@ DAILYTEMP(){
echo -e "Sensor Temperature(s) Current / 1DayAVG / 7DayAVG"
DIVIDER . yellow 70
for SENSOR in ${!SENSOR_ID[@]}; do
average1=$(AVERAGETEMP ${SENSOR_ID[$SENSOR]} 1)
# average1=$(AVERAGETEMP ${SENSOR_ID[$SENSOR]} 1)
# average7=$(AVERAGETEMP ${SENSOR_ID[$SENSOR]} 7)
if [ "${SENSOR_TYPE[${SENSOR}]}" == "mqtt" ]; then
mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`
echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c
temp_c=$(echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1)
elif [ "${SENSOR_TYPE[${SENSOR}]}" == "system" ]; then
temp_c=$(vcgencmd measure_temp)