Update offsite-power-check.sh

This commit is contained in:
2023-11-05 17:16:36 -06:00
parent f23b60aba3
commit d06b4b25e1

View File

@@ -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