Introduction
The integration of Thingspeak and IFTTT has proved to be very useful. With the help of simple steps, you can achieve syncing both of them. Thus it is easy to implement in IoT projects. Using it, we can make our automation tasks more practical in daily usage.
Pairing Thingspeak and IFTTT
Before starting the guide, I will assume that we know how to send sensor data to thingspeak. So I will quickly skim through the basic steps. And I will only focus on connecting Thingspeak and IFTTT. Nevertheless, if you want, you can follow this link to learn Thingspeak step by step.
In this post, I will be sending voltage data from a potentiometer to Thingspeak. As soon as the voltage reaches a threshold level set by me I will receive a notification on mobile.
Configuring Thingspeak
First of all, open the Thingspeak website and make an account on it.
After that, make a channel by navigating Channels => My channels => New Channel.
Now add name of the channel. Also the quantity you want to measure in Field 1. After this click on Save Channel Button.
Link this channel with your microcontroller to receive sensor data on it.
We are done with Thingspeak for now. Lets move onto IFTTT.
Configuring IFTTT
Firstly, Download and Install IFTTT App on your Mobile. Then create your account on it.
After that open the IFTTT website on your PC. Log into it using the account you made on IFTTT App.
Then navigate to Create.
Navigate to Add, you will be provided with many different services to choose from. Search for Webhooks
Then open Webhooks.
You will see a page for choosing a trigger. Click on Receive a web request.
After that give an Event Name. Now click on Create trigger.
Navigate to Add. Again, you will be provided with many services. Search for Notifications.
Navigate to the blue notifications icon with a bell and open it.
Then click on Send a notification from the IFTTT app.
Modify the Message as per your wish and click on Create action.
After that click Continue.
Then click Finish
Now click on Webhooks icon.
After that click on Documentation.
Below the heading Make a POST or GET web request, you will find a URL. You would be able to remove the {event}-denoted part of this URL. Fill in the name of the case you just made (THE EXACT SAME NAME- case sensitive!!). Copy this URL.
You can click on Test it to check whether you receive notifications on your mobile or not.
So now we are completely done with IFTTT. Let’s head back to Thingspeak and link both of them.
Linking Thingspeak and IFTTT
On Thingspeak website navigate to Apps and open ThingHTTP. Then click on New ThingHTTP.
Give it a Name.
In URL, paste the URL you copied from the IFTTT Webhooks Documentation page.
Select Method to GET.
Select HTTP Version to 1.1.
After doing this click on Save ThingHTTP.
Then on Thingspeak website navigate to Apps again and open React. Then click on New React.
Give it a name in React Name.
Select Numeric in Condition Type.
Set Test Frequency on On Data Insertion.
In Condition:
1. Set if channel to the channel on which you are sending data.
2. In the field, set the field of the channel you want to monitor. Furthermore, give a condition for it.
Select ThingHTTP in Action. And provide your ThingHTTP Request name in then perform ThingHTTP.
Set Options to Run action each time condition is met.
Click on Save React.
After configuring React and ThingHTTP, send sensor data to your channel.
As soon as the sensor value reaches the threshold provided by you…
..You will receive a notification on your mobile.
So, there it is a rather lengthy but easy process with little or no complexities. Once you learn this, you can use it for any task in your daily life. And constantly monitor the system from anywhere you are.