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