Update powerwall.sh
This commit is contained in:
@@ -156,7 +156,9 @@ CHECKACV_SERVICE(){
|
|||||||
if [ $battstatus -lt 3 ]; then
|
if [ $battstatus -lt 3 ]; then
|
||||||
[ $VERBOSE = true ] && echo "($datetime) Shutting down all remaining servers..."
|
[ $VERBOSE = true ] && echo "($datetime) Shutting down all remaining servers..."
|
||||||
echo -e "($datetime) Battery Voltage REALLY LOW: ${BATTVOLT}V\nShutting down all servers" | mail -s "BATT-VOLT REALLY LOW: SHUTDOWN SERVERS" $email_alert
|
echo -e "($datetime) Battery Voltage REALLY LOW: ${BATTVOLT}V\nShutting down all servers" | mail -s "BATT-VOLT REALLY LOW: SHUTDOWN SERVERS" $email_alert
|
||||||
|
|
||||||
|
#curl --data "cmd=PWRoff" http://10.10.0.61/cmd
|
||||||
|
|
||||||
battstatus=3
|
battstatus=3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user