About a month ago I purchased one of those awesome Nexus One Google phones and started tinkering to see what cool things I could make it do. I love the phone, and as many of you know, absolutely love Google Voice too.
I figure the only way Google Voice could be improved is if it magically knew where I am and make my phones ring accordingly – so that’s exactly what I made it do.
You can too with an Android phone, the Locale app and a web server.
- Google Voice
- Android phone w/ internet and GPS
- Locale for Android ($9.99, QR code)
- Locale GPS Plug-In (Free, QR code)
- HTTP Poster and Locale Plug-In (Free, QR code)
- Web server w/ PHP 5 (uses cURL and json_decode)
Part 1 – The PHP:
- Download googlevoice-locale.php
- Add your Google Voice login and password to the top and save
- Upload the script to a secret location on your web server
Part 2 – Configure Locale:
- Create a new Situation with a condition of where or when your Google Voice settings should change (ie: while you’re sleeping, at home or in the office)
- Add a Setting using the HTTP Post plugin to tell your server which phones to turn off or on
HTTP Post settings:
URL – http://yourawesomeserver.com/googlevoice-locale.php?on=home&off=work
- Name, save and activate the Situation
The PHP script is set to toggle numbers using the names you assigned them on the Google Voice settings page, so if your phone is named “Work” use “work” (lowercase) in the URL.
The possibilities with Google Voice and Locale are endless. In addition to toggling phones based on your location, you can toggle them when you’re with your mistress, when your phone is charging or about to die, and can even route your calls through Gizmo when you’re connected to your home WiFi.
My favorite trick is to forward all calls to my wife by turning my phone face down.
Let me know in the comments if you need help or think of other useful situations for Locale and Google Voice. Enjoy.