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.}}
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 detailsabout this configuration, please refer to [[MISC-TN-004:_Running_Debian_(armbian)_on_SBCSPG|this TN]].
==Installing Node-RED==
Installing Node-RED is quite straightforward. 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