HTTPd Plugin (useful for IFTTT Maker integration)

User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: HTTPd Plugin for IFTTT Maker integration

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: HTTPd Plugin for IFTTT Maker integration

Post by FlyingDiver »

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
Woetjes
Posts: 117
Joined: Mon Apr 04, 2016 6:44 am
Location: Belgium

Re: HTTPd Plugin for IFTTT Maker integration

Post by Woetjes »

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 :)
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: HTTPd Plugin for IFTTT Maker integration

Post by FlyingDiver »

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
Woetjes
Posts: 117
Joined: Mon Apr 04, 2016 6:44 am
Location: Belgium

Re: HTTPd Plugin for IFTTT Maker integration

Post by Woetjes »

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.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: HTTPd Plugin for IFTTT Maker integration

Post by FlyingDiver »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: HTTPd Plugin for IFTTT Maker integration

Post by FlyingDiver »

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
spiv
Posts: 190
Joined: Tue Jul 15, 2014 2:25 pm

Re: HTTPd Plugin for IFTTT Maker integration

Post by spiv »

Has anyone tried this with Stringify instead of IFTTT?
Wizard Sleeve
Posts: 71
Joined: Mon Feb 11, 2008 6:18 am
Location: Berkshire, United Kingdom

Re: HTTPd Plugin for IFTTT Maker integration

Post by Wizard Sleeve »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: HTTPd Plugin for IFTTT Maker integration

Post by FlyingDiver »

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
Wizard Sleeve
Posts: 71
Joined: Mon Feb 11, 2008 6:18 am
Location: Berkshire, United Kingdom

Re: HTTPd Plugin for IFTTT Maker integration

Post by Wizard Sleeve »

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
vtmikel
Posts: 717
Joined: Fri Aug 31, 2012 12:45 pm
Location: Boston, MA
Contact:

Re: HTTPd Plugin for IFTTT Maker integration

Post by vtmikel »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: HTTPd Plugin for IFTTT Maker integration

Post by FlyingDiver »

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
vtmikel
Posts: 717
Joined: Fri Aug 31, 2012 12:45 pm
Location: Boston, MA
Contact:

Re: HTTPd Plugin for IFTTT Maker integration

Post by vtmikel »

Will do, thanks. And sorry for the typo!
User avatar
mundmc
Posts: 1068
Joined: Fri Sep 14, 2012 4:34 pm

Re: HTTPd Plugin for IFTTT Maker integration

Post by mundmc »

Following this.

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

Return to “Discontinued Plugins”