New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

liftmaster

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liftmaster

Control your LiftMaster MyQ garage door openers

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-liftmaster

Control your LiftMaster MyQ garage door openers.

Installation

npm install liftmaster

Usage overview

new MyQ(email, password)

var MyQ = require('liftmaster'),
  garageDoor = new MyQ('chad@developer.email', 'correct horse battery staple');

garageDoor.login(callback)

Logs in to your MyLiftMaster account and returns a security token

garageDoor.login(function(err, res) {
  if(err) throw err;
  console.log(res);

garageDoor.getDevices(callback)

Returns an array of garage door devices on the account.

  garageDoor.getDevices(function(err, devices) {
    if(err) throw err;
    
    devices.forEach(function(device) {
      console.log(device.name, device);
  });

garageDoor.getDoorState(id, callback)

Retrieves the latest state of the requested door.

  var device = garageDoor.devices[0];
  garageDoor.getDoorState(device.id, function(err, device) {
    if(err) throw err;
    console.log(device);
  });

garageDoor.setDoorState(id, state, callback)

Set the requested door to open or close. Returns an updated state once complete.

Known door states: 1 = open, 2 = closed, 4 = opening, 5 = closing

  garageDoor.setDoorState(device.id, 1, function(err, device) {
    if(err) throw err;
    console.log(device);
  });

TODO

See the issue tracker for more.

Author

Chad Smith (chad@nospam.me).

License

This project is UNLICENSED and not endorsed by or affiliated with LiftMaster.

Keywords

FAQs

Package last updated on 01 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc