From e875989b5a6277343cc4f3de953b8b49a2c463bb Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 30 Dec 2023 13:25:40 -0600 Subject: [PATCH] Update defaults.inc --- defaults.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index b607cb55..cb5fad82 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ -VERS='2.5.86-12302023' +VERS='2.5.87-12302023' noheader=' update service dailytemp confsync ' @@ -24,6 +24,10 @@ PW_LOGPOWER=${PW_LOGFOLDER}/log-power M_SRVCOPT=(start stop restart reload enable disable) source ${PW_FOLDER}/settings.conf +EMAIL_NOTICE=${PW_EMAIL_NOTICE} +PUSHOVER_APP_TOKEN=${PW_PUSHOVER_APP_TOKEN} +PUSHOVER_USER_TOKEN=${PW_PUSHOVER_USER_TOKEN} + mqtt_conn="/usr/bin/mosquitto_sub -h 127.0.0.1 -u ${PW_MQTT_USER} -P ${PW_MQTT_PASS}" # mysql_conn="/usr/bin/mysql -h ${PW_MYSQL_HOST} -P 6033 --user=${PW_MYSQL_USER} --password=${PW_MYSQL_PASS}" @@ -67,7 +71,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 [ "${PW_PUSHOVER_APP_TOKEN}" != "" ]; then + if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then echo "sending notice" if [ "${TEST_INPUTACV}" != "" ] || [ "${TEST_BATTVOLT}" != "" ]; then PUSH_TO_MOBILE "***TEST MODE***