geo-cam (explaining the previous post)

A while back when I was gearing up for the STP, I thought it would be cool to update my blog with a picture from my camera. That way I could send pictures during the ride. Then I thought it would be cool if I could send a phone cam picture with an address and have it show a map of where I was. So ended up writing geo-cam to do this.

The funny thing is that I spent a bunch of time writing it the day before the STP and didnt even bother to use it. I had a conversation today that reminded me of it. So I decided to clean it up a bit and post it.

It works like this, I send an email from my phone with a picture, and the address in the message body. I have rule on my mailserver that takes all emails to this email address and feeds them to the shell script which then does the following:

  • Makes a thumbnail of the picture
  • Takes the address and submits to Geocoder.us
  • Parses the returned xml with the lat. and long. co-ordiantes
  • Takes the lat. and long. submits to the Tiger Map Server
  • Downloads the returned map image
  • Constructs a blosxom post on my blog

    Code is here.
    I took the image conversion/thumbnail code from Matt’s phonecam.sh shell script.

    This is really just a proof of concept, and I wrote it because I really wanted to use Geocoder.us for something.

    BTW, thanks Schuyler for writing geocoder and Matt for phonecam.sh

  • This entry was posted in /StupidShellTricks. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

    One Comment

    1. Posted February 1, 2012 at 8:43 pm | Permalink

      I’ve simply read regarding “The Lazy Way To Success,” plus I found it especially appealing. I hope it functions plus I hope I’ve applied it the proper way;

    Post a Comment

    Your email is never published nor shared. Required fields are marked *

    *
    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    CommentLuv Enabled