Hi,
Just want to send a simple api to ifttt to trigget the ifttt webhook.
e.g on pressing a switch send below api:
ie: https://maker.ifttt.com/trigger/switchp ... /secretkey
Using Wemos; Espeasy Mega
I tried following set up but does not work:
controller settings:
locate controller: use host name
host name: maker.ifttt.com
controller publish: /trigger/switchpressed/with/key/secretkey
In device setting, I just setup up a simple switch which trigger the controller to on state change to send the http request.
Rules setup in ifttt is looking for the event "switchpressed", and tested ok by just typing "https://maker.ifttt.com/trigger/switchp ... /secretkey" in a browser.
I am obviously missing something. Still a beginner, so any advice will be appreciated. Also wanted to learn more about http request with espeasy.
Thanks,
How to use generic http to trigger webhook in ifttt?
Moderators: grovkillen, Stuntteam, TD-er
Re: How to use generic http to trigger webhook in ifttt?
Maybe you can post some screenshots and rules if you use them?
Just make sure you don't include the 'secretkey'
Also, can you count the total length of the URL you try to send?
There might be some limit on that at the moment.
Just make sure you don't include the 'secretkey'
Also, can you count the total length of the URL you try to send?
There might be some limit on that at the moment.
Re: How to use generic http to trigger webhook in ifttt?
Thanks for the suggestions, after few hrs of trial n error,I managed to get it to work. In the "publish" field, I should leave out the "/", i.e just:
" trigger/switchpressed/with/key/secretkey" and not "/trigger/switchpressed/with/key/secretkey".
Also note to leave out the "https://" in the host name field
I am glad that espeasy handle https so easily without any cert declarations etc.
So all good. that take care of simple "get" htmls, the advance http device looks interesting, anyone have an example to "post" with it.
Its great now I can have esp interaction ifttt without having to use Adafruio.io's mqtt.
" trigger/switchpressed/with/key/secretkey" and not "/trigger/switchpressed/with/key/secretkey".
Also note to leave out the "https://" in the host name field
I am glad that espeasy handle https so easily without any cert declarations etc.
So all good. that take care of simple "get" htmls, the advance http device looks interesting, anyone have an example to "post" with it.
Its great now I can have esp interaction ifttt without having to use Adafruio.io's mqtt.
Re: How to use generic http to trigger webhook in ifttt?
I am not sure it will actually do https calls. I think it is just doing http.
Who is online
Users browsing this forum: No registered users and 139 guests