Open Source For You — December 2017

(Steven Felgate) #1
How To Developers

http://www.OpenSourceForU.com | OPEN SOURCE FOR YOU | DECEMBER 2017 | 71

IBM Cloudant is a cloud based database product of the
non-relational distributed variety.
Using the Node-RED editor, the overall flow of the process
can be programmed and visualised for any type of service and
process. Node-RED is a flow based integrated development
tool created by IBM so that objects and their connections can
be set up without complex programming. Once the connections
are created with the IoT app and weather service, the different
channels including input, weather services, and transformation
of temperature format can be set in Node-RED. After the
successful deployment and launch of the service, the output
will be visible in the user panel. The conditions related to
different categories of weather (cloudy, sunny, rainy, humid,
etc) can be specified using the Node-RED editor.

Creating an app for vehicles and to
remotely monitor drivers
By using another IoT application, the multi-dimensional
behaviour of vehicle drivers can be analysed remotely using
IBM Bluemix on the Watson IoT platform.

The remote analytics of the weather, including temperature,
humidity and other parameters can be received by travellers,
and they can take the appropriate precautions.
First, a new IBM ID needs to be created on https://
console.bluemix.net/. IBM Bluemix provides users a
30-day trial, without need for credit card authentication.
Most other cloud services ask for international credit
card authentication. Users of IBM Bluemix, on the other
hand, can create, program and use the services with just
a unique e-mail ID.
After creating an account and logging in to the
Bluemix panel, there are many cloud based services
which can be programmed for real-time use. IBM
Bluemix is a hybrid cloud that delivers many types of
cloud applications including infrastructure, containers,
VMWare, network management, storage, the Internet of
Things, data analytics, high performance computation,
mobile applications and Web apps.
To create a weather notification app, just search
the IBM Bluemix catalogue for the Boilerplates based
Internet of Things.
The name of the new cloud app can be mentioned. The
other values and parameters can be set as default, as we are
working on a free trial account. Once the Cloud Foundry is
created, the next step is to connect this app with the Weather
Services in IBM Bluemix. Search for Weather Company
Data and IBM Bluemix will display the appropriate option.
Using Weather Company Data, live temperature and
weather parameters can be fetched effectively.
The newly created app will be visible in the
dashboard of IBM Bluemix and, automatically, a
Cloudant database will be created here. This database
will be used to store and process the data in JSON format.

Figure 1: Login panel for IBM Bluemix


Figure 2: Creating an IoT app in IBM Bluemix

Figure 3: Selecting Weather Services in IBM Bluemix

Figure 4: Dashboard of IBM Bluemix with the weather notification app
Free download pdf