tiziano88 / google-smart-home-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable ip forwarding:

sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv6.conf.all.forwarding=1
cargo run
ngrok http 1234
lt --port=1234 --subdomain=$USER$HOST

Setup instructions

  1. Compile and run the server with cargo run.

  2. Run ngrok http 1234 and take note of the public HTTPS address, something like https://xxxxxxxx.ngrok.io. Alternatively specify the -subdomain flag for a persistent endpoint.

  3. Locally modify the action.json file, setting the conversations.automation.url field to $URL/action.

  4. Using the gActions CLI, run gactions update --action_package=action.json --project=$PROJECT.

  5. Navigate to the Actions Console and click Add/Import Project.

  6. Create a new project or import an existing Google Cloud project.

  7. Navigate to the app overview.

  8. Under "App information" click "ADD":

    1. Under "Name":
      1. Fill in "Display Name".
      2. Fill in "Pronunciation".
      3. Click "NEXT".
    2. Under "Details": Fill in "Introduction", "Short Description", "Full Description", "Category", and click "NEXT".
    3. Under "Images": Upload both a large banner and a small banner and click "NEXT".
    4. Under "Testing instructions (optional)": Click "NEXT".
    5. Under "Contact Details": Fill in "Email" and click "NEXT".
    6. Under "Privacy and consent": Fill in "Link to Privacy Policy" and click "SAVE".
  9. Under "Account linking (optional)" click "ADD":

    1. Under "Grant type":
      1. Select "Authorization code".
      2. Click "NEXT".
    2. Under "Client information":
      1. Fill in "Client ID" to any value.
      2. Fill in "Client secret" to any value.
      3. Fill in "Authorization URL" to $URL/auth.
      4. Fill in "Token URL" to $URL/token.
      5. Click "NEXT".
    3. Under "Configure your client (optional)":
      1. Click "NEXT".
    4. Under "Testing instructions":
      1. Fill in "Testing instructions".
    5. Click "SAVE".

About

License:MIT License


Languages

Language:Rust 97.4%Language:Shell 1.7%Language:Dockerfile 0.9%