This commit is contained in:
2024-08-22 22:22:09 -05:00
parent 29438b83b8
commit 210ec3e678
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.7.93-08222024'
VERS='2.7.94-08222024'
noheader=' update service dailytemp confsync -r -report test '

View File

@@ -1581,10 +1581,10 @@ SENDTEMP(){
IFS=: read -r temp_c temp_h <<< $(GET_TUYA_TEMP ${SENSORa}); unset IFS
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ]; then
if [[ "${SENSORa}" = *"CPU"* ]]; then
if [[ "${SENSOR}" = *"CPU"* ]]; then
temp_c=$(vcgencmd measure_temp)
temp_c=${temp_c%\'*}; temp_c=${temp_c#*=}
elif [[ "${SENSORa}" = *"FAN"* ]]; then
elif [[ "${SENSOR}" = *"FAN"* ]]; then
temp_c=$(cat ${PW_FANINPUT})
fi