• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How to use IFTTT with TRIGGERcmd

Instructions
9
25
24.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ?
    A Former User
    last edited by Aug 23, 2017, 5:55 AM

    Thanks!! I try it when I get home tonight! Awesome app, BTW...

    R 1 Reply Last reply Aug 23, 2017, 11:23 AM Reply Quote 0
    • R
      Russ @A Former User
      last edited by Aug 23, 2017, 11:23 AM

      Thank you. Let me know your results please.

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by Aug 23, 2017, 3:52 PM

        Yep...it works. Thanks for the help!

        1 Reply Last reply Reply Quote 0
        • R
          Russ
          last edited by Jan 26, 2018, 11:16 PM

          Here's another example.

          Russell VanderMey

          1 Reply Last reply Reply Quote 0
          • D
            delkem
            last edited by Mar 24, 2018, 1:07 AM

            This works great when I create a normal IFTTT. I'm having trouble making it work when the IFTTT is created on the platform for private apps with a maker account. with this, you can make multiple steps or "that's" (think IFTTTTTTTTTT). Even if I just create one "that" in the private app, I get an "action failed" on the webhook with triggercmd.. "unable to make web request. Your server returned a 401"
            any ideas or is this an issue with IFTTT?

            R 1 Reply Last reply Mar 24, 2018, 7:31 PM Reply Quote 0
            • R
              Russ @delkem
              last edited by Mar 24, 2018, 7:31 PM

              @delkem, I'll give it a try. It should work the same way.

              Method: POST
              Content type: x-www-form-urlencoded
              Body: token=(your token)

              One problem I've had before was I had a space in the body field that I didn't notice. That could cause that error.

              Russell VanderMey

              1 Reply Last reply Reply Quote 0
              • D
                delkem
                last edited by Mar 24, 2018, 10:22 PM

                @Russ Thank You!!! yes, it was a space at the end of the token

                R 1 Reply Last reply Mar 25, 2018, 9:08 PM Reply Quote 0
                • R
                  Russ @delkem
                  last edited by Mar 25, 2018, 9:08 PM

                  @delkem, awesome! I'm glad that was it.

                  Russell VanderMey

                  1 Reply Last reply Reply Quote 0
                  • T
                    triggercmddm
                    last edited by Mar 29, 2018, 10:19 PM

                    Hi,

                    Am super-lovin' this 🙂 🙂

                    However, and trying to configure an IFTTT Button Widget to kick-off a webhook to my PC (PC name R1) to run the Reboot in 10 seconds command, but keep getting 401 errors - please help.

                    Am at the webhooks config page in IFTTT and entering the following:

                    URL: https://www.triggercmd.com/api/IFTTT?trigger=reboot&computer=R1
                    METHOD: POST
                    CONTENT TYPE: x-www-form-urlencoded
                    BODY: token=XYZ&params=russ.txt

                    <obviously <XYZ> is my token 😉

                    What am I doing wrong please ?

                    Thanks so much,

                    Dan

                    1 Reply Last reply Reply Quote 0
                    • T
                      triggercmddm
                      last edited by Mar 29, 2018, 10:26 PM

                      oops - that was for @Russ

                      R 1 Reply Last reply Mar 29, 2018, 10:40 PM Reply Quote 0
                      • R
                        Russ @triggercmddm
                        last edited by Mar 29, 2018, 10:40 PM

                        FYI, for anyone reading, @triggercmddm got it working. He needed to change the trigger name from 'reboot' to 'Reboot in 10 seconds' and he needed to remove '&params=russ.txt' from the body.

                        URL: https://www.triggercmd.com/api/IFTTT?trigger=Reboot in 10 seconds&computer=R1
                        BODY: token=XYZ
                        

                        Russell VanderMey

                        1 Reply Last reply Reply Quote 0
                        • T
                          triggercmddm
                          last edited by Mar 29, 2018, 10:43 PM

                          ...so just for the record and to complete the loop.
                          @Russ just IM'd me and resolved the issue.
                          Amazing service and phenomenal customer journey 🙂

                          In brief, to reboot/restart your Windows 10 PC from an iOS Home Screen button click, do the following:

                          1. Install TriggerCMD Agent
                          2. Sign up/in to IFTTT
                          3. For the If bit: select Button Widget
                          4. For the Then bit: select webhooks and enter the following:
                            i. URL: https://www.triggercmd.com/api/IFTTT?trigger=Reboot in 10 seconds&computer=R1
                            ii. METHOD: POST
                            iii. CONTENT TYPE: x-www-form-urlencoded
                            iv. BODY: token=XYZ

                          Notes:
                          There are spaces in "Reboot in 10 seconds"
                          My computer name is "R1"
                          <obviously <XYZ> is my token

                          To add the button widget to your iOS home screen:

                          1. Tap the share icon (square with the up arrow)
                          2. Tap "Add to Home Screen"
                          3. Tap "Add"
                          4. Enjoy 🙂
                          1 Reply Last reply Reply Quote 0
                          • R
                            rpondevie
                            last edited by rpondevie Oct 1, 2018, 8:45 PM Oct 1, 2018, 8:27 PM

                            I know this is an old post, but I wanted to share what I intent to do in order to illustrate what can be done with a very practical example.
                            I have a set of surveillance cameras. Some are indoor, some are outside. My associated software is iSpy. I also have a security system that only allows to get notifications via emails, as the Cie has its own proprietary surveillance system, at a different cost than mine (^_^). I want shut down the indoor and backyard cameras when I am in house, and turn them back on when I leave, or sleep, using the notification eMail. So, I plan on…

                             Create 2 tasks conditions in IFTTT, for “Off” & “On”.
                             Use <if><gmail> with proper filter on sender and subject), using respectively the words”Disarmed” & “Armed”.
                             Use your method to trigger a batch commands to iSpy, that may look like this:
                            URL: https://www.triggercmd.com/api/IFTTT?trigger=run ispy.exe "recordstop.alarmset"&computer=MyPC
                            ... where alarmset is the set of cameras to stop in this case.
                            I will keep you posted of the outcome.

                            R 1 Reply Last reply Oct 1, 2018, 10:59 PM Reply Quote 0
                            • R
                              Russ @rpondevie
                              last edited by Russ Oct 1, 2018, 11:00 PM Oct 1, 2018, 10:59 PM

                              @rpondevie, good luck. That's a cool project. I suggest you make your IFTTT URL something like this:

                              https://www.triggercmd.com/api/IFTTT?trigger=ispy&computer=MyPC&params=recordstop.alarmset
                              

                              Then make a command with these values:

                              • Trigger = ispy
                              • Command = c:\program files\ispy\ispy.exe (probably a different path)
                              • Allow Parameters = true

                              Russell VanderMey

                              1 Reply Last reply Reply Quote 0
                              • S
                                spotandjake 100
                                last edited by Mar 16, 2019, 7:32 PM

                                @Russ how would I run it with multiple parameters I am trying to make a program where it moves the mouse with powershell when I run from the triggercmd website with parameters it run but when I run it like that my parameters do not pass threw only one does

                                 https://www.triggercmd.com/api/IFTTT?trigger=mouse&computer=LAPTOP-M0RN3NEB&params={{TextField}},{{NumberField}} 
                                
                                R 1 Reply Last reply Mar 16, 2019, 11:44 PM Reply Quote 0
                                • R
                                  Russ @spotandjake 100
                                  last edited by Russ Mar 16, 2019, 11:44 PM Mar 16, 2019, 11:44 PM

                                  @spotandjake-100, you can pass multiple parameters by separating them with a space, or a %20, so like this:

                                   https://www.triggercmd.com/api/IFTTT?trigger=mouse&computer=LAPTOP-M0RN3NEB&params={{TextField}}%20{{NumberField}}
                                  

                                  Russell VanderMey

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User
                                    last edited by May 15, 2019, 10:23 PM

                                    does the IFTTT webhook method work with a free account or only with subscription?
                                    I tested with this comment without succes

                                    https://www.triggercmd.com/api/IFTTT?trigger=Notepad&computer=PC
                                    method = POST
                                    Content-Type: application/x-www-form-urlencoded

                                    with PC being the name of my computer as registered in my profile.

                                    R 1 Reply Last reply May 16, 2019, 10:19 PM Reply Quote 0
                                    • R
                                      Russ @A Former User
                                      last edited by Russ May 16, 2019, 10:25 PM May 16, 2019, 10:19 PM

                                      @koen-van-lent, it should work with a free account too, but only 1 per minute of course.

                                      Do you have token=(your token from Instructions page) in the body?

                                      Russell VanderMey

                                      1 Reply Last reply Reply Quote 0
                                      • Mittal MakwanaM
                                        Mittal Makwana
                                        last edited by Oct 16, 2019, 9:57 PM

                                        Yuppie, this works so well thank you for the article. I did a simple google assistace IFTTT applet to put my mac to sleep.

                                        R 1 Reply Last reply Oct 16, 2019, 11:39 PM Reply Quote 0
                                        • R
                                          Russ @Mittal Makwana
                                          last edited by Oct 16, 2019, 11:39 PM

                                          @Mittal-Makwana, nice, what command does that?

                                          Russell VanderMey

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post