Skip to content

Node.js server to stream a phone's accelerometer and gyroscope data in real-time to a computer.

Notifications You must be signed in to change notification settings

tvogels/accelerometer-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phone Motion Stream Server

This is a simple node.js server that sets up a real-time stream between a mobile phone's accelerometer and gyroscope data to the server. The phone connects through its browser, after which the data is transfered over a websocket connection.

Installation

Make sure you have the following

  • node.js installed. When using Windows, make sure to reboot your PC after installation.
  • This project in a folder on your PC or Mac. (Download using the [Download ZIP] button on the right of this page.)

Usage

Start the server

  • Open a console (Terminal in OS X, cmd in Windows)
  • Navigate to the server directory (using cd). The server directory is the folder downloaded from here and includes the server.js file.
  • Start the server by typing node server.js.

Set up the connection

  • Make sure your phone and computer are connected to the same network.
  • Grab your phone and navigate to the webpage indicated by the server when started.
  • Enter a unique ID for the measurement and start streaming!
  • The data collected will end up in data/[id]-(motion|orientation).txt

About

Node.js server to stream a phone's accelerometer and gyroscope data in real-time to a computer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published