IFTTT Button Raspberry

About: פעיל סביבה ופעיל חברתי, משלב כעת פרויקטים מבוססי ארדוינו

This short guide shows how to use push button on Raspberry to trigger IFTTT event.

1. Raspberry setting

Connect push button to pin ground and other leg to pin 18 (guide)

In the picture raspberry pi with button and WIFI USB Stick. All before packaging

Use the example on the linked page to test

2. Create account on IFTTT.

3. Connect yourself to maker channel and note the API you are given

4. Create recipe when maker is the trigger note the event name

5. Add any even you want to like send mail to.......

6. Make sure you have requests library installed 'sudo pip install requests;

7. Use this Python function to trigger the event from Python on Raspberry when key is pressed

import requests
def email_alert(first, second, third):

report = {}

report["value1"] = first

report["value2"] = second

report["value3"] = third

requests.post("https://maker.ifttt.com/trigger/[event name]/with/key/[api key], data=report)

email_alert("AAAA", "BBBBB", "CCCCC")

That is all

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Be the First to Share


    • Assistive Tech Contest

      Assistive Tech Contest
    • Reuse Contest

      Reuse Contest
    • Made with Math Contest

      Made with Math Contest