AWS Device Testing
Node Red
Team Emertxe
AWS Device Testing
Node Red – What?
●
Flow based programming for Internet of Things
●
Programming tool for wiring together hardware devices,
APIs and online services in new and interesting ways
●
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
AWS Device Testing
Node Red - Features
●
Browser based flow editing
●
Built on Node.js
– Makes it event-driven, non-blocking model
– Ideal to run at the edge of the network on low-cost hardware
such as the Raspberry Pi as well as in the cloud
– With over 225,000 modules in Node's package repository, it is
easy to extend the range of palette nodes to add new
capabilities
●
Social Development
– The flows created in Node-RED are stored using JSON which
can be easily imported and exported for sharing with others
AWS Device Testing
Node Red - Installation
Press Ctrl Atl t
AWS Device Testing
Node Red - Installation
user@user:~] sudo apt install npm
user@user:~] sudo install npm
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically instal ..
0 upgraded, 74 newly installed, 1 to remove and 263 not upgraded.
Need to get 9,745 kB of archives.
After this operation, 41.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] ●
NOTE: The installation
output on screen may differ
Press Enter on different systems based
Get:1 http://in.archive.ubuntu.com/ubuntu cosmic/universe
on amd64 npminstallation
the existing all
5.8.0+ds-2 [1,185 kB]
Fetched 9,745 kB in 18s (609 kB/s)
Selecting previously unselected package npm.
Unpacking npm (5.8.0+ds-2) ...
Processing triggers for man-db (2.8.4-2) ...
Setting up npm (5.8.0+ds-2) ...
user@user:~]
AWS Device Testing
Node Red - Installation
user@user:~] sudo npm install -g --unsafe-perm node-red
/usr/local/bin/node-red-pi -> /usr/local/lib/node_modules/node-red/bin/node-
red-pi
/usr/local/bin/node-red -> /usr/local/lib/node_modules/node-red/red.js
●
NOTE: The installation
node-pre-gyp WARN Using request for node-pre-gyp https download
output on screen may differ
[bcrypt] Success: "/usr/local/lib/node_modules/node-red/node_modules/bcrypt/
on different systems based
lib/binding/bcrypt_lib.node" is installed via remote on the existing installation
+ node-red@0.20.5
added 353 packages from 347 contributors in 22.089s
user@user:~]
AWS Device Testing
Node Red - Installation
user@user:~] node-red
17 May 18:22:48 - [info]
Welcome to Node-RED
===================
17 May 18:22:48 - [info] Node-RED version: v0.20.5
17 May 18:22:48 - [info] Node.js version: v8.11.4
17 May 18:22:48 - [info] Linux 4.18.0-20-generic x64 LE
17 May 18:22:50 - [info] Loading palette nodes
17 May 18:22:51 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
Select
---------------------------------------------------------------------
and Press Ctrl Shift c
17 May 18:22:56 - [info] Starting flows
17 May 18:22:56 - [info] Started flows
17 May 18:22:56 - [info] Server now running at http://127.0.0.1:1880/
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Press Ctrl v and Enter
AWS Device Testing
Node Red
AWS Device Testing
Node Red
●
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
●
Simple drag, drop and
connect interface
●
Built on Node.js
●
Can run
●
Locally
●
On a Device
●
On Cloud
AWS Device Testing
Node Red
Drag here and release
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Drag here and release
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Drag here and release
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Double Click
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Double click Here
AWS Device Testing
Node Red
Press Ctrl c
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
Press Ctrl v
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
You may press Alt Tab to get back this terminal
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Click Here
AWS Device Testing
Node Red
AWS Device Testing
Node Red
AWS Device Testing
Node Red
Thank You