Using Zapier with Adafruit IO

Similar documents
'Sup Brows. Created by Kate Hartman. Last updated on :52:04 PM UTC

Using IFTTT with Adafruit IO to Make an IoT Door Detector

Datalogging Hat with FLORA BLE

Desktop MQTT Client for Adafruit.io

Adafruit IO Basics: Temperature & Humidity

Adafruit IO Basics: Feeds

Sino:bit with Arduino

Adafruit GPS Hat in Windows IoT Core

Adafruit IO Basics: Servo

Adafruit DRV2605 Haptic Controller Breakout

Adafruit IO Basics: Analog Input

Adafruit IO Basics: Digital Output

Adafruit AM2320 Sensor

Android GBoard Morse Code Control with Circuit Playground Express

Adafruit IO Basics: Digital Input

Circuit Playground Express Laser Tag

ISS Pin. Created by Leslie Birch. Last updated on :27:30 PM UTC

Rx Snapchat Spectacles for DIY and STEM

Adafruit IO Basics: Color

Feather Weather Lamp. Created by Ruiz Brothers. Last updated on :54:26 PM UTC

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Adafruit IO Basics: ESP Arduino

Circuit Playground Digital Input

Secret Hollow Book Intrusion Detector

Con Badge with Circuit Playground Express

i2c/spi LCD Backpack Created by lady ada Last updated on :11:04 PM UTC

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

Micro:bit with Arduino

FeatherWing Proto, Doubler and Tripler

Adafruit MPRLS Ported Pressure Sensor Breakout

Adafruit Mini TFT with Joystick Featherwing

Desktop Fume Extractor

Adafruit GPIO Expander Bonnet for Raspberry Pi Created by Kattni Rembor. Last updated on :12:47 PM UTC

Adafruit Si7021 Temperature + Humidity Sensor

PyPortal NeoPixel Color Picker Created by Kattni Rembor. Last updated on :42:41 PM UTC

Adafruit Kegomatic. Created by Becky Stern. Last updated on :00:52 AM UTC

MCP Bit DAC Tutorial

NeoPixie Dust Bag with Circuit Playground Express

Neon LED Signs. Created by John Park. Last updated on :11:09 PM UTC

Collin's Lab: Multimeters

Bunny Ears with MakeCode

Let's talk about beards for the bearded brothers. What s hot with black men beards right now?

Snake Charmer Box. Created by Dano Wall. Last updated on :07:25 PM UTC

BLE Light Switch with Feather nrf52840 and Crickit

Monochrome OLED Breakouts

Adafruit 8x16 LED Matrix FeatherWing

Sword & Wand Prop Effects with Circuit Playground

Boomy The Boombox. Created by Ruiz Brothers. Last updated on :52:13 PM UTC

Adafruit 8x16 LED Matrix FeatherWing

Simple LED Unicorn Horn

Adafruit Color Sensors

Webcam Cover-Up Lego brick with Adabot Mini Fig

MLX90393 Wide-Range 3-Axis Magnetometer

STYLOPEDIA. Team 4 Kiran Viswanathan Vanitha Venkatanarayanan Prasad Kodre Prathamesh Bhurke 5/13/2014

Adafruit ATWINC1500 WiFi Breakout

Bluefruit LE Connect for ios

Arduino Lesson 6. Digital Inputs

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 PM UTC

TSL2561 Luminosity Sensor

Wind Blowing Emoji Prop

Pushrod Garage. Created by John Park. Last updated on :07:30 PM UTC

Adafruit APDS9960 breakout

Easy Sparkle Pocket T-Shirt

Alarm.com Wi-Fi Doorbell Camera and Slim Line - Installation Guide

Non-SAC Member Facility Higg Index Guide: Overview

Cup o' Sound. Created by Becky Stern. Last updated on :30:06 PM EST

Crawling Baby Sea Turtle Robot

Adafruit SGP30 TVOC/eCO2 Gas Sensor

TRON Bag. Created by Becky Stern

Crawling Animatronic Hand

Adafruit 7-Segment LED FeatherWings

