update
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
VERS='2.4.9-12102023'
|
VERS='2.4.10-12102023'
|
||||||
|
|
||||||
noheader=' update service dailytemp '
|
noheader=' update service dailytemp '
|
||||||
hc_cw=60
|
hc_cw=60
|
||||||
@@ -166,7 +166,7 @@ unset IFS
|
|||||||
SENDNOTICE(){
|
SENDNOTICE(){
|
||||||
[ "${PUSHOVER_APP_TOKEN}" != "" ] && PUSH_TO_MOBILE "${2}
|
[ "${PUSHOVER_APP_TOKEN}" != "" ] && PUSH_TO_MOBILE "${2}
|
||||||
|
|
||||||
$(date +%Y-%m-%d-%H-%M-%S)" "${1}" ${3} &
|
$(date)" "${1}" ${3} &
|
||||||
|
|
||||||
[ "${EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date +%Y-%m-%d-%H-%M-%S)" | mail -s "${1}" ${EMAIL_NOTICE}
|
[ "${EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date +%Y-%m-%d-%H-%M-%S)" | mail -s "${1}" ${EMAIL_NOTICE}
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ BATTERY CHARGE: ${OFFSITE_BATT_CAP}'%25
|
|||||||
BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'mins
|
BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'mins
|
||||||
AC VOLTAGE: ${OFFSITE_VOLTIN}'volts
|
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
|
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
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user