Skip to main content

IFTTT (part 2): Creating My Own IFTTT Recipe

In my previous post, I walked through my experience activating an existing IFTTT recipe. In this post, I'll record my process for creating a custom IFTTT recipe. This recipe will send my partner a text message whenever I leave school. I'll read through this article to gain some background knowledge on the inner workings of IFTTT.

Here are some brief notes from the article I'm reading:
- "Trigger": the this in if this, then that; invokes the action
- "Action": the that in if this, then that; invoked by a trigger
- "Recipe": a trigger and its correspond action
- "Channel": a web service or connected device that will be used in a particular recipe

I opted to not complete the tutorial in the second half of the article, as I'm interested in building a location-based recipe with the goal of sending my partner a text message whenever I leave school. I'll follow this tutorial to learn how to create such a recipe.

After reading the sections on geofencing, installing the app, and exploring existing location-based recipes, I realized that the article is over 2 years old at the time of this writing. As a result, the in-app navigation instructions are outdated, as well as their claim that "there’s no way to craft a recipe through the IFTTT mobile app". In today's version of the app, there actually is a very simple way to create a recipe. At this point, I stopped following the tutorial and instead explored the app on my own for a while. Here are the steps I took to create my custom recipe on my iPhone (the Android process is likely similar): 

1. Download the IFTTT app from the App Store and create an account, if not already done.
2. Go to the "Search" tab and search for "location".



3. Scroll down and select "New Applet".



4. Select "Location" as the trigger. This is the type of event that will cause your desired action to    occur. 



5. Choose "You exit an area".



6. Adjust the map so that your desired exit area is selected, then click "Save". This is the geofence that will trigger your action when you exit it. 





*Note that you will have to allow IFTTT to access your location at all times in order for any location-based recipe to work. 
                                                  


7. Select SMS as the action service, then select "Send me an SMS". This will allow the recipe to send an SMS to a number of your choosing whenever the trigger event (in our case, leaving a designating location marked by our geofence) occurs. 



*Note that originally, the recipe will be configured to send to your phone number (assuming you have already provided IFTTT with it). To change this, simply click inside the applet and erase your phone number, then enter your desired phone number. You can also modify the rest of the recipe name as desired. 




8. Click "Finish", then make sure your newly minted IFTTT recipe is on. 





Congratulations, you now have a fully functional, location-based IFTTT recipe! Now test out the functionality by leaving your designated geofence area and see that your entered phone number receives an SMS. 

I won't be leaving the area I designated until at least late afternoon today, so I'll post an update here with whether or not the recipe worked as well as a screenshot of the results.

Thanks for reading! My brief journey into IFTTT was enlightening, and I can forsee many opportunities to integrate IFTTT into future IoT projects. The next stage of my IoT journey will be delving into the expansive and exciting world of Arduino using internet capabilities. I plan to make my first post on this subject sometime in the next week or so (depending on when my supplies arrive), so be on the look out for my next post!

UPDATE: Here's the message my roommate received when I left the area:




Comments

Popular posts from this blog

Reading from and Modifying a DynamoDB Table using API Gateway

In many IoT (Internet of Things) projects, it is necessary to read from and write to a database. AWS has an application called DynamoDB that is a NoSQL database, exactly what we need. While it is very simple to add/modify/delete entries in this database via the user interface, it's not so obvious how to do so via HTTP API calls. So, in this post I'll continue the AWS portion of my journey into IoT to learn how to do just that. I'll be following  this  tutorial. The first thing I encountered is I wasn't sure if I was supposed to follow the steps under "Defining APIs", or if that was just knowledge for later. Turns out, that was knowledge for later. If I had any prior experience with APIs I probably would have realized this. Basically, the "API definition"s are just a high-level plan for what you want your API requests to look like in the end. In my opinion this information should go in the "Creating the APIs" section. Moving through "Cr...

Arduino Project: Sound Alert via Twitter

For my second IoT project using Arduino MKR1000, I'll employ a sound sensor to send out alerts via Twitter when a loud sound is detected. This could have many uses, ranging from informing the inhabitants of a house that there is someone at the door, informing a car owner that their alarm is going off, or residents that a gunshot has gone off in their neighborhood. See my previous posts to learn about the setup process for the Arduino MKR1000, which is wifi-enabled without any additional extensions. I will be using the Arduino IDE to compile the code. For hardware, I'll be using the sound sensor I purchased here , as well as my Arduino, three solder-free wires, a generic breadboard, and a Kindle power cable (this probably isn't the safest way to power Arduino, but it's what I had). I'll be following this  tutorial to set up the sound detector, as well as some code from here  to utilize Twitter. The sound setup tutorial was very simple and one of the clearest wiring g...

Deep Learning - Recurrent Neural Networks (RNNs)

The latest Deep Learning topic I've been exploring is the Recurrent Neural Network (RNN). It has many use cases, including: time series extrapolation (i.e. given historical data, predict future output); object trajectory; and natural language processing (NLP). The code I wrote during this section of the course I'm taking can be found here . For my summary of RNNs, click here . Here are the notes I took while watching the lectures: RNN Theory Examples of Sequences Time Series Data (e.g. stock prices, sales rates) Sentences (i.e. natural language) Audio/Music Car Trajectories (where a car will go in a situation) [1,2,3] shifted one time step into the future would be [2,3,4] will train a network to predict y-values for this A normal neuron has input, activation function, then output A Recurrent Neuron sends output back to itself this process is called “unrolling” the neuron note that the input of each neuron is a summation from both ...