Introduction: How to Use IFTTT on Your Pi

Picture of How to Use IFTTT on Your Pi

This Instructable was made in order to provide a simple way to use IFTTT's Maker channel on a Raspberry Pi.

Step 1: The Things You Need

You need to have :

  • a Raspberry Pi 2 (see here for more details),
  • an IFTTT account (see step 2) and
  • the software : downloadable on TheThingBox.io website. Go to "download" and write to a SDCard as explained here. Alternatively, you can buy an already built Pi 2 here: http://TimeSquAir.io

Then insert the SDCard into the Pi, plug your Ethernet cable and switch on the Pi.

Step 2: An IFTTT Account

Picture of An IFTTT Account

To make this instructable works you must have an IFTTT account (if it's not already the case go on the IFTTT website and create your own account).

After your inscription done, you have to connect your account with the Maker channel (see the image).

Now you can create recipes with this channel ! A secret key have been created to link your account with the notifications that will be generated, you have to remember this key for later.

Step 3: Create Your Recipe With Maker

Picture of Create Your Recipe With Maker

Click on "My Recipes" link on the web site's top and "Create a Recipe". For "THIS" you choose the channel Maker and define an event name (see the first picture).

Finally for "THAT" (see the second picture) you can choose only one channel among the IFTTT choices. You can choose to send an email or any other choice that you can do.

Step 4: Access the Pi From Your Internet Browser

Picture of Access the Pi From Your Internet Browser

Enter the network address "thethingbox.local/" of the Pi into the address bar of your browser (see here for detailed instructions) and voila!

Step 5: The Web Interface

Picture of The Web Interface

The basic editor looks like this (it may be a little bit different if you have a TimeSquAir).

Step 6: Import the IFTTT Plugin (1/2)

Picture of Import the IFTTT Plugin (1/2)

Select "Import / Node" from the right menu.

Step 7: Import the IFTTT Plugin (2/2)

Picture of Import the IFTTT Plugin (2/2)

Fill carefully with the plugin name.

Hit Ok and wait the reboot button to become activ, then use it to reboot the Pi.

Step 8: How to Use Your Recipe With Your Pi

Picture of How to Use Your Recipe With Your Pi

We will create a flow that will trigger some informations from the event you have created.

Follow these instructions :

  • Drag and drop 1 go node from the nodes palette to your workspace,
  • Drag and drop 1 IFTTT Trigger node from the palette to your workspace, and link it to the go node,

Once done, you should have the same result as the picture.

Step 9: Configure the IFTTT Plugin

Picture of Configure the IFTTT Plugin

By double clicking on the IFTTT Trigger Node, you will see the configuration panel like the picture.

Then, you have to set some values :

  • Event : the event name of your recipe,
  • Secretkey : your secret key from the Maker Channel,
  • Value1, Value2 & Value3 : three optional values

Step 10:

Picture of

Click Activate button.

Then click on the Go node's button to launch your message.

Step 11: Learn More!

Picture of Learn More!

Comments

SimonF90 (author)2017-10-07

Great tutorial, i waited for my new house in order to try IFTTT and maker, so handy and an easy to follow tutorial. Keep up the awesome work :)

dmeeker (author)2016-01-05

Everything is setup and I've used Thingbox / Node-red for quite some time. However, the message never seems to reach IFTTT from the Pi when using this. I threw the output into the debug window, and it shows the message in the json. BUT... on IFTTT, when I look at my log of previous recipes, it doesn't show that it has been run. Perhaps a bug in the Node-Red node?

thethingbox (author)dmeeker2016-01-12

What kind of event have you used for "This" ? Using a "Maker" event to send a mail works fine. A log is added for my Receipe. Also check that secret key and event name are correct.

skepticaljay (author)2015-12-28

Good instructable, but an intro explaining IFTTT would help.

thethingbox (author)skepticaljay2015-12-29

thanks for commenting! IFTTT allows you to create rules in the cloud.

cagenuts (author)thethingbox2015-12-31

Like rain only during the week?

J0539h (author)2015-12-30

Ok, I still dont know why I would build or use this?

About This Instructable

6,677views

28favorites

License:

Bio: The ThingBox Project - A ready to flash Raspberry Pi image that contains Node-RED and Internet Of Things software for non developers.
More by thethingbox:Telegram Bot and TimeSquAir: the BedrockInstall Zwave Soft Remote on TimeSquAirInstall Zwave LED Bulb on TimeSquAir
Add instructable to: