Update offsite-power-check.sh
This commit is contained in:
@@ -32,6 +32,8 @@ $(date)"
|
||||
curl -d "token=${PUSHOVER_APP_TOKEN}&user=${PUSHOVER_USER_TOKEN}&message=${MESSAGE}&title=${TITLE}&priority=${PRIORITY}&sound=${MSGSOUND}" https://api.pushover.net/1/messages.json
|
||||
}
|
||||
|
||||
SENDNOTICE2 "TEST" "Testing 321"
|
||||
|
||||
while true; do
|
||||
upsinfo=$(upsc CP1500PFCLCD)
|
||||
if [ "${upsinfo}" != "" ]; then
|
||||
@@ -87,7 +89,5 @@ BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'Mins" 1
|
||||
sleep 10s
|
||||
done
|
||||
|
||||
SENDNOTICE2 "TEST" "Testing 321"
|
||||
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user