Update powerwall.sh

This commit is contained in:
2022-09-03 15:10:02 -05:00
parent 60a2cad7c6
commit 681c4b23a9

View File

@@ -61,14 +61,14 @@ CHECKTEMP_SERVICE(){
echo "($temp_d @ $temp_t) 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"
echo "($temp_d @ $temp_t) WARNING: $temp_f°F - (Difference of $temp_diff°)"
elif [ $(bc -l <<< "$temp_f >= $temp_crit") -eq 1 ]; then
if [ $temp_diff -gt 1 ] || [ "$last_temp" == "0" ]; then
echo "($temp_d @ $temp_t) 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"
echo "($temp_d @ $temp_t) CRITICAL: $temp_f°F - (Difference of $temp_diff°)"
else
if [ "$last_temp" != "1" ]; then