Community

Apache Quarks on Raspberry Pi with Streaming Analytics

Share this post:

Apache Quarks has come a long way since February when the IBM Streams team open sourced it to start “a community for accelerating analytics at the edge.” Excitingly, Apache Quarks is now undergoing incubation at Apache. We have had a lot of fun playing with Apache Quarks on Raspberry Pis–hooking up sensors and connecting to the Streaming Analytics service through Watson IoT Platform–so we want to share what we have learned from using real sensors with Quarks and the Streaming Analytics service.



This video shows a ~1 minute demonstration of what you can do after completing the two DeveloperWorks Recipes below. The video takes you from reading a proximity sensor, through local analytics on a Raspberry Pi using Apache Quarks, up to the Streaming Analytics service via Watson IoT for centralized analytics, then back again to Apache Quarks on the Pi to flash an LED using device commands. Here are the recipes:

  • Apache Quarks on Pi to Watson IoT Platform – This recipe walks you through connecting your Raspberry Pi sensors to the Watson IoT Platform using Apache Quarks and the Java Pi4J API. We use a proximity sensor to detect how close things are, then we aggregate and filter the data using Quarks in order to only send useful information to the Watson IoT Platform.
  • Connect Apache Quarks on Pi to the Streaming Analytics Service – This recipe picks off where the first one left off and brings centralized analytics to your application by connecting to the IBM Streams-powered Streaming Analytics service. From the Streaming Analytics service we send device commands back to our Quarks application and flash an LED on command.

We hope you find them useful! Let us know if you have questions or if you have recommendations for more future recipes by commenting below!

More Community stories
April 30, 2019

Introducing IBM Analytics Engine v1.2 and Announcing the Deprecation of IBM Analytics Engine v1.0

We are excited to inform you about the new version of IBM Analytics Engine v1.2 that will be available starting May 15, 2019. Along with this release, Analytics Engine v1.0 will be retired.

Continue reading

April 16, 2019

Announcing the Deprecation of the Decision Optimization Beta Service

The End of Beta date for the Decision Optimization service is May 17, 2019. The End of Beta Support date is June 20, 2019.

Continue reading

April 2, 2019

Data Refinery and Profiling Changes in Watson Studio and Watson Knowledge Catalog

We'd like to announce data refinery and profiling changes related to Watson Studio and Watson Knowledge Catalog that will take effect on May 17, 2019.

Continue reading