{"id":20785813,"url":"https://github.com/dineshkarthik/real-time-iot-data-streaming","last_synced_at":"2025-10-28T08:44:14.554Z","repository":{"id":146848644,"uuid":"289887299","full_name":"Dineshkarthik/real-time-IoT-data-streaming","owner":"Dineshkarthik","description":"Realtime IoT data streaming from Smartphone sensors","archived":false,"fork":false,"pushed_at":"2020-08-26T07:57:36.000Z","size":61,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T21:51:15.231Z","etag":null,"topics":["android-iot","elk-stack","iot","kafka-streams","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dineshkarthik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-24T09:41:10.000Z","updated_at":"2022-06-23T00:32:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"7dc07c6d-c2a6-4599-8fc8-87217c9f1635","html_url":"https://github.com/Dineshkarthik/real-time-IoT-data-streaming","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dineshkarthik%2Freal-time-IoT-data-streaming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dineshkarthik%2Freal-time-IoT-data-streaming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dineshkarthik%2Freal-time-IoT-data-streaming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dineshkarthik%2Freal-time-IoT-data-streaming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dineshkarthik","download_url":"https://codeload.github.com/Dineshkarthik/real-time-IoT-data-streaming/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252522169,"owners_count":21761685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-iot","elk-stack","iot","kafka-streams","python"],"created_at":"2024-11-17T14:47:38.020Z","updated_at":"2025-10-28T08:44:09.521Z","avatar_url":"https://github.com/Dineshkarthik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-time IoT Data Streaming\nExperimenting with IoT using android smartphone sensors and streaming the generated data real time to kafka and further processed, aggregated and stored using ELK stack.\n\n![Architecture](architecture.png)\n\n\u003e For detailed description of this project read my [Medium post](https://itnext.io/real-time-iot-data-streaming-from-old-smartphone-e9fbee6ecc91).\n\n## Requirements:\n- [Docker Engine](https://docs.docker.com/get-docker/) version 19.03 or newer\n- [Docker Compose](https://docs.docker.com/compose/install/) version 1.25.5 or newer\n- 3 GB of RAM allocated to docker\n- Smartphone with Android OS 2.3.3 and above\n\n## Setup\n\nInstall [Sensorstream IMU+GPS](https://play.google.com/store/apps/details?id=de.lorenz_fenster.sensorstreamgps\u0026hl=en) in your android device. The smartphone should be connected to the same network as the machine running the docker containers.\n\n- Open the Sensorstream IMU+GPS app\n- In Preferences section update the `Target IP address` text area with the local ip of the machine running docker.\n- Click in radio buttton `UDP stream` as we don't want to store a replica of data in the android phone.\n- Check `Run in Background`\n- In Toggle Sesnors section check `Battery Temp.` and `Include User-Checked Sesnor Data in Stream`\n\nBy default, the stack exposes the following ports:\n\n- 5555: kafka producer UDP input\n- 9093: Kafka port for host interaction\n- 9200: Elasticsearch HTTP\n- 9300: Elasticsearch TCP transport\n- 5601: Kibana\n\n## Execution\n\n```sh\n$ docker-compose up\n```\nThen click `Switch Stream` button in Sensorstream IMU+GPS app to switch on the stream.\n\n## Querying the sensor data / Data Visualization\n\nOpen kibana in your browser using url [http://localhost:5601](http://localhost:5601)\n- Click on the discover button on the left navigation bar.\n- Kibana will prompt you to `Define index pattern` type `logstash-*` and press next\n- Step 2 you will be asked to choose th `Time Filter field name` select `@timestamp` from the drop down and press `Create Index`\n- Now go to discover section. You can see the data coming in from the android smartphone.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdineshkarthik%2Freal-time-iot-data-streaming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdineshkarthik%2Freal-time-iot-data-streaming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdineshkarthik%2Freal-time-iot-data-streaming/lists"}