Update powerwall.sh
This commit is contained in:
@@ -95,7 +95,7 @@ CHECKTEMP_SERVICE(){
|
||||
echo -e "($datetime) NORMAL TEMP: ${temp_f}°F\nPrevious Temp: ${last_temp}°F" | mail -s "${1} BACK TO NORMAL" $email_alert
|
||||
[ $VERBOSE = true ] && echo "alert sent"
|
||||
elif [ $last_temp -eq 0 ]; then
|
||||
echo "NORMAL TEMP: ${temp_f}°F" | mail -s "${1} TEMP NORMAL" $email_alert;
|
||||
echo -e "($datetime) Service Startup\n NORMAL TEMP: ${temp_f}°F" | mail -s "${1} TEMP NORMAL" $email_alert;
|
||||
fi
|
||||
last_temp=1
|
||||
[ $VERBOSE = true ] && echo "($datetime) normal: ${temp_f}°F"
|
||||
@@ -126,7 +126,7 @@ CHECKACV_SERVICE(){
|
||||
else
|
||||
[ $VERBOSE = true ] && echo "($datetime) normal voltage: ${INPUTACV}V"
|
||||
if [ $voltstatus -eq 0 ]; then
|
||||
echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "Power Nominal" $email_alert
|
||||
echo -e "($datetime) Service Startup\nNormal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "Power Nominal" $email_alert
|
||||
[ $VERBOSE = true ] && echo "alert sent"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user