Node-RED Q & A

Node-RED Questions and Answers. Node-RED is a flow-based (visual) programming tool. These pages have some information that may be currently missing from the documentation or may expand on it.

See the Node-RED website for more details about it. There are also sites for custom nodes and example flows, documentation, a blog and a discussion forum. There is also a Slack group. You can also find some questions and answers on StackOverflow.


📖 Kb | 📎 Development | 🔖 node-red, node.js, javascript

Creating a notification in the Admin UI

Node-RED’s admin UI has a built-in notification (toast) pop-up message feature. This article explains how to use it when creating custom nodes as it isn’t currently well documented.


📖 Kb | 📎 Development | 🔖 node-red, npm, node.js, javascript, debugging

Cleaning up npm package install problems

Node-RED uses npm to manage package installations such as its nodes. Sometimes, you can get into a situation where you start getting lots of npm installation or removal issues and it feels like you are going round in circles trying to fix things. If so, time to call it a day and to get drastic! Here, I try to explain an easy way to fix things quickly and completely without side effects.


📖 Kb | 📎 Development | 🔖 node-red

A more comfortable way to edit the code for creating custom nodes

Node-RED allows us to create custom nodes to extend the features. While this is a great feature, actually writing the code can be tricky. In part because the code for the admin configuration panel is contained in an html file containing 3 script entries that are Node-RED specific. This post shows you a relatively easy way to split that into 3 files and combine them with a build step using an npm cross-platform script.

🕑
📖 Kb | 📎 Development | 🔖 node-red

Using JSONata to transform msg data

JSONata is a syntax designed by IBM to help reformat and restructure JSON data in a similar vein to the way that XLST is used to transform XML data.


📖 Kb | 📎 Development, it-security | 🔖 node-red, security

How to create secure certificates

Generate certificates for Node-RED that are trusted by all modern browsers. This will let you access Node-RED (and other services) over an encrypted HTTPS link.


📖 Kb | 📎 Development, it-security | 🔖 node-red, security

How to secure Node-RED

Node-RED is increasingly used in situations that require reasonable security. Up to now, however, the information required to secure it correctly has been fragmented. This article aims to give an end-to-end outline to enable anyone to secure their installation.


📖 Kb | 📎 Development, IoT | 🔖 node-red, iot, heating, home automation

Drayton Wiser heating control

Drayton are a very widely used manufacturer of heating controls. They make the “Wiser” control system which is low cost and easily fitted. This article shows you how to use Node-RED to query and control the system.


📖 Kb | 📎 Development | 🔖 node-red

Easily search for contributed nodes on the Node-RED Flows site

Excellent work has been done to make sure that new nodes are discoverable. Here is a quick way to easily search from your browser.


📖 Kb | 📎 Development | 🔖 node-red

How to create a clone of a message object

Node-RED tried to pass messages by reference not copy. Sometimes though, a copy is needed.


📖 Kb | 📎 Development | 🔖 node-red

How node.send() works

Some detail not included in the documentation.

🕑
📖 Kb | 📎 Development | 🔖 node-red

How to extract a table from HTML

While Node-RED has some nodes for extracting data from HTML, the nodes are rather simplistic. Here is a quick way to extract the data from an HTML table element.


📖 Kb | 📎 Development | 🔖 node-red

Installation and running permissions

People seem to get very confused about file permissions when installing Node-RED and associated nodes. This article tries to set things straight.


📖 Kb | 📎 Development | 🔖 node-red

Secure Home Automation Controls via a Telegram Bot

Shows how to create a secure set of home automation controls without exposing Node-RED to the Internet. It uses a Telegram bot with a number of pre-defined commands.


📖 Kb | 📎 Development | 🔖 node-red

Understanding the Node-RED Runtime API

Node-RED exposes an extensive API at runtime. While most of this is not available within your flows, much of it is available to custom nodes. Unfortunately, documentation for the API lags behind development. This page documents some of the key things I’ve learned about the API, what it does and how it works.


📖 Kb | 📎 Development | 🔖 node-red

Node-RED Dashboard Template Examples (AngularJS)

Some examples of using AngularJS with the Node-RED Dashboard. Not all features of Angular are accessible via the Dashboard.