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

    HTTP Request Not Firing

    General Discussion
    2
    6
    258
    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
      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
        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
          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
            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
              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
                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
                • First post
                  Last post