Update powerwall.sh

This commit is contained in:
2022-09-11 15:37:23 -05:00
parent f46084c348
commit 2b4986516b

View File

@@ -123,10 +123,12 @@ CHECKACV_SERVICE(){
[ $VERBOSE = true ] && echo "($datetime) back to normal voltage: ${INPUTACV}V"
echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "POWER NOMINAL AGAIN" $email_alert
[ $VERBOSE = true ] && echo "alert sent"
elif [ $voltstatus -eq 0 ]; then
else
[ $VERBOSE = true ] && echo "($datetime) normal voltage: ${INPUTACV}V"
echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "Power Nominal" $email_alert
[ $VERBOSE = true ] && echo "alert sent"
if [ $voltstatus -eq 0 ]; then
echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "Power Nominal" $email_alert
[ $VERBOSE = true ] && echo "alert sent"
fi
fi
voltstatus=1
else