Update defaults.inc
This commit is contained in:
@@ -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***
|
||||
|
||||
Reference in New Issue
Block a user