From 47a663245cc8bc0e8abe178a64b94006e13aedde Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 11 Dec 2023 18:11:29 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 6df86c5a..9620771a 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -246,7 +246,6 @@ CHECKTEMP_SERVICE(){ if [ "${SENSORS_CHECK}" != "" ]; then for SENSOR in "${SENSORS_CHECK[@]}"; do [ "${last_temp[${SENSOR//-/}]}" == "" ] && last_temp[${SENSOR//-/}]=0 - echo "${SENSOR//-/} - ${last_temp[${SENSOR//-/}]}" 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 @@ -306,7 +305,7 @@ CHECKTEMP_SERVICE(){ [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "cpu" ] && temp_f=$(echo "scale=2; $temp_c/1" | bc -l) || temp_f=$(echo "scale=2; ${temp_c}*1.8 + 32" | bc) [ "${SENSOR}" == "ServerRoomTH" ] && temp_f=`echo "scale=2; ${temp_f}+${PW_ServerRoomTH_Dev}" | bc` - echo "HERE: [${SENSOR//-/}] - ${temp_c} - ${temp_f} - ${temp_warn} - ${temp_crit} - ${temp_crit_sys}" + echo "HERE: [${SENSOR//-/}] - ${last_temp[${SENSOR//-/}]} - ${temp_c} - ${temp_f} - ${temp_warn} - ${temp_crit} - ${temp_crit_sys}" # [ ! "${temp_c}" ] || [ ! "${temp_f}" ] || [ ! "${temp_warn}" ] || [ ! "${temp_crit}" ] || [ ! "${temp_crit_sys}" ] && echo "VALUE NOT FOUND" if [ "${PW_SENSOR_TYPE[${SENSORa}]}" != "esxi" ]; then