Update powerwall.sh

This commit is contained in:
2023-11-04 12:55:09 -05:00
parent 1b1682d5e7
commit dfff6ef6ef

View File

@@ -494,13 +494,13 @@ DAILYTEMP(){
temp_c=''
fi
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then
average1=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 1 ${vSENSOR// /_})
average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7 ${vSENSOR// /_})
else
average1=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 1)
average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7)
fi
# if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then
# average1=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 1 ${vSENSOR// /_})
# average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7 ${vSENSOR// /_})
# else
# average1=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 1)
# average7=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSORa}]} 7)
# fi
c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then