This commit is contained in:
2023-12-29 23:24:42 -06:00
parent 6d50310f53
commit 3ae79eeabf
2 changed files with 3 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ fi
# RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
SENDNOTICE(){
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
if [ "${PW_PUSHOVER_APP_TOKEN}" != "" ]; then
if [ "${TEST_INPUTACV}" != "" ] || [ "${TEST_BATTVOLT}" != "" ]; then
PUSH_TO_MOBILE "***TEST MODE***
@@ -82,7 +82,7 @@ $(date)" "${1}" ${3} &
$(date)" "${1}" ${3} &
fi
fi
[ "${EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date +%Y-%m-%d-%H-%M-%S)" | mail -s "${1}" ${EMAIL_NOTICE}
[ "${PW_EMAIL_NOTICE}" != "" ] && echo -e "${2}\n\n$(date +%Y-%m-%d-%H-%M-%S)" | mail -s "${1}" ${PW_EMAIL_NOTICE}
}