Update powerwall.sh

This commit is contained in:
2023-10-30 14:05:58 -05:00
parent 37e83472d0
commit e0d4bf520a

View File

@@ -92,6 +92,7 @@ CHECKTEMP(){
}
CHECKTEMPSENSOR(){
echo "HERE: ${6}"
echo ${PW_TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn
echo ${PW_TEMP_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit
[ "${6}" != "noavg" ] && ([ "${PW_SENSOR_TYPE[${1}]}" != "esxi" ] && average=$(AVERAGETEMP ${PW_SENSOR_ID[${1}]} 3) || average=$(AVERAGETEMP ${PW_SENSOR_ID[${1}]} 3 ${5}))