HTTP Request Not Firing
-
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 -
@al-mastro, can I see your full command text or the batch file you're using? Also, are you using curl?
-
@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 simplicityIt might help to mention that this is only going to be triggered within a Local network.
-
@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.
-
@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. -
@al-mastro, awesome. You're welcome. I'm glad that worked.