Update offsite-power-check.sh
This commit is contained in:
@@ -9,7 +9,10 @@ PW_LOGPOWER=${PW_LOGFOLDER}/log-power
|
|||||||
|
|
||||||
SENDNOTICE2(){
|
SENDNOTICE2(){
|
||||||
TITLE=${1}
|
TITLE=${1}
|
||||||
MESSAGE="${2}"
|
MESSAGE=${2}
|
||||||
|
# MESSAGE="${2}
|
||||||
|
#
|
||||||
|
# $(date)"
|
||||||
MSGSOUND=Cosmic
|
MSGSOUND=Cosmic
|
||||||
PUSHOVER_APP_TOKEN="aduyec9mcuoaxir5pavirb8tioixpe"
|
PUSHOVER_APP_TOKEN="aduyec9mcuoaxir5pavirb8tioixpe"
|
||||||
PUSHOVER_USER_TOKEN="ubt1csryf5rwa1j96de8revt2fvw4j"
|
PUSHOVER_USER_TOKEN="ubt1csryf5rwa1j96de8revt2fvw4j"
|
||||||
@@ -26,7 +29,7 @@ SENDNOTICE2(){
|
|||||||
PRIORITY=0
|
PRIORITY=0
|
||||||
fi
|
fi
|
||||||
echo "Sending message"
|
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)
|
upsinfo=$(upsc CP1500PFCLCD)
|
||||||
|
|||||||
Reference in New Issue
Block a user