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

HTTP Request Not Firing

General Discussion
2
6
286
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 Oct 14, 2019, 9:04 AM

    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

    R 1 Reply Last reply Oct 14, 2019, 2:45 PM Reply Quote 0
    • R
      Russ @al.mastro
      last edited by Oct 14, 2019, 2:45 PM

      @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 Oct 15, 2019, 5:07 AM Oct 15, 2019, 5:06 AM

        @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.

        R 1 Reply Last reply Oct 16, 2019, 1:10 AM Reply Quote 0
        • R
          Russ @al.mastro
          last edited by Oct 16, 2019, 1:10 AM

          @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 Oct 16, 2019, 4:55 AM

            @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.

            R 1 Reply Last reply Oct 16, 2019, 10:30 PM Reply Quote 0
            • R
              Russ @al.mastro
              last edited by Oct 16, 2019, 10:30 PM

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

              Russell VanderMey

              1 Reply Last reply Reply Quote 0
              4 out of 6
              • First post
                4/6
                Last post