HTTPd Plugin for IFTTT Maker integration

Posted on
Mon Nov 28, 2016 9:58 am
FlyingDiver offline
Posts: 1531
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: HTTPd Plugin for IFTTT Maker integration

ChopOMatic wrote:
Now I just need to figure out how to send a similar web request FROM Indigo. That will let me trigger Tasker on my phone to handle the few things I can't do directly from within Indigo. (UPDATE: Easy as pie with an AppleScript. Done.)


Probably just as easy with Python, and more future proof. Something like:

Code: Select all
import requests

requests.get("https://maker.ifttt.com/trigger/<<your applet>>/with/key/<<your key>>")

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Nov 28, 2016 10:17 am
Different Computers offline
User avatar
Posts: 1034
Joined: Jan 02, 2016
Location: East Coast

Re: HTTPd Plugin for IFTTT Maker integration

You can also do this with an URL Extension via the EPS Device Extensions plugin. This has the advantage of making an Indigo device that sends the URL. It can send a different one for on and off and toggle. This is why I said talking TO IFTTT is easy. Getting IFTTT to talk to Indigo was the problem before I saws the HTTPd plugin.

Refugee from SmartThings and so happy to be on Indigo now.
Sierra on an i5 running Harmony Hub, Hue, Security Camera, DomoPad, EPS Device Extensions EPS Smart Dimmer, MatplotLib, Plex, Scale Adapters, uniFiAP, Wunderground.

Posted on
Mon Nov 28, 2016 1:30 pm
Woetjes offline
Posts: 92
Joined: Apr 04, 2016
Location: Belgium

Re: HTTPd Plugin for IFTTT Maker integration

Thanks Joe - I've got it working. I was planning to use this to connect my Ring doorbell to Indigo but it seems there is a 15m delay from IFTTT... so not really ideal in this case.
Will use your betteremail plugin in this case as that is almost instant :)

Posted on
Mon Nov 28, 2016 1:32 pm
FlyingDiver offline
Posts: 1531
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: HTTPd Plugin for IFTTT Maker integration

Woetjes wrote:
Thanks Joe - I've got it working. I was planning to use this to connect my Ring doorbell to Indigo but it seems there is a 15m delay from IFTTT... so not really ideal in this case.
Will use your betteremail plugin in this case as that is almost instant :)


I don't think that's typical. While I've been testing, it's usually very quick.

I just tested it. Request on my local LAN was received in under a second. Sending a Maker request to IFTTT activated the incoming connection in under 3 seconds.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Nov 28, 2016 1:44 pm
FlyingDiver offline
Posts: 1531
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: HTTPd Plugin for IFTTT Maker integration

v0.0.2 available using the built in updater, or from GitHub.

Added event triggers
Better debug logging
Different default port

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Nov 28, 2016 1:50 pm
Woetjes offline
Posts: 92
Joined: Apr 04, 2016
Location: Belgium

Re: HTTPd Plugin for IFTTT Maker integration

Hmm.. on my LAN it's also almost instant but I've tested it again and the delay is still there.. Anyway, maybe it's because I'm located in EU :)

Posted on
Mon Nov 28, 2016 1:56 pm
FlyingDiver offline
Posts: 1531
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: HTTPd Plugin for IFTTT Maker integration

Woetjes wrote:
Hmm.. on my LAN it's also almost instant but I've tested it again and the delay is still there.. Anyway, maybe it's because I'm located in EU :)


I wonder if IFTTT uses different servers for US vs EU? The latest version logs the IP address of the host the request came from. Might be interesting to compare them.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Nov 28, 2016 2:03 pm
Woetjes offline
Posts: 92
Joined: Apr 04, 2016
Location: Belgium

Re: HTTPd Plugin for IFTTT Maker integration

I tested it again and now it was a lot quicker (3s), I'll do some more testing later today/tomorrow. The IP I got was 54.235.233.240.

Posted on
Mon Nov 28, 2016 2:13 pm
FlyingDiver offline
Posts: 1531
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: HTTPd Plugin for IFTTT Maker integration

Woetjes wrote:
I tested it again and now it was a lot quicker (3s), I'll do some more testing later today/tomorrow. The IP I got was 54.235.233.240.


compute-1.amazonaws.com network, same as I'm getting.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Nov 29, 2016 1:51 pm
FlyingDiver offline
Posts: 1531
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: HTTPd Plugin for IFTTT Maker integration

If users of this plugin see something like this in your logs, it's not a plugin issue:

Code: Select all
   HTTPd Debug                     AuthHandler: POST from 85.98.127.35:52217 to /UD/act?1
   HTTPd Debug                     AuthHandler: POST from 85.98.127.35:52222 to /UD/act?1
   HTTPd Debug                     AuthHandler: POST from 85.98.127.35:52223 to /UD/act?1


This is a known malware attacking DSL modems that's probing for vulnerabilities on your network. It just happened to pick the port that HTTPd is running on. I don't do anything with POST requests at all, and the logging is only there to testing purposes.

https://isc.sans.edu/forums/diary/Port+ ... ems/21759/

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sat Mar 25, 2017 12:11 am
spiv offline
Posts: 113
Joined: Jul 15, 2014

Re: HTTPd Plugin for IFTTT Maker integration

Has anyone tried this with Stringify instead of IFTTT?

Posted on
Mon May 15, 2017 6:15 am
Wizard Sleeve offline
Posts: 15
Joined: Feb 11, 2008
Location: Berkshire, United Kingdom

Re: HTTPd Plugin for IFTTT Maker integration

Hi just got this setup and working and it inputs in to a variable from IFTTT..Great thanks.

Now my first project to use it for is I have a internet connected washing machine that posts to IFTTT upon completion of a wash. Ive got that sending a "1" to the variable "WashingMachine". Is there anyway to send a incremental value to the variable or shall I set it up in Indigo to keep changing the Value back once its recieved the one and passed it on to do something. It would be quite nice to have a incremental value just to show how many times I've run the machine in its life. I suppose I could have a second variable that gets updated to show this but just wonder if it could be done directly.

Thanks

Lee

Posted on
Mon May 15, 2017 7:16 am
FlyingDiver offline
Posts: 1531
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: HTTPd Plugin for IFTTT Maker integration

That would require a different action in the plugin (increment instead of set). While it's possible to add that, it's not in there now. So I recommend using two variables. Trigger on the httpd_XXX variable, and increment a different one when that one gets set. You can increment the counter and reset the flag in the same trigger/event.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue May 16, 2017 3:57 am
Wizard Sleeve offline
Posts: 15
Joined: Feb 11, 2008
Location: Berkshire, United Kingdom

Re: HTTPd Plugin for IFTTT Maker integration

Thanks

Thats exactly what I ended up doing and works perfectly.

Just for comparison for others I'm getting about 3s between the Direct notification on the Samsung Washer app that the washer has finished and the Notification that goes Samsung Washer > IFTTT > Indigo > Growl > Prowl on IOS. Which i think is pretty good in this use.

Thanks for your work on this

Lee

Posted on
Sat Jun 17, 2017 2:31 pm
vtmikel offline
Posts: 118
Joined: Aug 31, 2012
Location: Washington, DC

Re: HTTPd Plugin for IFTTT Maker integration

FlyingDriver,

How hard would it be to modify to make this a HTTPS server? Any idea if IFTTT would allow their web request over HTTPS with a self-signed certificate? The non-HTTPS is making me nervous, but I'm considering using your plugin to report the lock state of my August lock to Indigo.

Mike

Who is online

Users browsing this forum: No registered users and 1 guest