Update temp.inc.sh
This commit is contained in:
@@ -105,11 +105,9 @@ CHECKTEMPSENSOR(){
|
||||
if [ "${PW_SENSOR_TYPE[${1}]}" == "mqtt" ]; then
|
||||
mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`
|
||||
echo ${mqtt_message} | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c
|
||||
echo "HERE: ${1} - ${temp_c}"
|
||||
|
||||
elif [ "${PW_SENSOR_TYPE[${1}]}" == "lacrosse" ]; then
|
||||
temp_c=$(GET_LACROSSE_INFO "${PW_LACROSSE_ID[${1}]}")
|
||||
echo "HERE1: ${temp_f}"
|
||||
|
||||
elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ]; then
|
||||
temp_c=$(vcgencmd measure_temp)
|
||||
@@ -145,7 +143,7 @@ CHECKTEMPSENSOR(){
|
||||
temp_f=${temp_c}
|
||||
echo "HERE2: ${temp_f}"
|
||||
fi
|
||||
# echo "HERE: '${temp_c}' -> '${temp_f}'"
|
||||
echo "HERE: '${temp_c}' -> '${temp_f}'"
|
||||
# echo -en ""
|
||||
c=0; spct=''; spc1=`expr 6 - ${#temp_f}`; until [ ${c} = ${spc1} ]; do spct="${spct} "; c=`expr ${c} + 1`; done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user