I have DHT11 connected to ESP8266 and I would like to read the actual temperature value from it, temperature on V0 and humidity on V1 updated every second. As far as I can tell this is not possible with with the Blynk web sockets plugin. I can read the pin number but not the actual value of the pin using the read event output block. Just wondering is anyone else had run into this problem and if there is a good solution.
you need to use Inject Node with below settings
and HTTP Function node with below settings
you ban import it by copy this code and import it nin your Node red
[{"id":"def9fa7e.7f6118","type":"tab","label":"Flow 1"},{"id":"2fe865b1.21653a","type":"inject","z":"def9fa7e.7f6118","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"x":123,"y":242,"wires":[["d4c6ad3c.eafb8"]]},{"id":"d4c6ad3c.eafb8","type":"http request","z":"def9fa7e.7f6118","name":"Get V1 value","method":"GET","ret":"obj","url":"http://blynk-cloud.com/##AuthToken##/pin/v1","tls":"","x":295,"y":242,"wires":[["9187f6d5.52fee8"]]},{"id":"9187f6d5.52fee8","type":"debug","z":"def9fa7e.7f6118","name":"","active":false,"console":"false","complete":"payload","x":471,"y":242,"wires":[]}]
Thanks @scropion86. This worked perfectly. My final flow for humidity and temperature looks like this:
I’m running a local server so the URL string for reading V0 is: http://SERVER_IP:8082/TOKEN/pin/V0
Thanks for a quick response!
NOTE: I reconfigured my http port to 8082, 8080 is the local server default.