From 721f2bf7fdfe4ce52a5b65195d0ca6e53b06e52e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Dec 2023 15:11:22 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 40bd4524..bb559681 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -326,15 +326,13 @@ CHECKTEMP_SERVICE(){ temp_h=$(echo ${INFO} | jq -r '.device0 .obs[].humidity') elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ]; then - if [[ "${1}" = *"CPU"* ]]; then + if [[ "${SENSOR}" = *"CPU"* ]]; then temp_c=$(vcgencmd measure_temp) temp_c=${temp_c%\'*}; temp_c=${temp_c#*=} temp_h='' - elif [[ "${1}" = *"FAN"* ]]; then + elif [[ "${SENSOR}" = *"FAN"* ]]; then temp_c=$(cat /sys/class/hwmon/hwmon2/fan1_input) temp_h='' - echo "EX: ${temp_c}" - cat /sys/class/hwmon/hwmon2/fan1_input fi elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "remotesystem" ]; then