Is it possible to use IFTTT to issue a command to multiple computers?
-
I'm trying to make a command that will put both of my PCs into hibernation when I say, "Hey Google, turn off my computers." I've tried messing with the webhook a little, but I really don't know what I'm doing haha. I have an identical command set up on two PCs called "Hibernate" and I'm capable of hibernating them individually, but it would be nice if I could tell them both to hibernate with just a single command.
Thanks for the help!
(Here's a picture of something I've tried)
https://gyazo.com/3f556b4ea17c748976a39b6ad55c111a -
@bryan-w, the TRIGGERcmd API only allows one trigger per API call, and IFTTT only allows one thing in the That slot in the If This then That formula.
If you want to multiple API calls at one time, I recommend using Stringify instead of IFTTT.
This screenshot shows how you'd have a command run on two computers at once:
Setup each Connect: Maker like this:
Install it by searching for Stringify in the Home app:
-
Thank you for the help, I'll try that out!
-
Another idea is for one of your triggers to trigger the other one using an API call for example using curl.
-
@alon, good idea. I didn't think of that, but yea that's smart - you'd make a script with multiple curl commands that run other commands via TRIGGERcmd.
https://www.triggercmd.com/forum/topic/25/use-curl-to-run-a-command-via-the-api
-