Written by Miloslav Bien, Tuesday 22 November 2022
Two magic words connected with the IoT world? Yes, Node-RED. We have been enabling our customers to work with this software (in Advantech routers) already for some time now.
The purpose of this post is not to explain how the Node-RED works, but rather to explain the installation options in our routers. If you decide to use Node-RED, you have two installation options.
The first option is to install individual Node-RED nodes as "Router-Apps". Details on how to install are possible to find in our comprehensive Application Note.
The second option is to use the Docker container solution and install Node-RED using the standard Docker "image" way. In this case, we are not responsible for the correct operation of Node-RED as a router hardware and software producer - Docker image is publicly available written by community authors, and ready for download on the Internet for free use.
Both solutions lead to the same goal – running Node-RED on our routers, but they differ in details that may be important for application operation. The first option gives you stability assurance as we work with the Node-RED as a „closed application“ and test Router App nodes with this “locked” Node-RED edition. In exchange, you need to accept that our „locked“ Node-RED edition is not up to date and running behind the Node-RED community releases. You may avoid this if you feel it is important for you by using installation option two for selected router models – Node-RED as a Docker image gives you a chance to work with the newest Node-RED community releases and nodes available on the Internet. Further differences between those 2 installation options would be well noticed from the table below.
Node-Red via RouterApps | Node-Red via Docker | |
Hardware compatibility: | ||
SmartStart SL305 | Yes | Yes, Node-Red:minimal* |
SmartFlex, SmartMotion | Yes | No |
ICR-3200 | Yes | Yes, Node-Red:minimal* |
ICR-4400 | Yes | Yes, Node-Red:latest** |
Nodes | ||
Set of nodes adapted for and tested with Advantech routers | Yes | No |
Router specific nodes | Yes | No |
Latest versions of Node-Red (update from the Internet) | No | Yes |
Resources | ||
Size consumed in the filesystem | Low | High |
Security | ||
Sandboxed | No | Yes |
Preconfigured HTTPS with router certificates | Yes | No |
Installation | ||
Installing as a single file | No | Yes |
npm installation support (JS only or pre-compiled bins for ARM v7) | Yes, without Advantech support | Yes |
Advantech support | Yes | No |
Pull an image or a repository from a registry:
* docker pull nodered/node-red:2.2.3-12-minimal (actual version)
** docker pull nodered/node-red:latest