May 18, 2016 | Written by: Alexander Cook
Categorized: Community | Data 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!