What is IFTTT?
To sum up, IFTTT is a remote control for the Internet. The app let's its users to create automation rules based on if this than that logic. For example, if you post a picture on Instagram — IFTTT can save the photo to Dropbox.
IFTTT app now has 148 channels that — as the Verge points out — works as a Lego set made our of web companies.
For us, makers, adding the vast IFTTT library of channels can be very useful and fun, so in this instructable we will learn how to do exactly that.
To keep it simple we will draw a smart button using electric paint and connect it to the service using Prota Webhook application for Raspberry Pi.
Here's what we used:
- 1 tube of Bare Conductive electric paint
- 1 Raspberry Pi
- 2 jumper wires
- 1 sheet of paper
- Prota OS (http://prota.info/downloads)
- IFTTT iOS/ Android app
- IFTTT maker channel to connect to Prota
With custom drawn smart buttons you can _______________.
turn on lights
find your phone
save track on Spotify
Of course once you will learn how to connect your Raspberry Pi to IFTTT service, you will not be limited to making programmable buttons. One more good example could be as following: if a camera connected to your Raspberry Pi detects motion, Prota can send a webhook to IFTTT and from there IFTTT can add details to a Google spreadsheet. In addition, Prota could send an email with security footage and IFTTT could send that image directly to your Dropbox.
Step 1: For the sake of simplicity, let's draw a circuit and a button using electric ink.
Step 2: Make a button using a sheet of paper like this. Then connect the circuit that you've just made to Raspberry Pi using two jumper wires.
Step 3: Go to http://myprota.me and install the GPIO app.
You can install from the App Repository.
Step 4: Go to the GPIO app and click on the active pin.
Step 5: Select INTERRUPT mode.
Optionally you can set pull up/ pull down modes. Pull up mode is that when a sensor is triggered whenever a rising interrupt is detected, and Pull down mode means that a sensor is triggered whenever a falling interrupt is detected.
Step 6: Test your button!
When you press the button down, the edge should be rising and when you release, the edge should be falling.
Step 7: Go to the Ambiency app and press on the + sign to add a new story.
Step 8: Select GPIO as a sensor and email app as an actuator. We will connect to IFTTT service using the Webhook app.
Step 9: Once you confirm the Webhook app as an actuator, you will have to enter a web request URL from the IFTTT Maker channel.
Step 10: To get your unique URL go to IFTTT.com and type Maker in the search bar. Then click on the Maker icon.
Step 11: Then click on Receive a web request.
Step 12: Click Create new recipe.
Step 13: Name your even and click Create Trigger.
Step 14: Now choose another channel that should be triggered once the web requested from Raspberry Pi is sent.
Step 15: Go back to maker.ifttt.com and click on How to Trigger Events.
Step 16: When you open How to Trigger Events, type in your event name and copy the URL.
Step 17: Paste the URL link in the Webhook app. Then click the green button.
Step 18: Click the green button again.
Step 19: Name and save your automation rule by again clicking on the green button again.
Congratulations, you are done! Now go create one more rule.