Code Monkey home page Code Monkey logo

device-access-codelab-web-app's Introduction

Device Access Web Application Codelab

Device Access Logo

Device Access enables access, control, and management of Nest devices within partner apps, solutions, and smart home ecosystems, using the Smart Device Management (SDM) API.

Developers can use the code in this repository with the Building a Device Access Web Application codelab to build a functioning web application to control Nest Thermostats.

There are two variants of this codelab. codelab-start gives the full developer experience with some functions left blank for you to complete. codelab-done presents a fully functioning app, which you can deploy and use in a Firebase project after a few changes.

Using codelab-start

Follow the steps in the Building a Device Access Web Application codelab to build your application.

Using codelab-done

Create a Firebase cloud project to host this app. Set the SERVER_URI in scripts.js to match the name of your project.

Navigate to codelab-done/functions directory

cd device-access-codelab-web-app/codelab-done/functions

Install necessary dependencies for the project

npm install express firebase-tools xmlhttprequest --save

Navigate back to codelab-done folder

cd ..

Deploy the app to your firebase project

firebase deploy

Enter the OAuth credentials you created on Google Cloud Platform, as well as the Project Id from the Device Access Console to complete the account linking flow for a Google account with a linked Nest Thermostat.

device-access-codelab-web-app's People

Contributors

yigituyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.