1.0.2 • Published 7 years ago

trackpin-node v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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', ...]
})
1.0.2

7 years ago

1.0.1

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.0

7 years ago