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)