IoT Device Events to Streaming Analytics in 15 Minutes with Bluemix

Share this post:

When IBM STSM Dan Debrunner covers the screen of his Android phone with his hand, the camera LED becomes a flashlight—and it dims when he uncovers it. This action is possible thanks to two Bluemix services: Watson IoT Platform and Streaming Analytics.

Debrunner created a system where an IoT device sends events into the cloud, changing its behavior based on the results of a data analytics job running against the events. To get there, Debrunner uses an open source Java micro-kernel by Apache Edgent. It’s associated with a mobile app running on the Android that reads the value of the phone’s light sensor.

Seeing the light – how it works

If the light sensor’s value drops below a certain threshold, Apache Edgent sends an event via MQTT/SSL to an instance of the Watson IoT Platform service. (Watson IoT Platform recognizes the Android and accepts messages when set up as a specific device within its defined types.) Watson IoT Platform publishes events from the Android for its subscribers—one of which is Streaming Analytics.

When it receives the Android events, Streaming Analytics sends a command to the Watson IoT Platform with the identifier ‘light’.  Apache Edgent on the Android subscribes to commands with the ‘light’ identifier from the Watson IoT Platform via Streaming Analytics. This command uses the Android camera’s API to turn on the LED.

Debrunner intends the joke: his is part of the ‘lightning talk’ series at the World of Watson conference.

While this demo gets you started, it only skims the surface of the powerful Apache Edgent and Streaming Analytics pairing. Edgent shines with thousands of devices at the edge of a network, balancing what it sends to MQTT with local feedback on the device itself. Edgent reduces costs related to the volume of data transmission and maintains local safeguards if emergencies occur on edge devices when network feedback is blocked. Streaming Analytics processes many data sources with complex analytic requirements for generating results, insights, and actions.

Jerry Ruggieri

Good. I have a similar task. How may I obtain the project files?

Comments are closed.

More Watson stories

Meet the IBM Cloud Garage Method experts at Think 2018

Last week I highlighted dozens of sessions from the IBM Cloud Garage consultancy of cloud architects and solution engineers that you’ll want to remember when planning your agenda. In this blog post, I introduce four of my colleages from our team on the IBM Cloud Garage Method. They will be on the staff supporting the Think 2018 conference as presenters, lab leaders, and “Ask Me Anything” experts. Look for them and ask them about the updated Garage Method Field Guide and two new Guides!

Continue reading

Join us in the IBM Cloud Garage at Think 2018

Think 2018 will feature all of IBM’s essential technologies in one place, including Cloud and data, Blockchain, infrastructure, and AI. The IBM Cloud Garage consultancy of cloud architects and solution engineers will be there as presenters, lab instructors, and consultants in the Cloud and Data Campus. This post highlights their sessions and discussions to help you plan your agenda!

Continue reading

Webinar: Monitoring and Logging Kubernetes Clusters

Watch a demo on how to leverage Sematext and IBM Cloud Container Service for faster, more efficient DevOps. Sematext offers the platform that eliminates the chasm between performance monitoring and logs while IBM Cloud Container Service builds on Kubernetes for advanced capabilities. This enables DevOps and modernizing traditional apps, as well as simplifying security, scale and infrastructure management. This demo will take you through the whole process […]

Continue reading