From d993acf9980a5a17e314de7a1af29b17839f6284 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 18 Mar 2023 22:45:16 -0500 Subject: [PATCH] Update default.inc --- default.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/default.inc b/default.inc index c9bb158..3df4005 100755 --- a/default.inc +++ b/default.inc @@ -187,14 +187,19 @@ CHECK_HOST(){ push_to_mobile(){ MESSAGE=$1 TITLE=$2 + MSGSOUND=classical if [ "$3" = "2" ]; then PRIORITY="${3}&retry=60&expire=600" + MSGSOUND=alien + elif [ "$3" = "1" ]; then + PRIORITY="${3}" + MSGSOUND=siren elif [ "$3" != "" ]; then PRIORITY=$3 else PRIORITY=0 fi - wget https://api.pushover.net/1/messages.json --post-data="token=$PUSHOVER_APP_TOKEN&user=$PUSHOVER_USER_TOKEN&message=$MESSAGE&title=$TITLE&priority=$PRIORITY" -qO- > /dev/null 2>&1 & + wget https://api.pushover.net/1/messages.json --post-data="token=$PUSHOVER_APP_TOKEN&user=$PUSHOVER_USER_TOKEN&message=$MESSAGE&title=$TITLE&priority=$PRIORITY&sound=$MSGSOUND" -qO- > /dev/null 2>&1 & }