From 6389b877648fc8ba2503bfe61371cd61da03f602 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 5 Nov 2023 14:53:26 -0600 Subject: [PATCH] Update offsite-power-check.sh --- offsite-power-check.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/offsite-power-check.sh b/offsite-power-check.sh index 1cc35117..eddd4185 100755 --- a/offsite-power-check.sh +++ b/offsite-power-check.sh @@ -9,7 +9,10 @@ PW_LOGPOWER=${PW_LOGFOLDER}/log-power SENDNOTICE2(){ TITLE=${1} - MESSAGE="${2}" + MESSAGE=${2} +# MESSAGE="${2} +# +# $(date)" MSGSOUND=Cosmic PUSHOVER_APP_TOKEN="aduyec9mcuoaxir5pavirb8tioixpe" PUSHOVER_USER_TOKEN="ubt1csryf5rwa1j96de8revt2fvw4j" @@ -26,7 +29,7 @@ SENDNOTICE2(){ PRIORITY=0 fi echo "Sending message" - curl "https://api.pushover.net/1/messages.json?token=${PUSHOVER_APP_TOKEN}&user=${PUSHOVER_USER_TOKEN}&message=${MESSAGE}&title=${TITLE}&priority=${PRIORITY}&sound=${MSGSOUND}" + curl --data="token=${PUSHOVER_APP_TOKEN}&user=${PUSHOVER_USER_TOKEN}&message=${MESSAGE}&title=${TITLE}&priority=${PRIORITY}&sound=${MSGSOUND}" https://api.pushover.net/1/messages.json } upsinfo=$(upsc CP1500PFCLCD)