HTTPd Plugin (useful for IFTTT Maker integration)

Posted on
Mon Nov 28, 2016 1:32 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

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
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

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: 117
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
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

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: 117
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
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

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
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

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: 190
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: 63
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
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

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: 63
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: 628
Joined: Aug 31, 2012
Location: Boston, MA

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

Posted on
Sat Jun 17, 2017 2:51 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: HTTPd Plugin for IFTTT Maker integration

FlyingDiver, not FlyingDriver. :)

Actually, it looks like it could be fairly easy. But I'm currently typing one handed due to shoulder surgery last month, so I'm not doing any coding right now.

Please open an issue in the GitHub repository so I don't forget. https://github.com/FlyingDiver/Indigo-HTTPd/issues

joe

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

Posted on
Sat Jun 17, 2017 3:05 pm
vtmikel offline
Posts: 628
Joined: Aug 31, 2012
Location: Boston, MA

Re: HTTPd Plugin for IFTTT Maker integration

Will do, thanks. And sorry for the typo!

Posted on
Fri Jul 07, 2017 8:29 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: HTTPd Plugin for IFTTT Maker integration

Following this.

Apologies if I missed this, but does this work with digest authentication?

Who is online

Users browsing this forum: No registered users and 0 guests