The reason I purchased my Raspberry Pi was to connect things together and controlling them for instance from my Android phone. I tried PHP, Apache server and stuff… which worked, but it was pretty complex for an electronics guy like me.
Finally I found node RED – the most simple to make a dashboard to control the IO’s on your Raspberry Pi from any device with an internet browser! In this video I will show how to set up node red on your Pi and make your first program controlling an LED from a browser on any device.
Terminal commands to set-up node red on your raspberry Pi:
! Make sure your raspberry Pi is connected to the internet.
! It may take quite some time finish the commands.
sudo apt-get update
sudo apt-get upgrade
sudo reboot (or reboot via the menu)
sudo apt-get install npm
To check if npm is installed type (in a terminal window):
npm –h (It should provide some information about NPM)
Terminal commands to control Node-Red:
(You can find this in the start screen of node-red on your Raspberry Pi)
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
Information about Node-Red: https://nodered.org/