Update powerwall.sh
This commit is contained in:
@@ -56,7 +56,7 @@ CHECKTEMP_SERVICE(){
|
|||||||
[ $temp_diff -lt 0 ] && temp_diff=$((temp_diff * -1))
|
[ $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 [ $(bc -l <<< "$temp_f >= $temp_warn") -eq 1 ] && [ $(bc -l <<< "$temp_f < $temp_crit") -eq 1 ]; then
|
||||||
[ $temp_diff -gt 1 ] && echo "WARNING TEMP: $temp_f°F" | mail -s "${1} TEMP WARNING" $email_alert
|
[ $temp_diff -gt 1 ] && echo "($temp_diff) WARNING TEMP: $temp_f°F" | mail -s "${1} TEMP WARNING" $email_alert
|
||||||
echo "($temp_d @ $temp_t) WARNING: $temp_f°F"
|
echo "($temp_d @ $temp_t) WARNING: $temp_f°F"
|
||||||
|
|
||||||
elif [ $(bc -l <<< "$temp_f >= $temp_crit") -eq 1 ]; then
|
elif [ $(bc -l <<< "$temp_f >= $temp_crit") -eq 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user