How to create a basic Dashboard in Node-RED

by Nov 20, 2020Node-Red

You can create a basic Dashboard in Node-RED by following the steps given here. Firstly, the Dashboard is not built-in so you first need to install the Dashboard.

Installing Dashboard and Initializing Node-RED

Assuming you have already installed Node.js and Node-RED follow the steps given below. If you have now installed the Node-RED or need to understand basic concepts on Node-RED click here.

  • Find and open the .node-red folder as shown below
folder location of .node-red
  • Type cmd in the address bar and press enter. This will open the command prompt
Type cmd in the address bar
  • Type the command given below and it will start installing the dashboard
npm install node-red-dashboard
  • After successful installation you can see a folder named node-red-dashboard created in node_modules folder
node-red-dashboard folder present in node_modules

Now as you have installed the dashboard we will start node-red using command prompt by typing the following command

node-red

Then copy the http link generated in command prompt in the browser to open Node-RED

command prompt displaying http link
Node-RED in browser

Node-red consists of node palette at the left which consists of all the nodes, workspace in the centre where we define our model by connecting various nodes and output panel at the right.

Here in the node palette, you can now see the dashboard section on the left side. So this dashboard consists of various node like button, dropdown, switch, etc. You can also create your own dashboard widget node for more information click here.

Creating a Node-RED dashboard

  • Firstly we select a node switch from the node palette and place it in the workspace. Here you can see 2 symbols i.e. a triangle and circle. The triangle symbol indicates it needs to be configured and the circle symbol indicates it needs to be saved and deployed.
Node with symbols (triangle, circle)
  • Double click on the switch node to open its properties
Switch Node Properties

Here you need to define the Group, initially, there is no group defined so we create one by clicking on the pen icon given besides the dropdown of Group attribute. This will open properties for adding new dashboard group as shown below

Add new dashboard group config node properties

Here we need to select or create a Tab in which the group will be placed. So First we Create a Tab (UI_tab), in the tab we add or create groups (UI_group) and then we assign the node to groups. Initially, no tab is present so first, we create a tab by clicking on the pen icon beside the dropdown of Tab attribute. This will open the properties for adding new dashboard tab as shown below.

Add new dashboard tab config node properties

Here we define a name to the tab in my case I named it Home and then click on add. This will create a tab named Home and you will be redirected back to add new dashboard group config, and you can now select tab named ‘Home’ (in my case) from the dropdown as shown below

Home Tab added in Tab Attribute dropdown

Now give a name to the group in my case I name it ‘Control’ and Select ‘Home’ Tab and click on add.

Selecting the Home tab and adding Name in the Name attribute in group properties
  • So now you can see the group name as [Home] Control ( i.e. [Tab] Group name) as shown below. You can alter the name in Label attribute this will change the name of node in workspace. Once completed click on Done, Now you could see the triangle has disappeared.
Selecting a group
  • Next Click on Deploy which is present at the right side of the window. You will get a message saying ‘Successfully Deployed’. After that open a new tab enter the link obtained from command prompt and append /ui at the end of the url as shown below:
http://127.0.0.1:1880/ui
  • Now you can see a dashboard on the screen.
Dashboard UI

So here at the top left is the name of the Tab, and inside the tab we have created a group named Control which consist of switch node. You can create multiple groups in the present tab. In addition you can also create multiple tabs which can be selected to view in UI by clicking on the hamburger sign at the left (it appears when there are more than one tab) as shown below.

Multiple Tabs, Dashboard UI

This way you can create multiple Tabs and multiple groups with nodes in Tab in Node-RED Dashboard.

Creating a multiplication Skill in Alexa using python

Written By Monisha Macharla

Hi, I'm Monisha. I am a tech blogger and a hobbyist. I am eager to learn and explore tech related stuff! also, I wanted to deliver you the same as much as the simpler way with more informative content. I generally appreciate learning by doing, rather than only learning. Thank you for reading my blog! Happy learning!

RELATED POSTS

How to export and import flows-node-red

How to export and import flows-node-red

Flows are imported and exported from the editor using their JSON format. So,Node-red makes it easy to share flows with others. Exporting flows Step 1: Click on the node that you want to export and press CTRL, the node will be highlighted. Step 2: Go the top right side...

