Skip to content

Hungon/AndroidThings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndroidThings

I'm going to build IoT apps such as Android Assistant.

MyAssistant

This app is running on IoT device powered by Android. You need to ensure that your Google Assistant API in Cloud console is enabled if you want to try this app.

  • After that open a terminal on your development machine and type following command to configure Python virtual environment.
  • $ python3 -m venv env

    $ source env/bin/activate

    (env) $ pip install --upgrade pip setuptools wheel

    (env) $ pip install --upgrade google-auth-oauthlib[tool]

  • After installation navigate to your top-level project directory and type the below command to get your credential.
  • (env) $ google-oauthlib-tool --client-secrets path/to/credentials.json --credentials shared/src/main/res/raw/credentials.json
    --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save

    Replace path/to/credentials.json with the path of the JSON file you downloaded.
    This will open browser and ask you to authorize the application to make request to the assistant.

    (env) $ gactions test --action_package actions.json --project project_id

  • You can register custom actions to assistant with gactions like the snippet code above.
  • About

    I'm going to build IoT apps such as Android Assistant.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published