Update powerwall.sh
This commit is contained in:
@@ -77,10 +77,10 @@ CHECKTEMP_SERVICE(){
|
||||
echo "($datetime) CRITICAL: $temp_f°F - (Difference of $temp_diff°)"
|
||||
|
||||
else
|
||||
if [ "$last_temp" > "1" ]; then
|
||||
if [ $last_temp -gt 1 ]; then
|
||||
echo -e "($datetime) NORMAL TEMP: $temp_f°F\nPrevious Temp: $last_tempf°FF" | mail -s "${1} BACK TO NORMAL" $email_alert
|
||||
echo "alert sent"
|
||||
elif [ "$last_temp" == "0" ]; then
|
||||
elif [ "$last_temp" = "0" ]; then
|
||||
echo "NORMAL TEMP: $temp_f°F" | mail -s "${1} TEMP NORMAL" $email_alert;
|
||||
fi
|
||||
last_temp=1
|
||||
|
||||
Reference in New Issue
Block a user