Innovation-Day: Internet of Things - Node-RED Lab. 1. Check if your Intel Edison has Node-RED installed
This lab is using the Grove Starter Kit for Intel Edison, so you may have to prepare your device first, just follow this Intel Edison installation tutorial and then install the Node-RED environment.
For using node-red with an Intel Edison board you will have to login inside the board using an SSH client like Putty or similar. Your lab trainer may have already prepared your Intel Edison device with a Node-RED server. You just need to go to your Edison IP Address and open a browser in the 1880 port like this:
- Type the
ifconfig
command inside your Intel Edison and take your wlan address. If you don't have an IP4 address, try to connect to the local WiFi again with theconfigure_edison --wifi
command. - Open a browser to your board address http://[YourBoardIPAddress]:1880
If nothing opens, and you are sure your board is connected to the WiFi, follow these steps:
- Copy the bash file you will find in the Scripts folder into the drive that appeared in your computer when connecting the Intel Edison
- Detach your Edison from your computer, so the drive is mounted in the linux FS inside the /media folder
- Run the script with the command:
sh installnodered.sh
This script downloads and installs Node-RED as a daemon inside your Intel Edison, so it will be always running for you. The script will also install some useful libraries for controlling the Grove Kit sensors and connecting your board to Azure IoT Hub.
If you need to restart or reload the service you can use the
pm2 start|stop
commands (+info).