Another great feature of NodeRed is that the entire configuration - or even individual parts of it - can be exported formatted as a JSON string.
JSON strings are character strings that contain configurations formatted according to a specific pattern. But what makes it so easy to use is that they are simple text characters that you just have to copy and paste to transfer them from one system to the other.
So if you have put together a cool configuration and want to share it with your buddy, you can send him the configuration in a simple email.
I call this configuration “node code” in this and other articles. Usually (on other sites and also on the NodeRed site itself) this is called “Flow”, but I think the distinction from many other functions in NodeRed is not so clear. For example, the tabs in the NodeRed configuration interface are also called “flows”.
Plus, node code sounds kind of cool too. 🙂
Well, long story short: How to export and import node configurations is described in the following article.
Safety instructions
I know the following notes are always kind of annoying and seem unnecessary. Unfortunately, many people who knew "better" have lost eyes, fingers or other things due to carelessness or injured themselves. Data loss is almost negligible in comparison, but even these can be really annoying. Therefore, please take five minutes to read the safety instructions. Because even the coolest project is not worth injury or other trouble.
https://www.nerdiy.de/sicherheitshinweise/
Affiliate links/advertising links
The links to online shops listed here are so-called affiliate links. If you click on such an affiliate link and make a purchase via this link, Nerdiy.de will receive a commission from the relevant online shop or provider. The price does not change for you. If you make your purchases via these links, you support Nerdiy.de in being able to offer other useful projects in the future. 🙂
Requirements
Helpful articles:
So that you can install new nodes, NodeRed should of course already be installed.
How to prepare a RaspberryPi and then install NodeRed on it is described in the following articles.
The following articles describe what has to be done to prepare the RaspberryPi so far:
RaspberryPi – setup for nerdiys!
RaspberryPi – The first configuration!
RaspberryPi – Control the RaspberryPi via SSH
NodeRed – Installing NodeRed on the RaspberryPi
Required tool:
-no-
Required material:
In the following list you will find all the parts you need to implement this article.
Log into the NodeRed configuration interface
Before you can edit your NodeRed configuration, you must - if activated - first log into the NodeRed configuration interface.
Import node code
The following describes how to import an existing node code.
Export node code
The following describes how to export an existing NodeCode.
Have fun with the project
I hope everything worked as described for you. If not or you have questions or suggestions please let me know in the comments. I will then add this to the article if necessary.
Ideas for new projects are always welcome. 🙂
PS Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you think it's cool that I share the information with you, I would be happy about a small donation to the coffee fund. 🙂