Update powerwall.sh

This commit is contained in:
2023-12-11 17:45:35 -06:00
parent 1e32f9633b
commit c0ea9716b9

View File

@@ -245,7 +245,7 @@ CHECKTEMP_SERVICE(){
fi
if [ "${SENSORS_CHECK}" != "" ]; then
for SENSOR in "${SENSORS_CHECK[@]}"; do
[ ! "${last_temp[${SENSOR}]}" ] && last_temp[${SENSOR}]=0
[ "${last_temp[${SENSOR}]}" == "" ] && last_temp[${SENSOR}]=0
if [ "${PW_THRESHOLDS[${SENSORa}]}" != "" ]; then
echo ${PW_THRESHOLDS[${SENSORa}]} | cut -d',' -f 1 | read temp_warn
echo ${PW_THRESHOLDS[${SENSORa}]} | cut -d',' -f 2 | read temp_crit