Node-RED

From IOT4
Revision as of 10:35, 6 June 2017 by Admin (talk | contribs)
Jump to navigation Jump to search

Installing Node-RED

First install the Node.js.

When that working install the Node-RED , with command:

sudo npm install -g --unsafe-perm node-red

Running the Node-RED

If installed globally (-g) , just simply need to enter the command:

$ node-red

Welcome to Node-RED
===================

25 Feb 22:51:09 - [info] Node-RED version: v0.14.6
25 Feb 22:51:09 - [info] Node.js  version: v4.6.0
25 Feb 22:51:09 - [info] Loading palette nodes
25 Feb 22:51:10 - [warn] ------------------------------------------
25 Feb 22:51:10 - [warn] [rpi-gpio] Info : Ignoring Raspberry Pi specific node
25 Feb 22:51:10 - [warn] ------------------------------------------
25 Feb 22:51:10 - [info] Settings file  : /home/nol/.node-red/settings.js
25 Feb 22:51:10 - [info] User Directory : /home/nol/.node-red
25 Feb 22:51:10 - [info] Server now running at http://127.0.0.1:1880/
25 Feb 22:51:10 - [info] Creating new flows file : flows_noltop.json
25 Feb 22:51:10 - [info] Starting flows
25 Feb 22:51:10 - [info] Started flows

If you started a screen before the command can run it in the background.

Using the Node-RED

You can open it in a browser http://home.local:1880 if you installed the Avahi daemon, else can open on the http://device_ip:188.