Update powerwall.sh

This commit is contained in:
2022-09-03 14:42:06 -05:00
parent a430598687
commit 09b6ae2628

View File

@@ -56,7 +56,7 @@ CHECKTEMP_SERVICE(){
[ $temp_diff -lt 0 ] && temp_diff=$(($temp_diff * -1))
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
if [ [ $temp_diff -gt 1 ] || [ "$last_temp" = "0" ] ]; then
echo "($temp_diff) WARNING TEMP: $temp_f°F" | mail -s "${1} TEMP WARNING" $email_alert
last_temp=$temp_f
fi