Skip to content

A simple alert application that demonstrates how to access the Nest API from a web application by alerting the user when their Nest Protect goes off.

License

Notifications You must be signed in to change notification settings

yonirab/alert-jquery

 
 

Repository files navigation

Nest Alert sample app with jQuery

A simple alert application that demonstrates how to access the Nest API from a web application by alerting the user when their Nest Protect goes off.

Requirements

The development environment is a simple Node.js server managed by Yeoman. If you don't have them already install these tools first:

Running

To install required Bower components and Node modules, simply type:

$ bower install
$ npm install

You will need to set your redirect URI in <developer.nest.com/clients/> to 'http://localhost:8080/auth/nest/callback' and grab your your client ID and client secret and set them as environment variables:

$ export NEST_ID=<CLIENT ID>
$ export NEST_SECRET=<CLIENT SECRET>

And finally, use Grunt to start the server:

$ grunt

Then open http://localhost:8080 in your browser and you will be walked through the authentication process.

License

Copyright 2014 Nest Labs Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

A simple alert application that demonstrates how to access the Nest API from a web application by alerting the user when their Nest Protect goes off.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.5%
  • HTML 12.5%