From ee645c9ec3aba2e8d7c345b9f38d50169f082e53 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Sep 2022 15:05:35 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 0f2a96d7..39ec52a7 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -58,14 +58,14 @@ CHECKTEMP_SERVICE(){ if [ $(bc -l <<< "$temp_f >= $temp_warn") -eq 1 ] && [ $(bc -l <<< "$temp_f < $temp_crit") -eq 1 ]; then if [ $temp_diff -gt 1 ] || [ "$last_temp" == "0" ]; then - echo "($temp_diff) WARNING TEMP: $temp_f°F" | mail -s "${1} TEMP WARNING" $email_alert + echo "WARNING TEMP: $temp_f°F - (Difference of $temp_diff°)" | mail -s "${1} TEMP WARNING" $email_alert last_temp=$temp_f fi echo "($temp_d @ $temp_t) WARNING: $temp_f°F" elif [ $(bc -l <<< "$temp_f >= $temp_crit") -eq 1 ]; then if [ $temp_diff -gt 1 ] || [ "$last_temp" == "0" ]; then - echo "CRITICAL TEMP: $temp_f°F" | mail -s "${1} TEMP CRITICAL" $email_alert + echo "CRITICAL TEMP: $temp_f°F - (Difference of $temp_diff°)" | mail -s "${1} TEMP CRITICAL" $email_alert last_temp=$temp_f fi echo "($temp_d @ $temp_t) CRITICAL: $temp_f°F"