IFTTT¶
Getting started with IFTTT¶
We built the IFTTT modules to give you even more flexibility with your automations by letting you exchange data between a scenario on Ibexa Connect and an applet on IFTTT.
Currently, the following modules are available:
Trigger: Receive data from an applet
Action: Send data to an applet
The above modules also allow you to connect and control arbitrary IoT devices connected to IFTTT.
Receive data¶
Using the Receive data module, you can get data from an arbitrary trigger in the IFTTT applet. Follow the steps below to achieve this:
-
Create a new applet on IFTTT or go to an existing one that contains the trigger from which you'd like to send data to Ibexa Connect
- Insert the action Webhook - Make a web request. The applet should look like: If Your trigger then Webhook - Make a web request
-
Create a new scenario on Ibexa Connect using IFTTT - Receive data as the first module
- Click the 'Add' button to create a new webhook
-
Name your webhook and click Save
-
Copy the newly generated webhook URL and let the webhook wait to receive sample data
-
Go to IFTTT and in the settings of the Webhook - Make a web request action fill in the following values:
- URL: Paste the webhook URL obtained from Ibexa Connect in the previous step
- Method: POST
- Content Type: application/json
- Body: JSON with data you want to send to Ibexa Connect
Example JSON:
1 2 3 4 |
|
The JSON can contain an arbitrary amount of values. Value1Label is a label how the value will be presented in Ibexa Connect. {{Value1}} is an ingredient from the IFTTT trigger.
-
Turn your IFTTT applet on and run it once. This will send sample data to the Ibexa Connect webhook which had been listening for data
-
Once the webhook receives the sample data, click 'OK' to continue and use the data received from IFTTT in subsequent modules of your Ibexa Connect scenario.
Complete your scenario in Ibexa Connect and turn it on.
Send data¶
Follow the steps below to send data from Ibexa Connect to a trigger in an IFTTT applet and run any IFTTT action using the Send data module:
-
Create a new applet on the IFTTT Platform (https://platform.ifttt.com/)
- Use Webhooks - Receive a web request as the trigger for your applet
- Scroll below to enter an event name which you will need to enter when setting up the module on Ibexa Connect
-
Insert the action you want to control from Ibexa Connect. The applet should look like: If Webhooks - Receive a web request then Your action
-
Activate your applet.
-
Go to Ibexa Connect and insert the module IFTTT - Send data to your scenario that shall send data to IFTTT
-
Go to https://ifttt.com/maker_webhooks, click 'Documentation*'* on the upper-right corner and copy your key from the documentation page
-
Click 'Add' next to the Connectiondrop-down to create a new connection between Ibexa Connect and IFTTT. You will be requested to fill in the key obtained in the last step
-
Enter the event name that you had entered when creating the applet on IFTTT
-
Lastly, map the data in the fields Value1, Value2, and Value3. These values will be sent to IFTTT
-
Once your scenario setup on Ibexa Connect is complete, make sure you save it and turn it on to begin sending data to your newly created IFTTT applet. Now you can use this data in subsequent actions in your applet to achieve the intended integration!