This commit is contained in:
2023-12-10 14:41:13 -06:00
parent a7fe865990
commit 1dd3ecadb8
2 changed files with 3 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ BATTERY CHARGE: ${OFFSITE_BATT_CAP}'%25
BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'mins
AC VOLTAGE: ${OFFSITE_VOLTIN}'volts
$(date '+%Y-%m-%d %H:%M:%S')"
$(date)"
if [ "${3}" = "1" ]; then PRIORITY="${3}"; MSGSOUND=siren; elif [ "${3}" != "" ]; then PRIORITY=${3}; else PRIORITY=0; fi
curl -sd "token=${PUSHOVER_APP_TOKEN}&user=${PUSHOVER_USER_TOKEN}&message=${MESSAGE}&title=${1}&priority=${PRIORITY}&sound=cosmic" https://api.pushover.net/1/messages.json >/dev/null 2>&1
}