In this tutorial we will cover IFTTT. What is it? How can we use it. Writing a simple service with IFTTT and how it can be implemented with IOT. The Steps will include setting up your IFTTT account and the steps to follow to make the service complete. This service can be integrated with Windows embedded and using Visual Studio can be programmed and used.
What is IFTTT?
IFTTT is a web service which allows other services to be programmed by means of simple conditional Statements called recipes.
Let’s look at what IFTTT comprises of as per their website information:-
Channels are the basic building blocks of IFTTT. Each Channel has its own Triggers and Actions
The this part of a Recipe is a Trigger. Some example Triggers are “I’m tagged in a photo on Facebook” or “I check in on Foursquare.”
The that part of a Recipe is an Action. Some example Actions are “send me a text message” or “create a status message on Facebook.”
Pieces of data from a Trigger are called Ingredients. For example, the Ingredients of an Email Trigger could be: subject, body, attachment, received date, and the sender’s address.
Personal Recipes are a combination of a Trigger and an Action from your active Channels
On / Off
Personal Recipes can be turned on and off. When turned back on, they pick up as if you had just created them.
Most Personal Recipes check for new Trigger data every 15 minutes, some are even faster
Lets look at a process of creating a IFTTT service.
i)First of all you need to sign or register for the service
ii)To start with you need to create a recipe
iii)Conditional statements to start with THIS option. It is a way to create the logic of the web service we are planning to do the whole process of creating a recipe goes through series of steps. THIS is a start point of activating the trigger .After that you are followed by activating the trigger.
iii)Now you have to select a channel for a trigger. There are about 148 channels to choose from. As you choose the channel you need to activate the channel for the trigger.
iv)To complete the logic of THAT we need to create an Action channel. You have to choose from Action channels available. We need to fill up the Action fields then create the Action and the logic of the Web Service will be complete.
Here is the flow of the entire logic
Now what we will do is create a simple web service with IFTTT to see what we can do with it.
We will go through creating a trigger .
We follow the same methodology with Conditional Statements
where IF is our ESPN Channel and that is our Dropbox service.
Joining the IFTTT service
You need to create an account
You need to follow steps to create your own recipe first
You need to click on the use button to get started.
Now it will take you to the page where you the option of Creating recipes from My recipes personal section and then create a recipe link button in personal section
Now here is the turn to us conditional statements you need to click on THIS option
Now you need to choose a trigger channel we choose ESPN and click on it
Now you need to activate the channel and click on activate
You will get another activate button you need to click it
After this step you need to click on done.
You need to activate the ESPN Channel
You need to click on continue to next step
Next step is to choose a trigger
We chose breaking top news
Now you will have options for completing trigger fields click on create trigger
Now is the last logic for the conditional statement to complete the recipe creation .We need to click on
THAT to continue
Now you will have to choose an action channel we choose Dropbox and click on it
You need to activate the Dropbox channel
As you will be accessing Dropbox the service will ask to access the folders .You need to click on allow
Now on the next scene you will get Dropbox activated and you need to click on Done
You need to click on activate for Dropbox action channel to get activated.
For activation to go to next step you need to click on activate the Dropbox channel
You need to perform an action now we choose Create a text file
Now we need to complete action fields
As all the steps concludes you need to Create and Activate the recipe
Click on create recipe
After that you will see that the recipe is created
Here We have created IFTTT service involving two channels One for the THIS condition that is the ESPN channel THAT being Dropbox channel
How can we use it in Arduino based board
Lets get to know what we will implement A Game score that will result generating the trigger and saving it in a text format in Dropbox folder
The Workaround given in BigButtonFun.com
We will have to setup Arduino/Intel Galileo to go to the webpage that we will create. The Webpage wil work as ESPN scores are updated and as the trigger updates(button) with the score changes or when it writes in Dropbox.
The things you will need to get the IFTTT service working with Arduino/Intel Galileo
i)A hosted Website(using Visual Studio 2013)
iii)Arduino/Intel Galileo Board
v) Hookup Board, Resistors and mini Bread board
As I don’t have a Arduino/Galileo board here with me now I will not be able to test it but as soon I get one my work will continue.This is the logic behind working of IFTTT with Arduino and we have referenced it from Bigbutton.com and Instructables.com
TIPS AND TRICKS
i)The whole process of creating a recipe involves using the Conditional statements IF and THAT
ii)You can easily use the web service and start talking to IOT based devices
iii)Remember you cannot use same Channels for IF and THAT conditional Statements.
iv)IFTTT comprises of certain buttons for the service
Turn recipe off-> It will turn off the recipe we are using
Check recipe now-> It Checks the working of the recipe when you click the button it will show a green light that suggests recipe is working
View recipe logs-> It will show the logs of the recipe when it was triggered
Edit recipe, delete ,view its logs-> This will show the total working of the recipe and all possible modifications we can do.
A little note to end this blog.Angel always wanted this to get published dedicating this blog again to angel.One of the best budding developer around “Angel” this goes for you.Thanks everybody my journey to learn IOT has just started there is more to come.