Home Automation with SMS and GPS


Published on

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.

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • 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.
  • Home Automation with SMS and GPS

    1. 1. Location-Based Hacks<br />How to Automate Your Life with SMS and GPS<br />Aaron Parecki •@aaronpk<br />Open Source Bridge • June 2011<br />Slides and code available ataaron.pk/osb11<br />
    2. 2.
    3. 3. Sparkfun Hardware GPS<br /><ul><li>As expensive as a phone
    4. 4. Not real-time, download the data every night
    5. 5. Another device to charge and carry</li></ul>aaron.pk/osb11<br />@aaronpk<br />
    6. 6. Phones with GPS Hardware<br /><ul><li>One of a small subset of smartphones with GPS capability in 2008.
    7. 7. Now, most smartphones have this capability.</li></ul>aaron.pk/osb11<br />@aaronpk<br />
    8. 8. Raw GPS Logs<br />aaron.pk/osb11<br />@aaronpk<br />
    9. 9.
    10. 10. Temporal Relationships<br />Relationships for a limited time<br />Meeting a client – 30 minutes before the meeting<br />Carpooling to work – every day from 8-9am<br />Even with friends, their location is not always relevant to me<br />aaron.pk/osb11<br />@aaronpk<br />
    11. 11. aaron.pk/osb11<br />@aaronpk<br />
    12. 12. aaron.pk/osb11<br />@aaronpk<br />Personal Location<br />Analytics<br />
    13. 13. Everyone has a unique footprint of their city<br />aaron.pk/osb11<br />@aaronpk<br />
    14. 14. Location-Based Triggers<br />Some fun uses for real-time location<br />aaron.pk/osb11<br />@aaronpk<br />
    15. 15. aaron.pk/osb11<br />@aaronpk<br />Geonotes<br />Location-Based Reminders<br />Try it!aaron.pk/geonote<br />
    16. 16. Proximal Address Notification<br />Send an address as a Geonote.<br />It will arrive where you need it.<br />aaron.pk/osb11<br />@aaronpk<br />
    17. 17. aaron.pk/osb11<br />@aaronpk<br />
    18. 18. <ul><li>Sends users notifications of restaurants nearby their location that are below a threshold of cleanliness.
    19. 19. Made by Reid Beels at a GeoloqiHackathon</li></ul>aaron.pk/osb11<br />@aaronpk<br />
    20. 20. Trigger-Based Actions<br />Create triggers based on where users are. <br />aaron.pk/osb11<br />@aaronpk<br />
    21. 21. Turning On/Off Your Lightswith GPS and SPS<br />aaron.pk/osb11<br />@aaronpk<br />Geoloqi API<br />Your Home Server<br />X10<br />Tropo.com<br />Your Home Lights<br />
    22. 22. aaron.pk/osb11<br />@aaronpk<br />X10 Lamp Switch<br />Linux Command Line X10 Client<br />www.heyu.org<br />$ heyu on A1<br />
    23. 23. Geoloqi Layers<br />aaron.pk/osb11<br />@aaronpk<br />Web Views<br />
    24. 24. aaron.pk/osb11<br />@aaronpk<br />
    25. 25. Create a Layer in Geoloqi<br />aaron.pk/osb11<br />@aaronpk<br />Docs:geoloqi.org/API/layer/create<br />
    26. 26. Create a Trigger in Geoloqi<br />aaron.pk/osb11<br />@aaronpk<br />Docs:geoloqi.org/API/trigger/create<br />
    27. 27. Handling a Trigger from Geoloqi<br />aaron.pk/osb11<br />@aaronpk<br />Docs:geoloqi.org/Trigger_Callback<br />
    28. 28. Loqi – the Friendly IRC Bot<br />Core is MediaWikiRecentChangesperl bot<br />Listens for incoming UDP packets and echos to a channel<br />IRC messages are routed to a separate script on a new thread<br />Loqi’s reactions to messages can take an indefinite amount of time without hanging the main IRC process<br />Hangs out in #pdxwebdev on freenode<br />aaron.pk/osb11<br />@aaronpk<br />
    29. 29. Loqi – the Friendly IRC Bot<br />aaron.pk/osb11<br />@aaronpk<br />
    30. 30. Loqi – the Friendly IRC Bot<br />Easy to send messages from new sources because it’s listening on UDP<br />Security by obscurity! Yeah!<br />Quick way to debug things on random web servers<br />Send messages from any language<br />aaron.pk/osb11<br />@aaronpk<br />
    31. 31. Loqi – the Friendly IRC Bot<br />aaron.pk/osb11<br />@aaronpk<br />
    32. 32. Create an SMS Number<br />aaron.pk/osb11<br />@aaronpk<br />tropo.com<br />
    33. 33. SMS to IRC Gateway<br />aaron.pk/osb11<br />@aaronpk<br />https://gist.github.com/1043323<br />
    34. 34. aaron.pk/osb11<br />@aaronpk<br />
    35. 35. aaron.pk/osb11<br />@aaronpk<br />
    36. 36. aaron.pk/osb11<br />@aaronpk<br />
    37. 37. aaron.pk/osb11<br />@aaronpk<br />
    38. 38. aaron.pk/osb11<br />@aaronpk<br />
    39. 39. aaron.pk/osb11<br />@aaronpk<br />
    40. 40. aaron.pk/osb11<br />@aaronpk<br />
    41. 41. aaron.pk/osb11<br />@aaronpk<br />
    42. 42. Indoor Location! (sort of)<br />Watch your DHCP server logs for mac addresses<br />Your phone makes a DHCP request almost immediately when you get in range of your home Wifi<br />Quick and cheap way to know if you’re home!<br />aaron.pk/osb11<br />@aaronpk<br />
    43. 43. Thank you.Geoloqi.comSlides & Code:aaron.pk/osb11<br />Aaron Parecki @aaronpk<br />