update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='2.5.281-02072024'
|
VERS='2.5.282-02072024'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report '
|
noheader=' update service dailytemp confsync -r -report '
|
||||||
|
|
||||||
|
|||||||
@@ -621,8 +621,7 @@ OFFSITE_CHECKPOWER_SERVICE(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
SENDNOTICE(){
|
SENDNOTICE(){
|
||||||
SN_MSG="$(echo -e "${2}" | sed "s/\%/\%25 /g")"
|
MESSAGE="${TESTMODE}${2}
|
||||||
MESSAGE="${TESTMODE}${SN_MSG}
|
|
||||||
|
|
||||||
BATTERY CHARGE: ${OFFSITE_BATT_CAP}'%
|
BATTERY CHARGE: ${OFFSITE_BATT_CAP}'%
|
||||||
BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'mins
|
BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'mins
|
||||||
@@ -631,6 +630,7 @@ WATT USAGE: ${OFFSITE_WATTS}'watts
|
|||||||
AMBIENT TEMP: ${OFFSITE_TEMP}'F
|
AMBIENT TEMP: ${OFFSITE_TEMP}'F
|
||||||
|
|
||||||
$(date)"
|
$(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
|
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
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user