PyPortal Smart Thermometer with Analog Devices ADT7410, Adafruit IO and CircuitPython Created by Brent Rubell

Adafruit DRV2605 Haptic Controller Breakout

Audio Prank Gift Box. Created by Becky Stern. Last updated on :46:15 PM UTC

3D Printed Google AIY Voice Kit

Superwallet User Manual

14-Segment Alpha-numeric LED FeatherWing

Paper Airplane Launcher

BeagleBone. Created by lady ada. Last updated on :46:10 PM UTC

Trash Panda. Created by Dano Wall. Last updated on :30:46 AM UTC

Infinity Mirror Valentine's Candy Box

CPX Mystery Dreidel. Created by Kathy Ceceri. Last updated on :51:40 PM UTC

Circuit Playground Combadge

Adafruit Prototyping Pi Plate. Created by Ladyada

Crickit Carnival Bumper Bot

Adabot Operation Game

Data Logging with Feather and CircuitPython

GPS Logging Dog Harness

DIY Circuit Playground Shields

No-Sew LED Wristband. Created by Kathy Ceceri. Last updated on :23:40 PM UTC

Case 1:04-cv RCL Document 195 Filed 04/15/13 Page 1 of 13 1 UNITED STATES DISTRICT COURT FOR THE DISTRICT OF COLUMBIA

Photo Light Box. Created by John Park. Last updated on :28:51 PM UTC

How we designed an injection-molded case

Slider Crank Mechanism -- from Cardboard and Craft Sticks

Smartchic. ios mobile app case study. Shanelle Roberts June 2016

Steven Universe Cosplay Shirt & Gem Created by Erin St Blaine. Last updated on :54:25 PM UTC

1. Charging. 2. In-app Setup. 3. Physical Installation. 4. Features. 5. Troubleshooting. Home Security Begins at the Front Door.

Tent Lantern. Created by Timothy Reese. Last updated on :17:25 AM UTC

3D Printed Case for Adafruit Feather

Electra Desktop Wallet Set-Up Guide

Transcription:

Using Zapier with Adafruit IO Created by Brennen Bearnes Last updated on 2019-01-03 07:37:58 PM UTC

Guide Contents Guide Contents Overview Zap: Sending Twitter Results to a Feed Zap: Sending a Feed to Twitter 2 3 4 11 Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 2 of 15

