This commit is contained in:
2024-10-28 22:17:27 -05:00
parent 791d9075cd
commit 41f5f44851
2 changed files with 15 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.7.117-10282024'
VERS='2.7.118-10282024'
noheader=' update service dailytemp confsync -r -report test '
@@ -32,7 +32,13 @@ EMAIL_NOTICE=${PW_EMAIL_NOTICE}
PUSHOVER_APP_TOKEN=${PW_PUSHOVER_APP_TOKEN}
PUSHOVER_USER_TOKEN=${PW_PUSHOVER_USER_TOKEN}
[ "${PW_FANINPUT}" == "" ] && PW_FANINPUT=/sys/class/hwmon/hwmon2/fan1_input
if [ "${PW_FANINPUT}" == "" ]; then
if [ -f /sys/class/hwmon/hwmon2/fan1_input ]; then
PW_FANINPUT=/sys/class/hwmon/hwmon2/fan1_input
elif [ -f /sys/class/hwmon/hwmon3/fan1_input ]; then
PW_FANINPUT=/sys/class/hwmon/hwmon3/fan1_input
fi
fi
[ "${PW_ENABLE_RENOTIFY}" == "" ] && PW_ENABLE_RENOTIFY=1
mqtt_conn="/usr/bin/mosquitto_sub -h 127.0.0.1 -u ${PW_MQTT_USER} -P ${PW_MQTT_PASS}"