One of the the most common use scenarios for using JSON data is for combining data from multiple sources.
In this tutorial we will simulate a multi-sensor environment were we collect data from several sensors and publish it wusing MQTT on a single topic using JSON encoded Data.
The video also demonstrates how we can hold and delay publishing data while we combine it.
To accomplish this we use a fuction node and use the context object to store sensor values before we publish them.
Related Tutorials and Resources
Flow used in video
https://stevesnoderedguide.com/downlo...
-
https://stevesnoderedguide.com/workin...
-----------------------
Introduction to JSON
https://www.w3schools.com/js/js_json_...
------------------
Working With JSON Data in Node Red
• Working With JSON Data in Node Red
----------
Creating a Simple Controllable MQTT Sensor With Node-Red
• Creating a Simple Controllable MQTT S...
---------
The Node-Red Message Object for Beginners
• The Node-Red Message Object for Begin...
------------
Create a Node Red Basic Flow - MQTT Subscribe Example
• Quick Introduction to Node Red ( Crea...
---------------------------------
How to Create a Node-Red MQTT Dashboard
• How to Create a Node-Red MQTT Dashboard
---------------------------
How to Store Data In Node Red Variables
• How to Store Data In Node Red Variables
-----------------------
Receive JSON Data Over MQTT with Node-Red
• Receive JSON Data Over MQTT with Node...
Have a question Use the comments or if you want help then use
http://www.steves-internet-guide.com/...
If you find these videos useful then you might want to consider buying me a coffee
https://www.paypal.me/StepenCope