Node Red and some MQTT feed issues ...

41 views
Skip to first unread message

Bruce Emsworth

unread,
Oct 20, 2016, 3:23:51 PM10/20/16
to Node-RED
I have an Arduino reading time, temp and 3 analog inputs, feed those to MQTT.
All show up properly in MQTT-Spy and in the MQTT console. I have MQTT and Node Red with the Dashboard add on running on a Pi3

In V1 I only output the temp to a dashboard guage and a chart - worked a treat!

Now I have added the analog inputs. The values get to the MQTT queue, but the values don't show up on the dashboard. I have restarted Node Red (on a Pi3) and the browser (Firefox on a W10 PC).

Any suggestions?

Here is my flow .....


Auto Generated Inline Image 1

Dave C-J

unread,
Oct 20, 2016, 4:05:13 PM10/20/16
to node...@googlegroups.com
do they appear in the debug ?
how fast are you sending data ? (the chart in particular has known problems with quantities/speed of data)

Bruce Emsworth

unread,
Oct 20, 2016, 4:32:30 PM10/20/16
to Node-RED
The temperature is basically once a minute, but the analog readings are at the speed the Arduino can manage - so probably a burst of three readings in a few milliseconds. Good thought, I'll try slowing down the analog reading rate.
Thanks

Bruce Emsworth

unread,
Oct 20, 2016, 4:41:28 PM10/20/16
to Node-RED
OK tried introducing a 500ms delay for each analog reading - still not working!
Strange why it gets one set of values (temp) from MQ but not the others (analog) ....

Mark Setrem

unread,
Oct 20, 2016, 5:02:02 PM10/20/16
to Node-RED
Have you tried adding a delay node into it to allow through for example 1 message every 10 seconds, and then feed this into a debug node, so you can have a chance to read it and see if its a formatting issue?

Dave C-J

unread,
Oct 20, 2016, 5:36:55 PM10/20/16
to node...@googlegroups.com
delay node.... set to rate limit mode... and dropping intermediate messages.
Reply all
Reply to author
Forward
0 new messages