This commit is contained in:
2024-02-07 09:26:02 -06:00
parent 77b07d6ca3
commit 8a00ee2d17
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.5.281-02072024'
VERS='2.5.282-02072024'
noheader=' update service dailytemp confsync -r -report '

View File

@@ -621,8 +621,7 @@ OFFSITE_CHECKPOWER_SERVICE(){
fi
SENDNOTICE(){
SN_MSG="$(echo -e "${2}" | sed "s/\%/\%25 /g")"
MESSAGE="${TESTMODE}${SN_MSG}
MESSAGE="${TESTMODE}${2}
BATTERY CHARGE: ${OFFSITE_BATT_CAP}'%
BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'mins
@@ -631,6 +630,7 @@ WATT USAGE: ${OFFSITE_WATTS}'watts
AMBIENT TEMP: ${OFFSITE_TEMP}'F
$(date)"
MESSAGE="$(echo -e "${2}" | sed "s/\%/\%25 /g")"
if [ "${3}" = "1" ]; then PRIORITY="${3}"; MSGSOUND=siren; elif [ "${3}" != "" ]; then PRIORITY=${3}; else PRIORITY=0; fi
curl -m 3 -sd "token=${PW_PUSHOVER_APP_TOKEN}&user=${PW_PUSHOVER_USER_TOKEN}&message=$(echo "${MESSAGE}" | sed -e "s/%/%25/g")&title=${1}&priority=${PRIORITY}&sound=cosmic" https://api.pushover.net/1/messages.json >/dev/null 2>&1
}