Use IFTTT From a Raspberry Pi Without Technical Knowledge Using NodeRED

by thethingbox in Workshop > Home Improvement

588 Views, 5 Favorites, 0 Comments

Use IFTTT From a Raspberry Pi Without Technical Knowledge Using NodeRED

FVCISS3IGJOZGBQ.png

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

A Simple Flow

flow2.png

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.

Download and Install the Pi SDCard

logo.png

Go to http://theThingbox.io and download the SDCard image you can flash using the Etcher app (https://www.raspberrypi.org/magpi/pi-sd-etcher/)

Learn more here : http://thethingbox.io/docs/IFTTT-Book.pdf.

Access the Visual Editor

WorkspaceTTB.png

Use your web browser to access the visual editor using the network name you gave in the setup process

Install NodeRED Nodes

ImportNodeMenu.png

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.

Build a Simple Flow

node.png

We will build a simple flow with the IFTTT node.

Edit the Node

node-edit.png

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

flow2.png

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.

Deploy and Test

activate.png

Just hit the deploy button and now, by clicking the Go button you can switch the LED on and off.