diff --git a/powerwall.sh b/powerwall.sh index dbe556f5..75bb81d5 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -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