Charmed Quark Systems, Ltd. - Support Forums and Community
Train HTTP Trigger Driver - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: Installation/Configuration (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=10)
+--- Thread: Train HTTP Trigger Driver (/showthread.php?tid=9384)

Pages: 1 2 3


Train HTTP Trigger Driver - Dean Roddey - 06-26-2015

Does this require that you expose your CQC Web Server to the net?


Train HTTP Trigger Driver - jkmonroe - 06-26-2015

yeah, i had to port forward so ifttt could hit the trigger driver.


Train HTTP Trigger Driver - Dean Roddey - 06-26-2015

That's fairly dangerous to do.


Train HTTP Trigger Driver - Deane Johnson - 06-26-2015

Dean Roddey Wrote:That's fairly dangerous to do.
Why, what might happen?

I assume mine is exposed to the net as the only pc my CQC is on is also connected to the router.


Train HTTP Trigger Driver - wuench - 06-26-2015

How are you triggering the maker event? I just tested this out, created a Do button on Android to send a URL to HTTP Driver via Maker. It just makes the Elk announce "Test". It is taking around 15 seconds. Looks like it connects to the socket in around 7 seconds then takes another 7 or so to send the GET. CQC's response is less than a second.... I wonder how much of the delay is because I am using IFTT Do Button.

BTW, I have two copies of the HTTP driver running, one for external access that can't do dangerous stuff and one for local LAN access....


Train HTTP Trigger Driver - Dean Roddey - 06-26-2015

Deane Johnson Wrote:Why, what might happen?

I assume mine is exposed to the net as the only pc my CQC is on is also connected to the router.

Unless you explicitly forward ports to the router, nothing on your machine is available to the outside world. It can only make outgoing connections, nothing form the outside can directly connect to it.

Once you port forward it, then it's available for anyone to connect to. There are lots of folks out there who do nothing but run computers that try ever IP address and probe every port to see what is exposed. They would easily figure out it's a web server.

It would not be obvious to them how to take advantage of that. But there would be nothing hiding the fact that it's a CQC web server or trigger driver. Given that CQC is not widely known, that might also not provide a lot of useful info.

But still, it's not something you would generally want to do if there's another way to do what you need to.


Train HTTP Trigger Driver - jkmonroe - 06-26-2015

I did an IF Receive Web Request THEN Send Web Request.

For the Receive Web, I named my event test and copied the URL it provided me with my secret key in it.

For the Send Web Request, I simply put in http://domain:port/string Method POST and Content Text/Plain.

When you go to my Receive Web Request test url string, it turns on the light in my master bedroom.

For what you're attempting, just do it direct - make a shortcut on your phone home screen that goes right to your HTTP Server.


Train HTTP Trigger Driver - jkmonroe - 06-26-2015

I worry about hackers like I worry about a car accident. Sure, there's always a chance, but I still drive every day. Smile


Train HTTP Trigger Driver - jkmonroe - 06-26-2015

OK, so I can trigger things to happen in my home from the HTTP Trigger and IFTTT, which is neat. Now I need to figure out how to have CQC use IFTTT to send notifications down to my phone.

Should be easy because each 'event' that I create in IFTTT Receive is unique. So I could trigger off of my Nest to throw a notification if the house gets above 80 or something.

There is a System::HTTPGet that has some options I am going to try to see if it will work.

SO MUCH FUN!


Train HTTP Trigger Driver - jkmonroe - 06-26-2015

Well, that works, too.

Time from triggering action to iOS notification was maybe 2 seconds.

SUPER EXCITED!