Storing IOT Data in a SQLite Database-Node-RED

IOT data from sensors and other devices usually comes as either a text string usually with key value pairs or more commonly as JSON encoded data. Databases accept a variety of data formats the most common are INT and TEXT. Click to rate this post! [Total: 3 Average: 5]

Continue reading

Beginners Guide to the Node-Red Settings.js File

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. Click to rate this post! [Total: 2 Average: 5]

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. Click to rate this post! [Total: 0 Average: 0]

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. Click to rate this post! [Total: 2 Average: 4.5]

Continue reading

Understanding and Using Buffers In Node-Red

When data is read from a file or network it is read byte by byte into a data buffer. Data Buffers are temporary storage used for transferring data. To work with binary data we will need access to these buffers. Click to rate this post! [Total: 3 Average: 5]

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 Click to rate this post! [Total: 2 Average: 4]

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. Click to rate this post! [Total: 1 Average: 5]

Continue reading

Node-Red HTTP Request Node for Beginners

In node-red there are three core http nodes. http-in -Used to configure a web server http response – used with http-in to send responses. http request – used for making http requests i.e an http client. The http request node can be used for. Retrieving web pages from a website Making API Requests Sending and receiving JSON data to a website or API. etc The node will send a request and receive the response. The request node handles both the request and the  response. Note: if you are not familiar with the http protocol then I suggest you read the http basics tutorial. Click to rate this post! [Total: 3 Average: 5]

Continue reading

MQTT Data Logger -Node-Red

The node-red data logger lets you log incoming data into a text file. It can be used for logging MQTT sensor and device data to log files either as a single file containing multiple topics or multiple files based on topic. It is controlled using a node-red dashboard as shown below. Click to rate this post! [Total: 2 Average: 5]

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. Click to rate this post! [Total: 6 Average: 4.3]

Continue reading