Update powerwall.sh
This commit is contained in:
@@ -122,7 +122,7 @@ CHECKACV_SERVICE(){
|
|||||||
echo "($datetime) normal voltage: ${INPUTACV}V"
|
echo "($datetime) normal voltage: ${INPUTACV}V"
|
||||||
if [ $volt_diff -gt 1 ]; then
|
if [ $volt_diff -gt 1 ]; then
|
||||||
echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "POWER NOMINAL AGAIN" $email_alert
|
echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "POWER NOMINAL AGAIN" $email_alert
|
||||||
if [ "$last_volt" = "0" ]; then
|
elif [ "$last_volt" = "0" ]; then
|
||||||
echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "Power Nominal" $email_alert
|
echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "Power Nominal" $email_alert
|
||||||
fi
|
fi
|
||||||
last_volt=1
|
last_volt=1
|
||||||
|
|||||||
Reference in New Issue
Block a user