Skip to main content

IFTTT (Part 1): Using a pre-existing IFTTT recipe

Besides AWS, another useful service for various IoT projects is IFTTT (If this, then that). This allows users to make one internet-enabled action trigger another internet-enabled action. For example, every time I take a picture on my iPhone, upload it to Dropbox.

I'm not planning to spend much time on this service, just enough to get my feet wet. In this post I'll document my experience using an existing IFTTT recipe, then I'll create my own IFTTT and document that process in a subsequent post.

After doing some research about IFTTT, I discovered that my city (Louisville, KY) has it's own set of custom-built applets. After scrolling through the numerous applets, one stood out: "Retrieve Air Quality and notify by SMS on change". It sends the user a text message every time the air quality level in the area changes. That sounds useful to me since I know the city has low air quality from time to time, and I don't want to be doing any cardio activities outside during those  times if possible.



After flipping the switch to the "On" position, I was prompted to enter  my phone number and the verification cod that was sent with it. 




After doing this, I wasn't sure if the function had been activated. Going to my applet dashboard, it appears that it has been activated.




However, I haven't yet received a text from the service. I'll update this post as soon I receive something. In the meantime, I'll begin building a custom IFTTT function! Check back soon for my post about the process. 


Update: Around 30 minutes after I activated the IFTTT applet, I received a second text with the following information: 



Pretty cool! I think I'll keep this activated for my personal information. However, I wish there was a way to get this emailed to me instead, as multiple texts per day from this service may get annoying. Regardless, this could prove to be a very useful function. 

UPDATE: After a day of having this feature on, I've decided to only turn it on for certain occasions. The reason for this is that the air quality changes so frequently (~once per hour, as seen in the screenshot below) that the constant notifications were bombarding my phone. I still think the feature is neat, but maybe it would be better if I program my AWS IoT Button (see previous posts) to send me a text with the current air quality whenever I press it, allowing me to only see the information when I want to see it. 





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