Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
{{InfoBoxTop}}
{{AppliesToSBCSPG}}
{{AppliesTo SBC Lynx TN}}
{{AppliesToIoT}}
{{AppliesTo IoT TN}}
{{InfoBoxBottom}}
{{WarningMessage|text=This technical note was validated against specific versions of hardware and software. It may not work with other versions.}}
==Introduction==
In a typical Industrial IoT (IIoT) scenario, the edge devices like the [[MISC-TN-004:_Running_Debian_(armbian)_on_SBCSPG#The_hardware_platform|SBCSBP gateway]] are installed and used by personnel who have limited or no programming skills at all. Nevertheless, these operators are required to implement simple automation processes with edge devices. To address this situation, no-code visual development tools can be used. [https://nodered.org/ Node-RED] is an example of such tools.
 
According to the official home page of the project, it is defined as:
 
 
''... a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways. It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single-click.''
 
 
This Technical Note (TN) shows how Node-RED can be installed and used on the SBCSBP gateway.
 
The procedure was tested on a SBCSPG gateway running ''armbian'' GNU/Linux distribution. For more details about this configuration, please refer to [[MISC-TN-004:_Running_Debian_(armbian)_on_SBCSPG|this TN]].
==Installing Node-RED==
Installing Node-RED is quite strightforwardstraightforward. Essentially, you need to follow the procedure described [[https://nodered.org/docs/getting-started/raspberrypi here]].
First, make sure that the <code>build-essential</code> package is installed:
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
</pre>
 
Started Mon Oct 14 10:56:44 CEST 2019 - Finished Mon Oct 14 11:15:09 CEST 2019
</pre>
 
*logging in the local debugger window a message containing the timestamp associated with the timer
*saving the timestamp on a local file
*sending a message on to a remote MQTT server.
The test flow looks like this:
[[File:SBCSPG-Node-RED-1.png|thumb|center|600px|captionTest flow diagram]]
</pre>
and receive the test messages from the remote broker, by subrisbing subscribing to the test topic:<preclass="board-terminal">
armbian@sbcspg:~$ mosquitto_sub -h test.mosquitto.org -t "dave-am-test/#" -v
dave-am-test 1571146144165
...
</pre>
 
== Video ==
Watch our dedicated video were is possible to see this demo in action:
{{#ev:youtube|mTkk8YTldpM|600|center|Using Node-RED on SBCSPG to develop zero code applications|frame}}
dave_user, Administrators
5,190
edits