/nest-control-jquery

A sample web app that shows how to control your Nest thermostat using the Nest API

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Nest Control sample app with jQuery

A simple thermostat control application that demonstrates how to access the Nest API from a web application.

Requirements

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

Prerequisite

In order to run this example you must first create a client in the Nest Developer portal. The client should be created with the following required attributes:

OAuth Redirect URI: http://localhost:8080/auth/nest/callback Permissions: Thermostat read/write

All other attributes values are not specific and can be determined by the developer.

Running

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

$ bower install
$ npm install

Next you will need your client ID and client secret from developer.nest.com/clients set as environment variables:

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

And finally to start the server:

$ npm start

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

Contributing

Contributions are always welcome and highly encouraged.

See CONTRIBUTING for more information on how to get started.

License

LCDBOLD - Standard Font License - Copyright 1999 by Samuel Reynolds. See app/fonts/LCDBOLD/readme.txt for more information.

control-jquery - Apache 2.0 - See LICENSE for more information.