How to make a HTTP POST to "IFTTT"?

If you have a question or need help, this is the place to be.
rdgerken
Experienced User
Posts: 87
Joined: Fri Sep 21, 2012 7:41 pm

Re: How to make a HTTP POST to "IFTTT"?

Post by rdgerken » Tue Jan 09, 2018 1:21 am

I know this is old, but I just saw these messages.

In order to send a message from IFTTT, you do two things.

1. Set up the webserver plugin on the EG side, and make sure you open/forward a port in your firewall for the incoming traffic.
2. On the maker platform, build an applet, where the action is a webhook. I took the simple approach, and just did a GET, and passed it a URL like this: http://<username>:<password>@<webserveraddress>:<port>/index.html?IFTTT&<EGAction> substituting in the proper values... firing this, you'd get something like: "HTTP.IFTTT [u'ToggleInternet']" in EG - where HTTP is the Webserver plugin prefix, and EGAction is "ToggleInternet" for a payload in my example.

User avatar
kgschlosser
Site Admin
Posts: 4623
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: How to make a HTTP POST to "IFTTT"?

Post by kgschlosser » Tue Jan 09, 2018 8:17 am

I completely forgot to place a response in this thread. we have updated the requests library for the next release of EG (i think :shock:) I believe that fixes the issue with the missing ssl cert. I don't recall tho. I know this issue came up before as well... maybe search the forum for requests ssl

(and yes you can search for 3 letter/digits i updated the search index to support this)
If you like the work I have been doing then feel free to Image

jachin99
Experienced User
Posts: 582
Joined: Sat Feb 13, 2016 8:39 pm

Re: How to make a HTTP POST to "IFTTT"?

Post by jachin99 » Tue Jan 09, 2018 1:52 pm

I forgot this was here also. At one point this was a big deal for me because i was trying to use it in combination with google home to control WMC. Thanks for posting, and I'll have to try this at some point.

skribb
Experienced User
Posts: 223
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

Re: How to make a HTTP POST to "IFTTT"?

Post by skribb » Sat Mar 24, 2018 7:55 pm

You an also add IFTTT as a device in Autoremote and then send msg via autoremote to IFTTT webhooks :D
Automation is life.

Win7 64bit
EG: v0.5.0-rc4

Medy
Posts: 42
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: How to make a HTTP POST to "IFTTT"?

Post by Medy » Sat Aug 18, 2018 6:51 am

but you cant add ifttt to the eventgost autoremote plugin ?
Last edited by Medy on Sat Aug 18, 2018 7:52 am, edited 1 time in total.

Medy
Posts: 42
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

Re: How to make a HTTP POST to "IFTTT"?

Post by Medy » Sat Aug 18, 2018 6:59 am

I didnt find anything ... how to fix ssl error ?
Im just dong simple http get

Code: Select all

import requests

r = requests.get('https://maker.ifttt.com/trigger/msg_from_wemoon/with/key/APIKEY)

Edit :Forum search didnt turn up anything ... I did some googling and found this fix here :
viewtopic.php?f=15&t=10066&p=50084#p50084

Code: Select all

import os

os.environ['REQUESTS_CA_BUNDLE'] = r'C:\EventGhostNEW\lib27\site-packages\requests\cacert.pem'
issue is related to evenghost version // ssl certificate

skribb
Experienced User
Posts: 223
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

Re: How to make a HTTP POST to "IFTTT"?

Post by skribb » Sat Aug 18, 2018 1:42 pm

Medy wrote:
Sat Aug 18, 2018 6:51 am
but you cant add ifttt to the eventgost autoremote plugin ?
Dunno. Ask on the autoapps forums
Automation is life.

Win7 64bit
EG: v0.5.0-rc4

User avatar
kgschlosser
Site Admin
Posts: 4623
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: How to make a HTTP POST to "IFTTT"?

Post by kgschlosser » Sat Aug 18, 2018 1:59 pm

The fix as been added but is not yet included in any release or pre release. if you click on the build button at the top of the forum you will be able to download and install the latest stable build of EG. This build will have the fix to the ssl issue included in it.
If you like the work I have been doing then feel free to Image

tiwas
Posts: 4
Joined: Fri Mar 22, 2019 2:53 pm

Re: How to make a HTTP POST to "IFTTT"?

Post by tiwas » Sat Mar 23, 2019 2:35 pm

Anyone found a good, durable solution?

Post Reply