update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERS='2.5.284-02072024'
|
||||
VERS='2.5.285-02072024'
|
||||
|
||||
noheader=' update service dailytemp confsync -r -report '
|
||||
|
||||
|
||||
@@ -631,8 +631,9 @@ AMBIENT TEMP: ${OFFSITE_TEMP}'F"
|
||||
# MESSAGE="$(echo -e "${MESSAGE}" | 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
|
||||
[ "${3}" = "" ] && pri=0 || pri=${3}
|
||||
SENDNOTICE ${1} ${MESSAGE} ${pri} siren
|
||||
[ "${3}" != "" ] && PRIORITY=${3} || PRIORITY=0
|
||||
|
||||
SENDNOTICE ${1} ${MESSAGE} ${PRIORITY} cosmic
|
||||
}
|
||||
if [ "${startup}" = "true" ]; then
|
||||
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${OFFSITE_VOLTIN}'volts - ${OFFSITE_WATTS}'watts - ${OFFSITE_BATT_CAP}'% Battery - ${OFFSITE_BATT_RUNTIME}'mins - Service startup" >> ${PW_LOGPOWER}
|
||||
@@ -1014,7 +1015,7 @@ SENDPOWER(){
|
||||
|
||||
OFFSITE_SENDPOWER(){
|
||||
st_power=`${PW_SCRIPT} check power -o -p -r`
|
||||
SENDNOTICE "${1}" "${st_power}" 0 siren
|
||||
SENDNOTICE "${1}" "${st_power}" 0 cosmic
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user