Open Source For You — December 2017

(Steven Felgate) #1

Developers How To


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

The following behavioural aspects of car drivers can be
monitored remotely:
ƒ Speed
ƒ Braking attitude
ƒ Sharp use of brakes
ƒ Smooth or harsh accelerations
ƒ Sharp turns
ƒ Frequent U-turns
You will first need to visit the IoT Context Mapping
Service in the IBM Bluemix console.
The following credentials and authentication fields will be
displayed after creating the service:
ƒ Tenant ID
ƒ User name
ƒ Password
It should be noted that we have to select the free plan in
every panel to avoid the charges of cloud services provided by
IBM Bluemix.
After getting the tenant information and authentication
tokens, the next step is to create remote devices with
information about their unique identities. Every sensor
based device has a unique ID, which is set in the IBM
Watson IoT platform so that live monitoring from remote
places can be done. The Watson platform provides options
to enter different devices with the help of ‘vehicles’ and
gateways. By using this approach, real-time signals are
transmitted to satellites and then to the end user for taking
further action and decisions.

Figure 5: Editing Node-RED editor


Figure 9: Credentials and tenant information

Figure 10: Creating remote devices with the related information

By: Dr Gaurav Kumar
The author is the MD of Magma Research and Consultancy Pvt
Ltd, Ambala. He is associated with various academic and research
institutes, where he delivers lectures and conducts technical
workshops on the latest technologies and tools. He can be
contacted at [email protected].

Figure 6: Message display panel

Figure 7: Creating a context mapping app for driver behaviour analysis


Figure 8: Selecting the driver behaviour service in IoT

After setting all the parameters with respect to devices
and gateways, click on Deploy and wait for the ‘successfully
deployed’ notification.

Twilio for live messaging
If there is a need for live messaging to a mobile phone,
Twilio can be used. Using the Twilio APIs, messages can be
delivered to smartphones and other points. Twilio provides
APIs and authentication tokens, which can also be mapped
in IBM Bluemix for live monitoring of weather or other IoT
based applications.
Free download pdf