From 2e7d241a4ffc6d76ad2841c1e8450c01a0430f64 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 19 Dec 2024 17:43:54 -0600 Subject: [PATCH] update --- defaults.inc | 2 +- inc/temp.inc.sh | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/defaults.inc b/defaults.inc index 8631926b..ec84ac0f 100755 --- a/defaults.inc +++ b/defaults.inc @@ -46,7 +46,7 @@ PUSHOVER_APP_TOKEN=${PW_PUSHOVER_APP_TOKEN} PUSHOVER_USER_TOKEN=${PW_PUSHOVER_USER_TOKEN} [ "${PW_ENABLE_RENOTIFY}" == "" ] && PW_ENABLE_RENOTIFY=1 -[ "${PW_FANINPUT}" == "" ] && PW_FANINPUT="/sys/class/hwmon/*/fan1_input" +PW_FANINPUT='/sys/class/hwmon/*/fan1_input' IFS=, PW_MAINSITEHOSTS=(${PW_MAINSITE_HOSTS}) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index b319296a..445064ed 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -21,13 +21,9 @@ START_POWERWALL_FAN(){ temp_c=$(${PWCMD} cat ${PW_FANINPUT}) if [ ${temp_c} -gt 0 ]; then fs=$(IDS_NUMBER_FORMAT ${temp_c}) - SENDNOTICE "Starting up the ${SENSOR}" "Startup confirmed, the fan is now reading: ${fs}'RPM - -FAN: ${PW_FANINPUT}" + SENDNOTICE "Starting up the ${SENSOR}" "Startup confirmed, the fan is now reading: ${fs}'RPM" else - SENDNOTICE "FAILED to start ${SENSOR}" "Cannot start the fan, ERROR WILL ROBINSON!!! - -FAN: ${PW_FANINPUT}" 1 + SENDNOTICE "FAILED to start ${SENSOR}" "Cannot start the fan, ERROR WILL ROBINSON!!!" 1 fi else SENDNOTICE "FAILED to start ${SENSOR}" "Cannot find hardware, ERROR ERROR ERROR... DOES NOT COMPUTE... YOU SUCK" 1