Getting Started With Watson Node RED Advanced Labs And Using The Trade Off Analytics With Node-RED

The IBM Watson Developer Cloud (WDC) offers a variety of services for developing cognitive applications. Each Watson service provides a Representational State Transfer (REST) Application Programming Interface (API) for interacting with the services.

IBM Bluemix is the cloud platform in which you deploy applications that you develop with Watson Developer Cloud services.

In this part of the project you can find the advanced labs. In these labs different services are combined to build apps to show the possibilities of Watson in Node-RED.

  • We would be use a widget with Trade off Analytics

Before trying these labs you should already be comfortable with Node-RED flows and how to import flows.

Node-RED is a visual tool for wiring the Internet of Things. It is easy to connect devices, data and api’s (services). It can also be used for other types of applications to quickly assemble flows of services. Node-RED is available as open source and has been implemented by the IBM Emerging Technology organization. Node-RED provides a browser-based flow editor that makes it easy to wire together flows using the wide range of nodes in the palette. Flows can be then deployed to the runtime in a single-click. While Node-Red is based on Node.js, JavaScript functions can be created within the editor using a rich text editor. A built-in library allows you to save useful functions, templates or flows for re-use.

Node-RED is included in the Node-RED starter application in Bluemix (Bluemix is IBM’s Platform as a Service, free of charge) but you can also deploy it as a stand alone Node.js application. Node-RED can not only be used for IoT applications, but it is a generic event-processing engine. For example you can use it to listen to events from http, websockets, tcp, Twitter and more and store this data in databases without having to program much if at all. You can also use it for example to implement simple REST APIs.

Getting Started

There are two ways of using Node-RED

  • Node-RED stand alone
  • Node-RED on Bluemix (Bluemix is IBM’s Platform as a Service) Both ways are described in this article, but to save time for these labs it is recommended to use Node-RED on Bluemix.

Using The Trade Off  Analytics With Node-Red

The Trade-Off Analytics service comes with a very versatile user interface widget which can be used to display the trade-off analytics results and let the user interact with them.

To use the service follow the steps:

  • Sign Up for an IBM Bluemix Account https://console.au-syd.bluemix.net/registration
  • Create Appn
  • Then Choose Your App Template, Will be Creating An Web Application So I Select Web1
  • Then Choose Your Starting Point, for this I Am Choosing Browse Boilerplate3
  • You Can Select Any Of The Boilerplates, I Would Be Using Node-Red-Starter Application. This Application Demonstrates how To Run The Node-RedOpen –Source Project Within IBM Bluemix4
  • Create An App By Providing The Name5
  • After the App Is Created Go Back To The Dashbord.6
  • Then Add A Service Or API14
  • Add The Trade Off Analytics Service15
  • Create The Service19
  • After Your App Is Running Click On The App20
  • Click on Go To Your Node-Red Flow Editor7
  • Trade Off Analytics Widget Flow Constructio21

 

Deploy the flow and point your browser at

  •  http://manishai.mybluemix.net/tofaw. Rendering of the widget should start and eventually yield a screen such as23ConclusionHere we have used a Different service in Watson which is called as Tradeoff analytics and helps us in this scenario to do analysis of different phones such as Samsung , HTC, Nokia , Sony based on their Size ,Weight and Screen and this service is added in Node Red service with Bluemix.

    In this model we have seen how easy it is add different service with       Node RED and add other services for Watson to see how easily we create different use case scenarios for different products and situations.

    This is my second article and as my journey continues I would learn and share more.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s