trackpin-node

1.0.2 • Public • Published

trackpin-node

TrackPin Garage door information scraper

npm version Build Status dependencies Status Standard - JavaScript Style Guide MIT Licence

This module is designed to get status from the TrackPin (http://trackpin.com/) garage door opener system.

This system does not provide the ability to trigger the garage door remotely so this plugin is only designed to get the status of the garage door.

Installation / Usage

$ npm install trackpin-node

Currently this exports checkDoorStatus and listPins.

Example usage:

import {checkDoorStatus, listPins} from 'trackpin-node'

const credentials = {
    email: 'email',
    password: 'password'
}

// To get door status
checkDoorStatus(credentials).then(result => {
    // result is an object with status and lastPin
    // { status: 'OPEN' or 'CLOSED', lastPin: 'last used pin code' } 
    console.log(result)
})

// To get a list of pin names in the system (not the code itself)
listPins(credentials).then(r => {
  console.log(r) // -> ['pin1', 'pin2', ...]
})

Readme

Keywords

none

Package Sidebar

Install

npm i trackpin-node

Weekly Downloads

22

Version

1.0.2

License

MIT

Last publish

Collaborators

  • wurmr