2019-12-06, 07:18
Solved the 'do multiple things in a row' challenge for me.
Yay.
First read this:
Multiple IFTTT Triggers
https://medium.com/glitch/how-to-trigger...77860a76af
and set it up the same as you did the Glitch project for 'control Kodi'. Make it private as well. Enter your Webhooks url (from https://ifttt.com/maker_webhooks/settings ) in the .env file for 'Multiple IFTTT Triggers
In IFTTT create two applets. "This" AND "That" both Webhook.
"This" is simply the applets name. You can choose it freely.
"That" for the first one (I named infoon) is the action you want 'control Kodi' to trigger - so in my case:
with POST, json, and the token as usual.
"That" for the second one (I named delayedinfoon) is
with GET and all the other fields left to default state (just hit save).
The xxxxxxxx's after key= you have to replace with the token from https://ifttt.com/maker_webhooks/settings (so the thing after /use/)
Finally - create a last applet with "This" being your Google Assistant action (as usual) and "That" being the new Glitch url for your (private ) "Multiple IFTTT Triggers" project on glitch. (press show > in a new window and then copy that url). Method: POST, Content Type: json. Save it.
Then head back in the .env file
and simply put
(or your applet names there)
and thats it.
Both commands will be run one after the other. The second one will hit the lab.grapeot.me website, the website will create a 0.01 minute delay (which would be less than a second, but the minimal delay is 5 seconds, so it turns out to be five.. ) and then run the applet you specified in that url.
In the end this means, "Hey, Google - Kodi Info" in my case displays Info for five seconds, and then removes it from the screen again, which was the desired outcome.
Far more complicated than needed (because IFTTT doesnt support delays on its own), but hey. It works.
Yay.
First read this:
Multiple IFTTT Triggers
https://medium.com/glitch/how-to-trigger...77860a76af
and set it up the same as you did the Glitch project for 'control Kodi'. Make it private as well. Enter your Webhooks url (from https://ifttt.com/maker_webhooks/settings ) in the .env file for 'Multiple IFTTT Triggers
In IFTTT create two applets. "This" AND "That" both Webhook.
"This" is simply the applets name. You can choose it freely.
"That" for the first one (I named infoon) is the action you want 'control Kodi' to trigger - so in my case:
Code:
https://free-xxxxxxxxxxxx.glitch.me/displayinfo
"That" for the second one (I named delayedinfoon) is
Code:
http://lab.grapeot.me/ifttt/delay?event=infoon&t=0.01&key=xxxxxxxxxxxxx
The xxxxxxxx's after key= you have to replace with the token from https://ifttt.com/maker_webhooks/settings (so the thing after /use/)
Finally - create a last applet with "This" being your Google Assistant action (as usual) and "That" being the new Glitch url for your (private ) "Multiple IFTTT Triggers" project on glitch. (press show > in a new window and then copy that url). Method: POST, Content Type: json. Save it.
Then head back in the .env file
and simply put
Code:
IFTTT_EVENT_1=infoon
IFTTT_EVENT_2=delayedinfoon
and thats it.
Both commands will be run one after the other. The second one will hit the lab.grapeot.me website, the website will create a 0.01 minute delay (which would be less than a second, but the minimal delay is 5 seconds, so it turns out to be five.. ) and then run the applet you specified in that url.
In the end this means, "Hey, Google - Kodi Info" in my case displays Info for five seconds, and then removes it from the screen again, which was the desired outcome.
Far more complicated than needed (because IFTTT doesnt support delays on its own), but hey. It works.