Coder Social home page Coder Social logo

hfhoffman1144 / smartphone_sensor_stream Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 6.0 1.58 MB

Stream smartphone data with FastAPI, Kafka, QuestDB, and Docker.

Python 22.40% HTML 2.63% Shell 0.52% Dockerfile 1.56% JavaScript 4.85% Jupyter Notebook 68.04%

smartphone_sensor_stream's Introduction

smartphone_sensor_stream

Stream smartphone data from Sensor Logger (see https://github.com/tszheichoi/awesome-sensor-logger#the-sensor-logger-app) with FastAPI, Kafka, QuestDB, and Docker. A quick demo is available on YouTube: https://www.youtube.com/shorts/zRUVvz5vsl8

Improvements

An improved version of this projected can be found here.

Getting Started

  1. Make sure Docker Compose is installed on your machine: https://docker-docs.netlify.app/compose/install/
  2. Install Sensor Logger on your smartphone: https://www.tszheichoi.com/sensorlogger
  3. Ensure that your smartphone and host machine are on the same WI-FI network, and identify the IP address of your host machine. On Mac, this can be found under System Preferences -> Network:

image info

  1. In Sensor Logger's settings, in the "Push URL" box, enter http://{your_ip_address}:8000/phone-producer :

image info

  1. From the command line, run docker-compose up --build in the same directory as the docker-compose.yml file.

  2. Wait for build to complete and visit http://localhost:5000 on the host machine. Click "Start Recording" in Sensor Logger:

image info

Data should begin streaming to the dashboard:

image info

smartphone_sensor_stream's People

Contributors

hfhoffman1144 avatar

Stargazers

Shivansh Kulshrestha avatar Suhyen Im avatar Milton Baptista avatar Imu avatar João Flávio Santos avatar  avatar OM MAHALE avatar Анатолий avatar Danilo Ferreira de Oliveira avatar Evgeny Postnov avatar Burak Çayır avatar Jeramie Goodwin avatar Manu avatar Noah avatar  avatar D avatar  avatar  avatar Jim Reesman avatar

Watchers

Jim Reesman avatar Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.