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