A node.js streaming API for Lacrosse Alert sensors
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Client.js
Device.js
DeviceRawReadStream.js
DeviceSingleRawReadStream.js
DeviceStream.js
LICENSE
README.md
index.js
package.json

README.md

node-lacrosse

A node.js streaming API for Lacrosse Alert sensors.

Usage

var lacrosse = require("lacrosse")

var client = new lacrosse.Client({
  username: "MY USERNAME",
  password: "MY PASSWORD"
})

client.on("login", function() {
  console.log("you have %s devices.", client.devices.length)
})

var device = new client.Device("MY DEVICE ID")
var stream = device.createReadStream()

stream.on("data", console.log)