Johan Janssen

Info Support

Bio

Johan is working as a Java architect and trainer at Info Support. He has been working for various demanding companies where rapidly delivering quality software was very important. Johan regularly writes articles and presents about various subjects at conferences like JavaOne, GOTO Amsterdam/Berlin, Devoxx BE/UK/PL, JavaZone, J-Fall, Jfokus, JavaLand, Scala Days Berlin/New York and many others. Johan received the JavaOne Rock Star and Oracle Code One Star awards.

Twitter: @johanjanssen42
Web: www.infosupport.com

Processing (IoT sensor) data with InfluxDB

Sensors give us a wealth of information. But how do we store the information and how do we make it available in a readable way? This talk also shows how the same principles apply to other time based measurements such as method duration.

In this session, I will show you how you can send sensor data to InfluxDB. The example is based upon Spring Boot. InfluxDB is a time series database which is a perfect fit to store sensor data. It’s possible to send the data by making a REST call to InfluxDB, by using the Java InfluxDB client or with Spring Data InfluxDB.

The example (including a live demo) is based on a Raspberry Pi with the following sensors:

  • BME280 connected to the GPIO ports of a Raspberry Pi
  • Raspberry Pi sensor
  • Xiaomi Mijia and Xiaomi Flora connected via Bluetooth to the Raspberry Pi

The sensors return a wealth of information such as the temperature and humidity.

After the sensor data is stored we make it available in a nice graphical way. Therefore we use the Chronograf dashboard. InfluxDB and Chronograf run in Docker containers on the Raspberry Pi.