node package manager


turn your phone into a sensor for great justice.


for low precision passes at hardware stuff when you don't own sensors.

var senses = require('phone-sensor')
  , stringify = require('json-stringify-stream')
  .on('sensor', function(sensor) {

listen on port, calling ready if provided.

if port is omitted it will attempt to autodetect a port.

if ready is omitted, once the sensor server is ready it'll print the url to stdout. ready takes (err, url) as arguments.

close the sensor server.

get a new Sensor object. Sensor objects have two properties: motion and orientation streams.