SOFTWARE
2023-12-19 1036 View

A Step-by-Step Guide

Node-RED is a powerful flow-based development tool for visual programming that is widely used for Internet of Things (IoT) applications. For detailed information, refer to the companion articles.

If you're using the KIWI310 platform and want to harness the capabilities of Node-RED, follow the steps below for a seamless installation process.

Prerequisites


Before installing Node-RED on your KIWI310 device, ensure that you have the necessary prerequisites in place:

  1. A KIWI310 device running a Linux-based operating system.
  2. Internet connectivity to download and install software packages.
  3. Basic knowledge of the Linux command line.

Installation Steps


  • Please first update the system packages by opening a terminal using the following commands:

sudo apt-get update

sudo apt-get install build-essential libssl-dev curl

  • Accept the prompt to continue

reboot

  • Install NVM (Node Version Manager), which allows you to manage multiple Node.js versions on your system quickly. Run the following commands to install NVM:

curl https://raw.githubusercontent.com/creationix/nvm/v0.39.5/install.sh | bash

source .bashrc

nvm --version

  • With NVM installed, you can now install a specific version of Node.js. In this case, we'll install version 18.17.0:

nvm install 18.17.0
nvm use 18.17.0
node -v

  • Now that Node.js is set up install Node-RED using the following command:

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

  • Grant user permission to allow access to the ttyACM0 device; you'll need to add your user to the dialout group:

sudo adduser $USER dialout

npm i node-red-contrib-kiwi310

  • With Node-RED and the package for KIWI310 successfully installed, you can launch it by typing the following command in the terminal:

node-red

  • Open your web browser and navigate to http://localhost:1880 to access the Node-RED flow editor.

Congratulations! You've now installed Node-RED on your KIWI310 device, and you're ready to start building IoT applications using its intuitive visual programming interface. Explore the Node-RED documentation for more information on creating flows and integrating various nodes to enhance your IoT projects.

About KIWIboard


KIWIboard is a complete solution provider, supporting all aspects of your project, from hardware to software to system integration, to keep your application running securely, reliably, and at peak performance. KIWIboard builds its products for high reliability, performance, security, scalability, and versatility. So, customers can expect a long lifespan, quickly adapt to evolving system requirements, and adopt future technologies as they emerge.

Next steps


Ready to talk about your projects with a KIWIboard expert? Contact us

Want to hear more from KIWIboard?  for our newsletterSign up

Or request a quotation