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

    Simple IFTTT - TriggerCMD connection

    General Discussion
    3
    10
    901
    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.
    • J
      JoseCampos
      last edited by JoseCampos

      Simple IFTTT + TriggerCMD connection... using voice command on Alexa to trigger and execute one command in my computer. I used all the instructions to perform the connection:
      0.-IF+:ALEXA, THEN+:WEBHOOK
      1.-URL: https://www.triggercmd.com/api/ifttt?trigger=mytrigger&computer=mycomputer
      2.-Method POST
      3.-Content type: application/x-www-form-urlencoded
      4.-Body: token=mytokenXYZ (taking care of no blank spaces...)

      IFTTT answers: "Unable to make web request. Your server returned a 400"

      If I delete in the URL field "computer=mycomputer", ITFFF answers: "Unable to make web request. Your server returned a 403".

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @JoseCampos
        last edited by Russ

        @JoseCampos, I tried it myself and it worked for me. I wonder if you're using the bookmark token, not the one on the Instructions page? The bookmark token won't work.

        Or, maybe you're using the voice field value for either the trigger or the computer? That won't work either.

        My URL is: https://www.triggercmd.com/api/IFTTT?trigger=calculator&computer=ds
        My method: POST
        My content type: application/x-www-form-urlencoded
        My body: token=eyJ.... (with no spaces)

        Russell VanderMey

        ipaivaipI 1 Reply Last reply Reply Quote 0
        • ipaivaipI
          ipaivaip
          last edited by ipaivaip

          @Russ

          @Russ said in Simple IFTTT - TriggerCMD connection:

          @JoseCampos, I tried it myself and it worked for me. I wonder if you're using the bookmark token, not the one on the Instructions page? The bookmark token won't work.

          Or, maybe you're using the voice field value for either the trigger or the computer? That won't work either.

          My URL is: https://www.triggercmd.com/api/IFTTT?trigger=calculator&computer=ds
          My method: POST
          My content type: application/x-www-form-urlencoded
          My body: token=eyJ.... (with no spaces)

          I am facing the same issue. I used to use http protocol all the time, so I am sure it's simple. But this IFTTT config is messing something around, I guess

          Here is my settings. I double checked the the values for computer name and trigger. Also checked for extra spaces or blank characters.

          The trigger works just fine, and I'm able to run it from web using parameters button. Also I realized that my token, from instruction page are always refreshing. I tried using a fresh new one from this page, and also tried using my token from C:\Users{{my_user}}.TRIGGERcmdData\token.tkn

          None of them works.... I have no idea if it is an authentication problem, or some typo, etc... I have no clue of what I'm missing.... 😞

          1fd38fb2-351c-4649-b621-1f1570fdc287-image.png

          1cdd3e68-f619-481b-bcc1-35f005b8b5eb-image.png

          55379ee8-a891-4de6-96e4-06a00af92131-image.png

          0cb2080b-8b2c-466b-97eb-90c4a1182f0d-image.png

          1 Reply Last reply Reply Quote 0
          • ipaivaipI
            ipaivaip @Russ
            last edited by

            @Russ

            @Russ said in Simple IFTTT - TriggerCMD connection:

            @JoseCampos, I tried it myself and it worked for me. I wonder if you're using the bookmark token, not the one on the Instructions page? The bookmark token won't work.

            Or, maybe you're using the voice field value for either the trigger or the computer? That won't work either.

            My URL is: https://www.triggercmd.com/api/IFTTT?trigger=calculator&computer=ds
            My method: POST
            My content type: application/x-www-form-urlencoded
            My body: token=eyJ.... (with no spaces)

            Also tried removing underscores "_" as pointed in this topic, but it didn't make any difference. I'm still stuck
            https://www.triggercmd.com/forum/topic/283/can-t-make-get-api-work/3

            RussR 1 Reply Last reply Reply Quote 0
            • RussR
              Russ @ipaivaip
              last edited by

              @Ícaro-Paiva, are you aware there's an official TRIGGERcmd IFTTT integration now? So you don't have to use the Webhook method anymore. I recommend trying that if you haven't.

              If you know that, but you still want to use the Webhook method, we can try to figure it out. I don't yet know why it's not working for you. I just tried it myself and it worked for me with the settings below.

              Either of the two places you found the token should be fine. Also when I intentionally used a bad token, I got a 401 instead of a 400 like you got.

              7a2eef42-1e3f-4fe6-9ef7-bd803c8d62fb-image.png

              Your screenshot looks good, but this is the text version of my URL if you want to try a copy/paste.
              https://www.triggercmd.com/api/IFTTT?trigger=calculator&computer=russhp&params=russ

              Russell VanderMey

              ipaivaipI 1 Reply Last reply Reply Quote 0
              • ipaivaipI
                ipaivaip @Russ
                last edited by ipaivaip

                @Russ

                @Russ said in Simple IFTTT - TriggerCMD connection:

                @Ícaro-Paiva, are you aware there's an official TRIGGERcmd IFTTT integration now? So you don't have to use the Webhook method anymore. I recommend trying that if you haven't.

                If you know that, but you still want to use the Webhook method, we can try to figure it out. I don't yet know why it's not working for you. I just tried it myself and it worked for me with the settings below.

                Either of the two places you found the token should be fine. Also when I intentionally used a bad token, I got a 401 instead of a 400 like you got.

                7a2eef42-1e3f-4fe6-9ef7-bd803c8d62fb-image.png

                Your screenshot looks good, but this is the text version of my URL if you want to try a copy/paste.
                https://www.triggercmd.com/api/IFTTT?trigger=calculator&computer=russhp&params=russ

                About that.... I saw there was a official TRIGGERcmd IFTTT integration, but forgot to mention it. The point is that it doesn't list my "other's computers list" shared with me, wich is exactly what I'm trying to reach.

                aeabd2f4-7be3-4901-800d-0c5ad20519f6-image.png

                Do you think this problem has something to do with the "others computers" list ?.... Am I able to trigger a webhook like that? I thought so, because I'm able to trigger it from my account, tapping "TRIGGER" or "PARAMETERS" buttons on "Other User's Computers" page. So it looks natural for me that it could be done. Well, I'm not sure abou that, just wondering...

                Hum.... I'm pretty sure now that it has something to do with it! Sorry, I haven't took this simple and ridiculous test before wasting your time. I have just made a try, triggering a webhook to my owns computer, and it worked perfectly.

                2a23cf06-3a79-4fe5-9d11-03987696930b-image.png

                So, I would appreciate your helping on figuring it out with me why this isn't work !!! Any further information I can provide to you??

                This one works
                https://www.triggercmd.com/api/IFTTT?trigger=Calculadora&computer=notebook

                This one doesn't
                https://www.triggercmd.com/api/IFTTT?trigger=refresh_dataset&computer=gateway&params=b0248ad3-343e-483d-a346-0f01629e2fbd

                RussR 1 Reply Last reply Reply Quote 0
                • RussR
                  Russ @ipaivaip
                  last edited by Russ

                  @Ícaro-Paiva, thank you for telling me the computer is one from your "Other user's computers" list. That doesn't work with the IFTTT API yet, but I'll work on fixing that.

                  EDIT: It's fixed now, so you can trigger commands via the IFTTT Webhook api. Please try it.
                  Soon I'll also add the commands on the computers in your "Other User's Computers" list to the list of commands you can pick from the native TRIGGERcmd IFTTT integration too.

                  Russell VanderMey

                  ipaivaipI 1 Reply Last reply Reply Quote 0
                  • ipaivaipI
                    ipaivaip @Russ
                    last edited by ipaivaip

                    @Russ

                    @Russ said in Simple IFTTT - TriggerCMD connection:

                    @Ícaro-Paiva, thank you for telling me the computer is one from your "Other user's computers" list. That doesn't work with the IFTTT API yet, but I'll work on fixing that.

                    EDIT: It's fixed now, so you can trigger commands via the IFTTT Webhook api. Please try it.
                    Soon I'll also add the commands on the computers in your "Other User's Computers" list to the list of commands you can pick from the native TRIGGERcmd IFTTT integration too.

                    Dude! You're monster! Tks! Tested and approved! It worked like a charm!!!

                    3c877133-8211-4bf3-aa86-251ad62f9b8f-image.png

                    EDIT: It's better than I thought. Now, all the triggers are fully integrated with my alexa device, so that I can control them as well as all other home devices, allowing me to create routines independent of ifttt.

                    It's lately night here in Brazil, but I had to get up when I got your message! Now, I'll sleep better !! Tks again!

                    RussR 1 Reply Last reply Reply Quote 1
                    • RussR
                      Russ @ipaivaip
                      last edited by Russ

                      @Ícaro-Paiva, awesome. Thank you for testing it, and thank you for reporting the problem.

                      Russell VanderMey

                      1 Reply Last reply Reply Quote 0
                      • RussR
                        Russ
                        last edited by Russ

                        @Ícaro-Paiv, as of today you'll also see the commands on "Other User's Computers" in the IFTTT list if you use the official TRIGGERcmd IFTTT integration.

                        Russell VanderMey

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