IFTTT webhooks JSON and HTTP controller

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
quajetson
New user
Posts: 7
Joined: 28 Nov 2018, 17:33

IFTTT webhooks JSON and HTTP controller

#1 Post by quajetson » 22 Mar 2019, 11:15

Hi all. Need some help.


Has anyone managed to send a web query to IFTTT web hooks with json parameters.
So far, I managed to activate the event using both Generic HTTP and ADVENCED controller.

To trigger event on ifttt i'm using

Make a POST or GET web request to:
https://maker.ifttt.com/trigger/{event} ... jfhfdjldgb

eg
https://maker.ifttt.com/trigger/start/w ... jfhfdjldgb

this works fine with simple button switch & sending http reguest to ifttt.
IFTTT ran script that sends me email when event (start) is triggered

Need this as standalone notification. (email notification with smtp2go not working form me)

Ifttt webhooks has possibility to get 3 params from request, but must be in json format eg
{ "value1" : "122", "value2" : "124", "value3" : "99" }

Can also deal with curl
curl -X POST -H "Content-Type: application/json" -d '{"value1":"122","value2":"124","value3":"99"}' https://maker.ifttt.com/trigger/{event} ... dgkdsjkdsb


I need help in creating a proper http query to Generic HTTP advenced. Can anyone help with json?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: IFTTT webhooks JSON and HTTP controller

#2 Post by grovkillen » 22 Mar 2019, 11:29

You will not be able to httpS directly from ESP Easy. You need to have a relay server for that...
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

quajetson
New user
Posts: 7
Joined: 28 Nov 2018, 17:33

Re: IFTTT webhooks JSON and HTTP controller

#3 Post by quajetson » 22 Mar 2019, 12:37

No need https. Ifttt accept http requests.

I have a working trigger example, but I can not send the required parameters. Email comes without data
What: start
When: March 22, 2019 at 10:46AM
Extra Data: , ,
Ifttt need json parameters in HTTP Body: value1....3 this is unchangeable
{ "value1" : "%iswifi%", "value2" : "%unit%", "value3" : "%sysheap%" }

It is important that the address of the trigger can not be sent via sendToHTTP.
It must be set in the http controller and triggered with button switch

Controller setup Http advenced

Locate Controller: Use hostname
Controller Hostname: maker.ifttt.com
Controller port :80

HTTP URI field in controller
maker.ifttt.com/trigger/{eventCreatedInIftt}/with/key/yourpersonalIFTTkey
rest no changed

I think the matter is worth attention because notifications are an important part of this type of system.
The built-in notification system does not work.
The last two providers make it difficult to use them - Gremany blocking the account right after registration, etc ...
smtp2go needs domain for free usage

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 60 guests