Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

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: 89
Joined: Fri Sep 21, 2012 7:41 pm

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

Post by rdgerken »

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: 5190
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 »

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: 614
Joined: Sat Feb 13, 2016 8:39 pm

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

Post by jachin99 »

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: 228
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

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

Post by skribb »

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
Experienced User
Posts: 87
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

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

Post by Medy »

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
Experienced User
Posts: 87
Joined: Sat Nov 15, 2014 8:33 pm
Location: Germany

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

Post by Medy »

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: 228
Joined: Thu Feb 12, 2015 7:22 pm
Location: Win7 64bit

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

Post by skribb »

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: 5190
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 »

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 »

Anyone found a good, durable solution?
Post Reply