IN THIS ARTICLE
What if you could programmatically remote control your garage door? I know what I’d do. I’d make a program that sends me a message if I left the door open after 10pm. Aren’t Smart Homes cool? Thanks to Sunny Gleason’s two part series on controlling a Garage Door with PubNub, you can do just that, and so much more!
Part 1: Accessing the LiftMaster from PubNub
In this first article, Sunny shows how to install and configure the LiftMaster and PubNub APIs through their NPM modules and application keys. Then he shows you how to set up command handlers for controlling the door and querying state. Finally, plan ahead for secure access by using two channels at the same time, one for device status and the other for control.
Part 2: Remote Control with an AngularJS UI
In part two Sunny shows you how to build a web UI for the garage door using AngularJS. Control the door and get keep the state updated in realtime, even when multiple users are using the app at the same time, thanks to PubNub and AngularJS data binding.
With Angular and PubNub, the garage door of the future can be yours! The only limit is your imagination.