Turn Your Phone into a Complete Sensor Hub

Build cool IoT applications that utilize the sensors on your phone in real-time!

Get Started

Powerful Features

Unlock the full potential of your smartphone's sensors with our comprehensive solution.

Comprehensive Sensor Support

Access and stream data from a wide range of sensors:

  • Accelerometer: Measure device acceleration and detect motion
  • GPS: Obtain precise location data for geolocation-based applications
  • Gyroscope: Track device orientation and rotational movements
  • Light Sensor: Measure ambient light levels for adaptive applications
  • Magnetometer: Detect magnetic fields for compass applications
  • Proximity Sensor: Determine nearby object presence
  • Step Counter: Track user's steps for fitness applications
  • Thermometer: Measure ambient temperature (device-dependent)

Real-time Streaming

Stream sensor data instantly over WiFi or local network:

  • Low-latency data transmission for time-sensitive applications
  • Configurable streaming rates to suit your project needs
  • Efficient data packaging for optimal performance
  • Support for multiple simultaneous sensor streams

Audio & Image Streaming

Extend your sensor capabilities with multimedia streaming:

  • Real-time audio streaming for sound-based applications
  • Image streaming from your phone's camera
  • Configurable image resolution and frame rates
  • Combine audio/visual data with sensor data for rich applications

Open-Source Server and Sample Projects

Flexible and customizable server solution:

  • MIT-licensed server for complete freedom of use
  • Written in Python for easy modification and integration
  • Run on various platforms (laptop, Raspberry Pi, etc.)
  • Extendable architecture for custom data processing
  • Examples and documentation for quick start
  • Fun sample projects included!

About PhonePi Sensor Stream Pro

The ultimate solution for transforming your smartphone into a powerful sensor hub.

PhonePi Sensor Stream Pro transforms your smartphone into a powerful sensor hub, enabling you to stream real-time sensor information to our open-source server. Perfect for IoT applications, data science projects, and innovative use cases, our app gives you complete programmatic control over your phone's sensors.

With support for a wide range of sensors and the ability to stream audio and images, PhonePi Sensor Stream Pro opens up endless possibilities for your projects. Our server, available under the MIT license, can be easily modified to suit your specific requirements, allowing you to build custom applications that leverage the full potential of your smartphone's sensing capabilities.

Smartphone with sensor visualization interface showing data streams

How It Works & Setup

Understand the components and get started with setting up your sensor stream.

Sensor Stream App

Sensor Stream allows you to convert your phone into a complete sensor hub and stream real-time sensor information from your phone to the provided open source server over wifi/local network. The server can be modified as per your use-case. The app can be used to build IoT applications, for data science projects and many more use cases!

Important

Make sure you have given the app all the necessary access permissions (especially if you wish to use audio streaming/image streaming).

Sensor Stream Server

These are simple servers with WebSocket support that accept the sensor data and write it to a text file. These are companion sample servers for the Sensor Stream app.

Setup Steps

  1. Get the code: Clone the repository or download the zip file
    git clone https://github.com/priyankark/SensorStreamServer.git
  2. Navigate to server directory
    cd SensorStreamServer/server
  3. Create a virtual environment (Optional but Recommended)
    For Python Virtual Environment

    Step 1: Create the environment

    python3 -m venv env

    Step 2: Activate it

    For Linux/Mac:

    source env/bin/activate

    For Windows:

    .\env\Scripts\activate

    More details on Python Virtual Environments

  4. Install dependencies
    pip install -r requirements.txt
  5. Run the server
    python3 server.py

Using the App with the Server

Network Setup
  1. Same Network: Ensure your phone and the device running the server are on the same WiFi/local network.
  2. Find IP Address: Look for the internal IP address of the device running the server (it should be displayed when the server starts).
App Configuration
  1. Enter Server Address: In the Sensor Stream app, enter the IP address followed by the port number (5000 by default).
    Example: 192.168.1.24:5000
  2. Select Sensors: Enable the sensors you want to stream data from.
  3. Customize (Optional): Modify server.py for custom data handling if needed.

Data Format Cheat Sheet

Sensor Data Format
Accelerometer x,y,z
Gyroscope x,y,z
Magnetometer x,y,z
Orientation azimuth,pitch,roll
Step Counter steps
Thermometer temperature
Light Sensor light
Proximity isNear,value,maxRange
Camera and Audio base64 encoded strings

For more details on proximity sensor, see: react-native-sensor-manager

Contribution Guidelines

This repository is open to contributions. On the server side, we are looking to support sample servers in more languages and frameworks such as node.js, Go etc. Please feel free to raise PRs on the GitHub repository !

See PhonePi Sensor Stream Pro in Action

Watch our demonstration video to see how easy it is to get started.

Check Us Out on Product Hunt

Join the community discussing PhonePi Sensor Stream Pro and share your feedback.

Product Hunt embedded content showcasing PhonePi Sensor Stream Pro with user reviews and ratings

Support & Community

Get help, report issues, or contribute to the project's development.

Need Help or Found an Issue?

Our GitHub Issues page is the central hub for support requests, bug reports, and feature suggestions. Join our growing community of developers and contributors!

View Issues on GitHub

Get Started with PhonePi Sensor Stream Pro

Download the app and explore the possibilities today!