Hi,
I can’t really figure out how I should be able to read the temperature from the DS18B20 sensor connected to the Sonoff TH10/16 flashed with Tasmoto 5.10.0a.
MQT: tele/sonoff_TH10_02/STATE = {"Time":"1970-01-01T00:00:17","Uptime":0,"Vcc":3.211,"POWER":"OFF","Wifi":{"AP":1,"SSId":"***************","RSSI":100,"APMac":"***********"}}
MQT: tele/sonoff_TH10_02/SENSOR = {"Time":"1970-01-01T00:00:17","DS18B20":{"Temperature":23.3},"TempUnit":"C"}
Actually I like to achieve what is to read the temperature into a variable and plot it into a graph like shown in this thread;
[https://forum.pimatic.org/topic/2967/option-for-wireless-modules/13] (chrizzz86 | 9 months ago).
Though that is done by using a CURL-statement and I wonder if I can’t read that varibale not directly in a same way as you read the status of the on/off relay??
(PS i had to tweak the curl-statement a little to make it work for me
curl --silent http://192.168.*******/cm?cmnd=Status%2010 | grep 'Temperature' | cut -d ':' -f7 | cut -d '}' -f1
)
Second question:
A bit of topic perhaps but I also wonder how chrizzz86 got that little graph in there.
fixed
Thanks all