Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature update! #352

Open
requiem240sx opened this issue Sep 25, 2021 · 3 comments
Open

Feature update! #352

requiem240sx opened this issue Sep 25, 2021 · 3 comments

Comments

@requiem240sx
Copy link

requiem240sx commented Sep 25, 2021

Thanks everyone for the amazing work on this! I've been using it and enjoying it for a while now! I have recently made the swap over to Siri (Homepod mini's) and wanted to let others know that this project works great with Siri, and in fact it is easier in some ways, as you don't require a publicly accessible endpoint, requests can stay completely local.

It wouldn't let me create a new branch and pull request, but I was just going to update the README, to include an option for Siri shortcut to be used instead of only IFTTT.

Proposed README.md changes:

### D) Set up IFTTT with your Google Home OR shortcut with Siri (Homepod)

Note that IFTTT will require a public endpoint, if you choose to use a Siri Shortcut, you can call the local server directly. 

<details>
<summary><b>IFTTT (For Google Home)</b> (Click to expand instructions)</summary><p />
1. Go to [IFTTT](https://ifttt.com)
2. Create a new applet: if *This* then *That*
3. For *This* choose: *Google Assistance*
    1. Choose *Say a phrase with a text ingredient*
    2. In *What do you want to say?* enter something like:
      > Kodi play movie $
    3. In *What do you want the Assistant to say in response?* enter something like:
      > ok playing $ movie
4. For *That* choose: *Maker Webhooks*
    1. Choose *Make a web request*
    2. In *URL* enter:
      >_YOUR_NODE_SERVER_/playmovie?q={{TextField}}

    For example, if your node server address is 'green-icecream.glitch.me', your should enter:
      >https\://green-icecream.glitch.me/playmovie?q={{TextField}}

    8. Method: *POST*
    9. Content Type: *application/json*
    10. Body:
      >{"token":"*YOUR_CONNECTION_PASSWORD*"}

**Check out [this example](examples/IFTTT_settings_example.png) to make sure your settings are correct**


Now every time you say "Hey Google, Kodi play movie bla bla", it should play bla bla on your kodi.<br>
**Note:** If your external IP changes, this will stop working (consider getting a static IP address)<br>
**Tip:** If you don't want define action for every phrase separatelly, you can use [Phrase broker](#phrase-broker)

</details>


<details>
<summary><b>Siri Shortcut (For Homepod)</b> (Click to expand instructions)</summary><p />

Open up Shortcuts app and create a new Shortcut, you can name it anything you want.  "Kodi" will be the trigger word if you say Kodi.  This is the Shortcut steps. 


It is formatted as....

    Action   -   What to fill in that action
1. Ask for Input - Ask for `Text` with `What would you like to ask Kodi`
2. URL - Add your local URL of the node server `192.168.1.8:8099/broker?phrase={Provided Input}`
3. Get Contents of URL - 
    1. Get Contents of {URL}
    2. Click the drop down and change the method to `POST`
    3. Click Request Body, should be on JSON.  Click `+` and you can then add your 2 values
      1. Key=token Value={TokenValue}
      2. Key=kodiid Value={Kodi ID} (If using multiple devices)

Troubleshooting
If your having issues, I would recommend using the Action called `Show Notification` to print out the URL to you. 


</details>
@terryo52404
Copy link

Do all the commands work the same? With the upcoming IFTTT/Google changes I might need to buy a Homepod.

@rainman74
Copy link

Funktionieren alle Befehle gleich? Mit den bevorstehenden IFTTT / Google-Änderungen muss ich möglicherweise einen Homepod kaufen.

Mit den neuen Google Änderungen wird das komplett nutzlos!

@terryo52404
Copy link

@requiem240sx
I have been trying to enter the shortcut info for the key values in Step 3. Do the values need to be in quotes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants