Update defaults.inc

This commit is contained in:
2023-12-30 16:01:07 -06:00
parent 42c57f1dbb
commit c0c03070ec

View File

@@ -72,18 +72,19 @@ fi
SENDNOTICE(){
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
MSG=${2/\%/\%25}
SN_TIT=${1/\%/\%25}
SN_MSG=${2/\%/\%25}
if [ "${TEST_INPUTACV}" != "" ] || [ "${TEST_BATTVOLT}" != "" ]; then
PUSH_TO_MOBILE "***TEST MODE***
${MSG}
${SN_MSG}
$(date)" "${1}" ${3} &
$(date)" "${SN_TIT}" ${3} &
else
echo "HERE: ${MSG}: DONE"
PUSH_TO_MOBILE "${MSG}
echo "HERE: [${SN_TIT}]=${SN_MSG}: DONE"
PUSH_TO_MOBILE "${SN_MSG}
$(date)" "${1}" ${3} &
$(date)" "${SN_TIT}" ${3} &
fi
fi
[ "${PW_EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date +%Y-%m-%d-%H-%M-%S)" | mail -s "${1}" ${PW_EMAIL_NOTICE}