Since at least one person on this board (except me) found it cool, I use this post to show how I visualize my MQTT traffic on a public web site.
I have various sensors and actors on my WiFi, all ESP8266 based, some homegrown, some from Itead (the son off devices).
All these devices exchange data with a mqtt broker. And node-red is used
- to decrypt the data coming from the sensors on the input/ topic
- send decrypted data to the sensors topic sensors/
- map sensors to real world topic tree data/
- encrypt and send commands to the sensors via command/
On
shiftr.io is a web based service, which visualizes the messages flowing through the topic tree:
I use node-red top copy the data from my internal broker to the public broker on
broker.shiftr.io
The flows offer
- a gate function to enable/disable the data copying
- a privacy function where I strip out the payload of the broker messages
- some delays/randomness for the broker messages, just because it looks nicer
Here is how the flows look like.
