TL;DR, If you are looking for a simple project to get started with IoT but don’t have the hardwares/sensors this for you. Stream android smartphone’s sensor data using Kafka  and store/visualize the sensor data using ELK stack  in dockerized containers

The idea behind this project is to monitor the battery temperature of the smartphone. I use one of my old android smartphones as an IP web camera and it tends to overheat so I wanted to monitor the temperature.

The major components are

  • IoT device — Smartphone sensors
  • Stream pipeline — Apache Kafka
  • Aggregate/process, Store & Visualise — ELK Stack

The stream pipeline and ELK stack are dockerized and run using docker-compose

Requirements:

  • Docker Engine version 19.03 or newer
  • Docker Compose version 1.25.5 or newer
  • 3 GB of RAM allocated to docker-engine
  • Smartphone with Android OS 2.3.3 and above

Sending Data from IoT device:

To collect and send the sensor data from the smartphone install

Sensorstream IMU+GPS app from playstore. Open the app after installing.

Image for post

Image for post

#elk #iot #realtime #kafka #python

Real-time IoT Data Streaming from Old Smartphone
4.75 GEEK