Installing and starting Node-red

Installing and starting Node-red

Node-red is a programming tool for wiring together hardware devices, APIs, and online services in new and interesting ways. Install Node-red  Open the official page for Node.js downloads and download Node-red for Windows by clicking the "Windows Installer" option...

How to create flow in Node-RED Admin Basics

How to create flow in Node-RED Admin Basics

You can easily create a flow in Node-RED by simply following the steps given below but before diving into How to create Flow in Node-RED we will first understand about Node and flow in Node-RED. For installation and tutorial of Node-RED click here. What is a Node? A...

Node-RED Tutorial

Node-RED Tutorial

Introduction One of the most important factors that limit the development of the IoT(Internet of Things) applications is the lack of comfortable means to develop rules for IoT devices interacting with each other. IBM developed an Open-Source tool called Node-RED to...

What is Node-RED?

What is Node-RED?

In this article, we will learn about Node-RED and its importance to the Internet of Things. It was developed in the year of 2013 by IBM Emerging Technology- Nick O'Leary and Dave Conway-Jones. The Node-RED is a visual tool that provides a web-based flow editor that...

VIDEOS – FOLLOW US ON YOUTUBE

EXPLORE OUR IOT PROJECTS

IoT Smart Gardening System – ESP8266, MQTT, Adafruit IO

Gardening is always a very calming pastime. However, our gardens' plants may not always receive the care they require due to our active lifestyles. What if we could remotely keep an eye on their health and provide them with the attention they require? In this article,...

How to Simulate IoT projects using Cisco Packet Tracer

In this tutorial, let's learn how to simulate the IoT project using the Cisco packet tracer. As an example, we shall build a simple Home Automation project to control and monitor devices. Introduction Firstly, let's quickly look at the overview of the software. Packet...

All you need to know about integrating NodeMCU with Ubidots over MQTT

In this tutorial, let's discuss Integrating NodeMCU and Ubidots IoT platform. As an illustration, we shall interface the DHT11 sensor to monitor temperature and Humidity. Additionally, an led bulb is controlled using the dashboard. Besides, the implementation will be...

All you need to know about integrating NodeMCU with Ubidots over Https

In this tutorial, let's discuss Integrating NodeMCU and Ubidots IoT platform. As an illustration, we shall interface the DHT11 sensor to monitor temperature and Humidity. Additionally, an led bulb is controlled using the dashboard. Besides, the implementation will be...

How to design a Wireless Blind Stick using nRF24L01 Module?

Introduction Let's learn to design a low-cost wireless blind stick using the nRF24L01 transceiver module. So the complete project is divided into the transmitter part and receiver part. Thus, the Transmitter part consists of an Arduino Nano microcontroller, ultrasonic...

Sending Temperature data to ThingSpeak Cloud and Visualize

In this article, we are going to learn “How to send temperature data to ThingSpeak Cloud?”. We can then visualize the temperature data uploaded to ThingSpeak Cloud anywhere in the world. But "What is ThingSpeak?” ThingSpeak is an open-source IoT platform that allows...

Amaze your friend with latest tricks of Raspberry Pi and Firebase

Introduction to our Raspberry Pi and Firebase trick Let me introduce you to the latest trick of Raspberry Pi and Firebase we'll be using to fool them. It begins with a small circuit to connect a temperature sensor and an Infrared sensor with Raspberry Pi. The circuit...

How to implement Machine Learning on IoT based Data?

Introduction The industrial scope for the convergence of the Internet of Things(IoT) and Machine learning(ML) is wide and informative. IoT renders an enormous amount of data from various sensors. On the other hand, ML opens up insight hidden in the acquired data....

Smart Display Board based on IoT and Google Firebase

Introduction In this tutorial, we are going to build a Smart Display Board based on IoT and Google Firebase by using NodeMCU8266 (or you can even use NodeMCU32) and LCD. Generally, in shops, hotels, offices, railway stations, notice/ display boards are used. They are...

Smart Gardening System – GO GREEN Project

Automation of farm activities can transform agricultural domain from being manual into a dynamic field to yield higher production with less human intervention. The project Green is developed to manage farms using modern information and communication technologies....