Introduction: Install Node-RED on Intel Edison
I've recently learnt how to run Node-red on Intel Edison following attending one of the Intel Edison workshop hosted by the folks at IBM Bluemix (Twitter: #BluemixIoTWorkshop hosted by @IICHursley).
This Instructable aims to capture some of the main steps to get Node-red installed on the Intel Edison device - so that going forward whenever you power up your Edison kit, Node-red is run automatically - and you are able to access Node-red via a URL like this:
(Replace edison-device-name with your edison name)
- Have gone through the basic Intel Edison Get Started Steps. In particular:
- Knowledge of connecting to Intel Edison via a serial USB and be able to login as root.
- Intel Edison board is already flashed.
- Intel Edison has been connected to internet via Wifi.
Step 1: Install Node-red and Pm2
Issues the following commands to install node-red and pm2.
npm install -g --unsafe-perm node-red
npm install -g --unsafe-perm pm2
Step 2: Start Node-RED
Step 3: Install Node-red-node-intel-gpio
You'd need the Node-RED node called intel-gpio to enable Node-RED to talk with your Arduino pins.
Run this command to install node-red-node-intel-gpio
npm install node-red-node-intel-gpio
Step 4: Restart Node-RED
To see the new nodes in the flow editor pallet you need to restart Node-Red
pm2 restart node-red
Wait a few seconds then refresh your browser and you will now see additional nodes. There is now a set of nodes to access GPIO on the Edison board.
Step 5: Make Node-RED to Auto Start on Intel Edison
o get the Node-RED to autostart with the Edison board issue the following commands
pm2 save pm2 startup
Now, whenever the Intel Edison is powered up, Node-RED should just get started automatically.