Have you ever wanted to automatically turn on your lights when you get home, or turn them back off when you leave? What about controlling your lights by SMS or IRC? This presentation will teach you how to automate your life with location-based hacks and SMS.
1. Location-Based Hacks How to Automate Your Life with SMS and GPS Aaron Parecki •@aaronpk Open Source Bridge • June 2011 Slides and code available ataaron.pk/osb11
10. Temporal Relationships Relationships for a limited time Meeting a client – 30 minutes before the meeting Carpooling to work – every day from 8-9am Even with friends, their location is not always relevant to me aaron.pk/osb11 @aaronpk
25. Create a Layer in Geoloqi aaron.pk/osb11 @aaronpk Docs:geoloqi.org/API/layer/create
26. Create a Trigger in Geoloqi aaron.pk/osb11 @aaronpk Docs:geoloqi.org/API/trigger/create
27. Handling a Trigger from Geoloqi aaron.pk/osb11 @aaronpk Docs:geoloqi.org/Trigger_Callback
28. Loqi – the Friendly IRC Bot Core is MediaWikiRecentChangesperl bot Listens for incoming UDP packets and echos to a channel IRC messages are routed to a separate script on a new thread Loqi’s reactions to messages can take an indefinite amount of time without hanging the main IRC process Hangs out in #pdxwebdev on freenode aaron.pk/osb11 @aaronpk
29. Loqi – the Friendly IRC Bot aaron.pk/osb11 @aaronpk
30. Loqi – the Friendly IRC Bot Easy to send messages from new sources because it’s listening on UDP Security by obscurity! Yeah! Quick way to debug things on random web servers Send messages from any language aaron.pk/osb11 @aaronpk
31. Loqi – the Friendly IRC Bot aaron.pk/osb11 @aaronpk
32. Create an SMS Number aaron.pk/osb11 @aaronpk tropo.com
33. SMS to IRC Gateway aaron.pk/osb11 @aaronpk https://gist.github.com/1043323
42. Indoor Location! (sort of) Watch your DHCP server logs for mac addresses Your phone makes a DHCP request almost immediately when you get in range of your home Wifi Quick and cheap way to know if you’re home! aaron.pk/osb11 @aaronpk
A couple years ago, I had this crazy idea that I wanted to track everywhere I went. I spent a year looking around for ways to do this, but there weren’t many options other than manually tracing on a map. Explain map of Portland.----- Meeting Notes (2011-05-17 11:54) -----:30
I tried to do this in 2007 by getting a hardware GPS logger, and only lasted a week of carrying it around since it was another device to charge, and I had to download the data every night.----- Meeting Notes (2011-05-17 11:54) -----:60
A couple months later, I finally got my first smart phone, and I made sure to choose one that had a GPS chip in it, and there weren’t many options at that point.----- Meeting Notes (2011-05-17 11:54) -----1:20
So now, before I leave for the meeting, I”ll send you a link to my map where you can watch my trip in real time. Now you don’t need to wonder if I’ve forgotten about the meeting or if I’m only a block away. This is one of the features of our app, Geoloqi.----- Meeting Notes (2011-05-17 11:54) -----3:30
Even with my close friends, I don’t really want to know where everyone is all the time, there’s just too much noise in that. I only want to know about people’s location if it is actionable.
Frankly, I don’t care if my friend in New York is at his neighborhood coffee shop or his local gym, but if he is anywhere in San Francisco, I’d like to know so I can invite him to lunch. There’s a difference between privacy and looking for the signal in the noise.Even if he's comfortable sharing everything publicly, I just don't really need to know about it.
What we’ve been doing in Geoloqi is building up profiles of where people spend time. This, for example, is a list of three places I often visit, and the dates and times of each of my visits. You can see I spent 8 hours at this coffee shop on April 9th, and about 3 hours there on March 27th.
We can use this information to build a unique footprint of the city for each person. Then we can provide recommendations and filter events based on each person’s individual pattern.----- Meeting Notes (2011-05-17 11:54) -----6:00
Real-time location opens up some fun uses once this robot knows where you are all the time.
Explain the concept of geonotes.----- Meeting Notes (2011-05-17 12:11) -----:30
Example: send detailed transit instructions so you don’t have to dig for them later.Rather than searching your email on your phone trying to find the information, you get it as an SMS when you need it.
Example: Notifications of nearby events from the city’s event calendar.
Example: take restaurant inspection scores, and send an SMS if you’re near a restaurant with a low score.