Phone-in Geolocation: almost working…

It’s a hasty and rather brittle thing, but I seem to have the asterisk side of the equation functioning at a minimal level, including recording audio to go with the latitude and longitude that I dial in when I call. Aside from the beautification and cleanup to make it more intuitive, all I need to do is test the “convert the recording to mp3” call and whip up a quick frontend to display the data. Then all of you loyal fans (and/or secret conspirators) can follow along on my long but hasty journey complete with audio. Aren’t you lucky? (Don’t answer that…) If my schedule works out well enough, I may even be able to do a travelogue update from New Belgium Brewing Company along the way.

The basic process is that I whip out my trusty cellphone, call home, and dial the appropriate extension. I then key in my latitude and longitude, and then record up to a five minute bit of audio to go with it. The script then sticks the latitude, longitude, and timestamp (local to the server) at the end of a comma-separated text file and will then invoke a background process of LAME to convert the file to mp3 for online listening. I’m probably only going to have time for a really simple web interface for the moment since I’ve got to hit the road by lunchtime tomorrow after some work in the morning, but once I’m back from this trip I’ll hopefully have a chance to spiff it up.

UPDATE 20081223:If you’re bored, and you watch http://omniblab.dogphilosophy.net/where you MIGHT see an update or to show up during the day, assuming everything works. Unfortunately I won’t actually know if it worked until tonight when I stop for the evening and get online to check it out…

ANOTHER UPDATE 20081223 (late): Now that I’ve stopped for the evening, I’ve fixed the stupid last-minute typo that was keeping the page from working. The audio isn’t automatically being converted to mp3, so until I get time to figure that out the audio parts of the updates won’t show up until I have time to log in and start the conversion by hand. Hopefully be able to fix that (and spiff up the display page) in a day or two.

Any questions, comments, or suggestions (or requests)?