IBM Bluemix with Node-RED IoT

IBM Bluemix with Node-RED IoT


Bluemix, the latest cloud offering from IBM, is offered as Platform as a Service (PaaS) and is based on cloud foundry open technology. It is one of the best programming environment for Internet of Things (IoT) applications using Node-RED. Several nodes in IBM Bluemix makes the programming much simpler.

Bluemix helps companies to drive pervasive transformation and provides enterprise-level services to easily integrate with your cloud applications. It enables organizations and developers to quickly and easily create, deploy, and manage the applications on cloud.

In this blog, let us discuss about creating simple IoT applications on Bluemix with Node-RED.


Use Case

IoT works with cloud and connects everything around you with Internet by using networks of data gathering sensors. You can use a temperature sensor to collect the data and send it to the centralized system, where centralized system IoT application runs in Bluemix. You can also use a web simulator as a temperature sensor.

In this use case, the web simulator is used as the temperature sensor to test the IoT application on Bluemix.

Creating IoT Application on Bluemix

To create an IoT application on Bluemix, perform the following:


  • On the top right corner of the page, click Catalog to navigate to catalog page.
  • Search “Internet of Things”.
  • Select Boilerplates category and choose Internet of Things Platform Starter as shown in the below diagram:


You will be redirected to the Internet of Things Platform Starter page.

  • In the Internet of Things Platform Starter page, provide valid IoT application name.
  • Select the plan and SDK platforms as shown in the below diagram:
    For example, App name is given as “Treselle-IoT” and Node.Js is selected as “SDK platform”.


  • Click Create button.

Note: You need to wait for few seconds to start and access the application. On successfully starting the application, notification presence will be represented in green color as shown in the below diagram:


Creating Bluemix IoT Application with Node-RED

To create Bluemix IoT Application with Node-RED, perform the following steps:

  • Once your application starts running, click “Visit App URL” on the top of the page or click Route link if you are on the dashboard to start the Node-RED flow process.
  • Click Next to move on to the next screen.
  • Apply secure Node-RED authentication as shown in the below screen (2) diagram:


  • Click Finish.
    You will be redirected to Node-RED on IBM Bluemix get start page as shown in the below screen (1) diagram:


  • Click “Go to your Node-RED flow editor” in the screen (1) to go to the login page (as shown in screen (2)) for accessing Node-RED editor.
  • Provide valid user name and password to log in to Node-RED.
    You will be rendered with the Node-RED flow editor page with sample IBM IoT application flow model as shown in the below diagram:


Note: Click all nodes, check preset details, and understand the usage of the nodes and its flows.

Launching Simulator on Bluemix

To launch a simulator on Bluemix, perform the following steps:


Bluemix simulator will provide unique simulator ID on every browser hit. The sensor will generate temperature and humidity data and will communicate with Node-RED flow to generate the data and dashboard charts.

  • Copy your simulator unique ID and paste it into Node-RED flow ibmiot node as shown in the below diagram:


  • Click Simulator button like real time temperature hardware to run the Node-RED flow and to increase or decrease the temperature.
    You can view the debug area and output data results based on simulator sensor value changes as shown in the below diagram:


Note: To create charts based on your simulator sensor data, drag the chart node from the node palate and drop it into the workspace.


In this blog, we discussed about IoT application creation with IBM Bluemix and demonstrated Node-RED IBM IoT app flow with simulator. In upcoming blog posts, we will discuss some complex use cases with real-time data stream output. To visualize data using Node-RED, refer our blog on Visualizing Real Time Stream Data using Node-RED.


4852 Views 3 Views Today