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

    HTTP Request Not Firing

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 2 Posters 1.0k Views 1 Watching
    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 Offline
      al.mastro
      last edited by

      Hi all
      I am trying to trigger a HTTP request for a lighting control system (vera) to trigger a scene via a URL to an IP address + run a CMD command. When I run the trigger it doesn't input the full URL that entered. Does anyone know why? am I missing something?
      Any help would be great
      Thank you

      RussR 1 Reply Last reply Reply Quote 0
      • RussR Offline
        Russ @al.mastro
        last edited by

        @al-mastro, can I see your full command text or the batch file you're using? Also, are you using curl?

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • A Offline
          al.mastro
          last edited by al.mastro

          @Russ
          "trigger": "scene test ",
          "command": "calc' & Start http://192.168.0.229:3480/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=2",
          "ground": "foreground",
          "voice": "scene one",
          "voiceReply": "",
          "allowParams": "true"

          It runs calc fine and opens up chrome and inputs only a section of the URL (http://192.168.0.229:3480/data_request?)

          Eventually, I want this to run a "shutdown" scene. (replace calc with shutdown in 1 min" ).
          I am not using curl, wanted to try to avoid using that protocol for simplicity

          It might help to mention that this is only going to be triggered within a Local network.

          RussR 1 Reply Last reply Reply Quote 0
          • RussR Offline
            Russ @al.mastro
            last edited by

            @al-mastro, please try this:

            calc & "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "http://192.168.0.229:3480/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=2"
            

            For me it opened calculator and a Chrome tab with that full URL in it.

            Russell VanderMey

            1 Reply Last reply Reply Quote 0
            • A Offline
              al.mastro
              last edited by

              @Russ said in HTTP Request Not Firing:

              calc & "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "http://192.168.0.229:3480/data_request?id=action&output_format=json&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=2"

              Works perfect, I am very happy with the result!
              Thank you.

              RussR 1 Reply Last reply Reply Quote 0
              • RussR Offline
                Russ @al.mastro
                last edited by

                @al-mastro, awesome. You're welcome. I'm glad that worked.

                Russell VanderMey

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post