Giter Club home page Giter Club logo

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

Device Access Web Application Sample

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 directions provided below to deploy a functioning web application to control Nest cameras, doorbells, and thermostats.

If you are new to Device Access, we recommend you to start with the Building a Device Access Web Application Codelab.

Deploying the Sample App

After creating a project on Firebase, use the steps below to deploy the sample app.

Clone the sample app:

git clone https://github.com/google/device-access-sample-web-app.git

Navigate into project directory:

cd device-access-sample-web-app

Link the app with your Firebase project:

firebase use --add [PROJECT-ID]

Deploy the app to your Firebase project:

firebase deploy

You can then access the app at your Hosting URL (https://[PROJECT-ID].web.app).

Using the Sample App

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

Make sure to add the redirect url [PROJECT-ID].web.app/auth in list of authorized URLs for your Client Id on Google Cloud Platform to prevent Error 400: redirect_url_mismatch. More instructions on this can be found at Handling OAuth section from the Building a Device Access Web Application Codelab.

You can try out a live demo at device-access-sample.web.app.

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

Contributors

yigituyan 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.