If This Then That, also known as IFTTT is a free web-based service to create chains of simple conditional statements, called applets.
An applet is triggered by changes that occur within other web services such as Gmail, Facebook, Telegram, Instagram, or Pinterest.
For example, an applet may send an e-mail message if the user tweets using a hashtag, or copy a photo on Facebook to a user's archive if someone tags a user in a photo.
This tutorial was made in order to provide a simple way to use IFTTT's Maker channel (www.IFTTT.com) on a Raspberry Pi.
Step 1: A Simple Flow
Here is the simple flow we will build with the graphical editor.
It just sends a value to IFTTT.
Additionally, it shows that it is as easy to send data from a ZWave motion sensor to IFTTT.
Step 2: Download and Install the Pi SDCard
Learn more here : http://thethingbox.io/docs/IFTTT-Book.pdf.
Step 3: Access the Visual Editor
Use your web browser to access the visual editor using the network name you gave in the setup process
Step 4: Install NodeRED Nodes
Click the right menu in the Node-RED web page.
Choose "Manage Palette" then "Install". Type "ttb-ifttt" in the edit box and click the OK button. Wait for the install.
Step 5: Build a Simple Flow
We will build a simple flow with the IFTTT node.
Step 6: Edit the Node
You will have to choose a name for your event.
Also you should get the key from the IFTTT web site (see here to learn how to get the key).
You can add a function node to set/calculate the payload you want to send to IFTTT.
Alternatively, you can use nodes that provide that value as for instance a ZWave or Philips Hue motion sensor.
See here to learn more about how to use Hue devices.
Learn more here about this tutorial.