Double Tall Iced Mocha, Lite on the Chocolate

October 30, 2004

geo-cam (explaining the previous post)

Filed under: /StupidShellTricks — @ 6:06 pm

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

  • One Response to “geo-cam (explaining the previous post)”

    1. digimon massive hentai Says:

      hentei massive hentai massive justice hentai

    Leave a Reply

    What's a blog without spam? WP-Hashcash.