update
This commit is contained in:
@@ -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})
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user