This commit is contained in:
2024-12-19 17:43:54 -06:00
parent 2c6f5794e5
commit 2e7d241a4f
2 changed files with 3 additions and 7 deletions

View File

@@ -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})

View File

@@ -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