Skip to content

nextthingco/google-assistant-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

To enable access to the Google Assistant API, do the following on your development machine:

  1. In the Cloud Platform Console, go to the Projects page. Select an existing project or create a new project.

  2. Enable the Google Assistant API on the project you selected at this link. Select your project as mentioned in step 1 and click the “Enable” button.

  3. Create an OAuth Client ID with the following steps:

    • Create the client ID at this link.
    • You may need to set a product name for the product consent screen. On the OAuth consent screen tab, give the product a name and click Save.
    • Click Other and give the client ID a name.
    • Click Create. A dialog box appears that shows you a client ID and secret. (No need to remember or save this, just close the dialog.)
    • Click ⬇ (at the far right of screen) for the client ID to download the client secret JSON file (client_secret_XXXX.json).
  4. Copy the client_secret_XXXX.json file to this folder.

  5. Download GadgetOS to your development machine and build the OS. Flash the image to your CHIP Pro and reboot.

  6. Download the GadgetCLI tools.

  7. Setup the wifi on your CHIP Pro.

  8. Do a "gadget build" from this folder and then "gadget deploy"

  9. Enter "gadget shell

  10. Run the docker container with this command:

docker run --privileged --net=host --cap-add SYS_RAWIO --device /dev/mem -v /sys:/sys -v /var/run/dbus:/var/run/dbus -v /data/.config/google-oauthlib-tool:/ root/.config/google-oauthlib-tool -i $(docker images -q)

  1. Follow the instructions through the terminal to finish authentication.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published