Tag : ifttt

Launch Your Favorite Game Anytime You Connect To Your Network!

IFTTT Recipe + Python Script + Dropbox =

Launch your favorite game anytime you connect to your home network with your android phone.

Ever been so excited from when you leave work or school to get home and play your favorite computer game ASAP? I know I have and when I get home I want my game opened NOW! Well today I bring to you a recipe I came up with over the holiday break!

Overview:

This recipe monitors your phone or tablet device to see if it is connected or disconnected from your home network.

Requirements:

  • A Smart Device such as Android or IOS
  • IFTTT Account with App installed on your Android or IOS device
  • Created the correct IFTTT recipe
  • Dropbox Installed on your computer
  • Python 2.7 Installed on your computer
  • This Python Script
  • AutoHotKey Installed on your computer (Optional)

The Python Code:

As you can see it’s a fairly small and easy python script the main points in which you’ll want to change/edit is what it does when you either disconnect or connect to your network. Launching an application is as easy as changing this line:
If you are just launching an application that line will be changed to the path of the program that you want to launch. If however, you wanted to say open up a youtube video and turn your volume all the way up, it would probably be easier for non-programmers to use another scripting language called: “AutoHotKey”. While I use any other language over AHK any day and any time, I still love AHK and it has it’s strengths in creating mouse/keyboard macros with relative ease and speed.

Example of an AutoHotKey script to un-mute your sound and open a youtube video:

As you can see it’s a really simple script. You can use it to open up a youtube video when you get home or open your favorite program. I hope you get lots of use out of this script. Feel free to message me things that you have used this python script for.

The IFTTT Recipe:

Now that you understand the main python script, lets take a look into the IFTTT recipe required to get this all working properly. The recipe is as follows:

  • Install IFTTT App onto your phone
  • Create a new IFTTT Recipe
  • IF: Android Phone Connects Or Disconnects from Any Network
  • Then: Create a text file in a Dropbox folder named: Connected to {{SSID}} {{OccurredAt}}
  • Run the python script with dropbox installed onto the machine. Make sure you have the right path in the script to match the location of the text file created by the IFTTT Recipe

Automate between your social platforms with IFTTT!


One of my favorite tools to use for automation between platforms such as email, dropbox, facebook, twitter, rss, and more have been with this tool called “If This Than That” or IFTTT for short.

It uses an intuitive design called recipes that trigger when one event goes off.

IFTTT-Image-01-1024x716

Common Recipes I like to use:

  1. A lot of my clients maintain a brand identity, so when they update their profile picture of Facebook, I like to use this reciepe to also update their twitter profile picture: https://ifttt.com/recipes/8981-if-your-facebook-profile-picture-changes-then-update-your-twitter-profile-picture-too
  2. A lot of times I don’t have time to check some of my RSS aggregators so I would use this recipe to send me emails on RSS updates: https://ifttt.com/recipes/74043
  3. Now this one is an interesting one that I’ve only used a few times but if you want to leave a meeting or maybe look like you are important, you could try this recipe where you send a text and later you get a phone call. https://ifttt.com/recipes/12269-get-yourself-out-of-an-awkward-situation

These are just a few recipes, there are far too many out there! So go check it out yourself and see what kind of cool automation things you can add to your life!

Pros:

  • Works with a TON of platforms
  • Super easy to do, no programming knowledge required!

Cons:

  • Some of the platforms update are a tad slower than others, but overall the speed if pretty good!

For more go to: https://ifttt.com/