Node-Red Flows – Storage and Backup

Flows that you create are stored by default in a file in the .node-red directory of your home folder in a file called flows_servername.json. The file is created when you run node-red for the first time, and is loaded each time that you run node-red.

Continue reading

Node-Red Settings.js File – Node-Red Admin

Node red uses a settings file called settings.js located in in the user .node-red (dot node-red) folder in their home directory. You can create your own settings file and customise it either by copying the existing file or using the file available from Github here. On Linux the settings.js file is copied from the /usr/lib/node-modules/node-red/ folder to your .node-red folder in your home directory when you start node-red, and there is no settings.js file present.

Continue reading

Using The Node-Red Library

If you want to save a flow or function and reuse it later in another flow on the same computer then you can save it to the local library. To save a flow to the library highlight all nodes in the flow by using CTRL+A then use the main menu (top right) and select Export>Library.

Continue reading

Deploying Node-Red Flows

When you come to deploying a flow you have four (node-red v0.2)options as shown below: Although the choices appear obvious the effect of the options isn’t and can cause some confusion.

Continue reading

Working with JSON Data And JavaScript Objects in Node-Red

JSON is popular format for encoding data sent over the Internet, and also stored in files. In computing, JavaScript Object Notation (JSON) is an open-standard file format that uses human-readable text to transmit data objects consisting of attribute–value pairs and array data types (or any other serializable value). –wiki

Continue reading

Using the Node Red Status Node

In Node red any node can report status information in the visual editor. The screen shot below shows the mqtt node. It shows a green circle to indicate that it is connected and the text connected underneath the node.

Continue reading

Node-Red HTTP Request Node for Beginners

The node-red http request node is a core node and can be used for making http requests. It can be used for. Retrieving web pages from a website Making API Request Sending and receiving JSON data to a website or API. etc

Continue reading

Using the Node-Red Function Node- Beginners Guide

The function node is used to run JavaScript code against the msg object. The function node accepts a msg object as input and can return 0 or more message objects as output. This message object must have a payload property (msg.payload), and usually has other properties depending on the proceeding nodes.

Continue reading