IFTTT an introduction

Introduction

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

Channels are the basic building blocks of IFTTT. Each Channel has its own Triggers and Actions

Triggers

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.”

Actions

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.”

Ingredients

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.

Recipes

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.

Polling Period

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

https://ifttt.com/join

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

IFTTTflow

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.

Step 1

Joining the IFTTT service

ifttt1

You need to create an account

ifttt2

You need to follow steps to create your own recipe first

You need to click on the use button to get started.

ifttt3

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

ifttt4

Now here is the turn to us conditional statements  you need to click on THIS option

ifttt5

Now you need to choose a trigger channel we choose ESPN and click on it

ifttt6

Now you need to activate the channel  and click on activate

ifttt7

You will get another activate button you need to click it

ifttt8

After this step you need to click on done.

ifttt9

You need to activate the ESPN Channel

ifttt10

You need to click on continue to next step

ifttt11

Next step is to choose a trigger

We chose breaking top news

ifttt12

Now you will have options for completing trigger fields click on create trigger

ifttt13

Now is the last logic for the conditional statement to complete the recipe creation .We need to click on

THAT to continue

ifttt14

Now you will have to choose an action channel we choose Dropbox and click on it

ifttt15

You need to activate the Dropbox channel

ifttt16

As you will be accessing Dropbox the service will ask to access the folders .You need to click on allow

ifttt17

Now on the next scene you will get Dropbox activated and you need to click on Done

ifttt18

You need to click on activate for Dropbox action channel to get activated.

ifttt19

For activation to go to next step you need to click on activate the Dropbox channel

ifttt20

You need to perform an action now we choose Create a text file

ifttt21

Now we need to complete action fields

ifttt22

As all the steps concludes you need to  Create and Activate the recipe

Click on create recipe

ifttt23

After that you will see that the recipe is created

ifttt25

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)

ii)Dropbox account

iii)Arduino/Intel Galileo Board

iv)Button

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.

References

https://ifttt.com/

http://www.instructables.com/id/E-mail-Button-Connecting-Arduino-to-IFTTT-to-send-/?ALLSTEPS

http://bigbuttonfun.com/content/email-button-connecting-arudino-ifttt-and-beyond

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s