Overview Zapier (https://adafru.it/fvp) is a service for connecting web services and other applications with an API (https://adafru.it/fvq) together. It offers support for Gmail, Twitter, RSS, and a few hundred others. Adafruit.io (https://adafru.it/fw5) is a service for connecting your maker projects, sensors and actuators to the Internet. Adafruit.io can receive, send and store messages. But if you want to have a sensor do a thing with your twitter/email/calendar/facebook/etc., you probably want a service like Zapier or IFTTT that bridges those services together. The way this works is that you tell Zapier an API key or other credential for the services you want to connect (one for your Twitter account, one for your GMail, one for your Facebook...), while under the hood it knows how to extract or send values to each, and can be triggered on various conditions. This is a called a zap. We've added basic support for Adafruit IO to Zapier, so you can use it as a bridge between your hardware and a wide range of services. In this guide, we'll discuss using Zapier to: 1. Extract data from a service (Twitter) and log it on Adafruit IO. 2. Extract data from an Adafruit IO feed and send it to a service. First, you'll need an account at Zapier and an invite to the Adafruit IO app on Zapier. Visit zapier.com to sign up, and then use this link for the Adafruit IO app invite (https://adafru.it/dw6). Next, you'll need an account on Adafruit IO itself. At the time of this writing, IO is in a limited beta - if you're not already signed up, you'll need to request access over at io.adafruit.com (https://adafru.it/fsu). For this particular demo, you'll also need a Twitter account. If you don't have one of those, you can sign up in a few minutes over at twitter.com (https://adafru.it/fvs). Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 3 of 15

Zap: Sending Twitter Results to a Feed Once logged in to Zapier, look for the "Make a New Zap" button: Next, you'll need to choose Trigger (from) and Action (to) apps. Start with Twitter as a Trigger app: Then choose "Search Mention" as the trigger: Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 4 of 15

Next, choose Adafruit IO and "Send Value to Feed" for the action. (If you don't see Adafruit IO listed, remember that you have to use this invite (https://adafru.it/fvr) to access the app.) Now you should be able to hit continue. You'll be prompted to connect a Twitter account (you've already made one of those and logged into it, right?): Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 5 of 15

You can give it a meaningful name. You'll probably also want to switch "Auto Follow" to "no", unless you really want to follow Zapier on Twitter. Click "Continue", and you'll be sent over to Twitter to authorize Zapier to talk to your account: Don't authorize Zapier unless you're comfortable with it being able to see everything you do with your account, and take actions on Twitter on your behalf. You can always make a 'burner account' just for Zapier integration! Once you click the "Authorize app" button, you should see something like the following: Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 6 of 15

Once you hit "Continue", you'll be prompted to an Adafruit IO account. This one take a bit more work, since you'll have to find your AIO Key and copy it over. You can find your key by visiting the Adafruit IO settings page (https://adafru.it/fvt) and clicking "View AIO Keys": Copy this key, and paste it into the "AIO Key" field on Zapier, then hit "Continue". Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 7 of 15

Next, specify a search term to trigger on. I'll use "adafruit io": Next, pick a value from Twitter to post to IO - I went with the text of the tweet: Then pick an IO feed to post to: Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 8 of 15

Before you get any further, head over to Adafruit IO and make sure you have a matching feed. I did this by clicking "Your Feeds", then the blue "Create Feed" button: Now you can click "Continue" on Zapier and test your new Zap: Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 9 of 15

If you look at the feed on AIO, you should now see some sample data: Assuming everything works, give it a name and turn it on: Be aware that high-volume searches can use up your quota of "tasks" on Zapier quickly. I initially searched for just the string "adafruit" and quickly used up the 100 tasks allotted to a free account. A "task" is, more or less, any time Zapier takes an action (like posting a bit of data) on your behalf. Here's my Adafruit IO twitter mentions feed (https://adafru.it/fvu). I also created a dashboard (https://adafru.it/fvv) that displays the most recent tweet. (For more info on dashboards, see Adafruit IO Basics: Dashboards (https://adafru.it/ioe).) Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 10 of 15

Zap: Sending a Feed to Twitter Ok, so now let's complete the circuit and have Zapier send some traffic to Twitter for us. As an example, I have an IO feed for logging mouse data from a Raspberry Pi (https://adafru.it/cfz). Ok, so suppose I had a friend on Twitter I wanted to notify when the mouse activity got particularly out of hand? Make a new zap, but this time select Adafruit IO as the trigger application and Twitter as the action app: Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 11 of 15

Next, select the accounts you set up for the previous zap (they should already be connected): Then select the feed you're going to use. I went with my existing Mouse Problems feed, but you'll want something you're already writing data to. For more detail on creating a feed, check out Adafruit IO Basics: Feeds (https://adafru.it/cf-). Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 12 of 15

Next, add a filter on "The logged data". I went with when it's greater than 4: Now you can build the tweet Zapier will send on your behalf. Click the "Insert Fields" button to use data from Adafruit IO. (You probably want "The logged data", but might be able to use other values as well.) Since I don't want to clutter up twitter with automated tweets for any actual humans who follow me, I'm @-messaging an old novelty account I created once called @chz_on_stuff (https://adafru.it/fvz). (It's pretty much what it sounds like.) Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 13 of 15

Next, give it a test: Lo and behold, a tweet (https://adafru.it/fw0)! Now you can name the zap and turn it on: Adafruit Industries https://learn.adafruit.com/using-zapier-with-adafruit-io Page 14 of 15

That's about the size of it. Following a similar process, you should be able to send and receive IO data to/from any of the other services that Zapier supports. We'll be adding additional features as we continue developing Adafruit IO, but in the meanwhile, please let us know if you run into any unexpected behavior. Adafruit Industries Last Updated: 2019-01-03 07:37:58 PM UTC Page 15 of 15