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 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.
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 App
- Then Choose Your App Template, Will be Creating An Web Application So I Select Web
- Then Choose Your Starting Point, for this I Am Choosing Browse Boilerplate
- 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 Bluemix
- Create An App By Providing The Name
- After the App Is Created Go Back To The Dashbord.
- Then Add A Service Or API
- Add The Trade Off Analytics Service
- Create The Service
- After Your App Is Running Click On The App
- Click on Go To Your Node-Red Flow Editor
- Trade Off Analytics Widget Flow Constructio
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 asConclusionHere 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.