Hein (fub) wrote,
Hein
fub

  • Mood:

Open Source in action

Setting up a tool chain for downloading GPX (GPS eXchange) files, extracting hints and cache descriptions, and uploading that to the GPS receiver has been one of the roads of inquiry I have been pursuing with respect to the switch to Linux.

It didn't take me long to find the geo-* tools, which are a set of shell scripts to download various interesting information from the geocaching.com website -- such as the list of caches that are nearest to your home coordinates, or the ones you found, etcetera.
However, the script to download the GPX-file for a certain waypoint/cache was broken. Recently, gc.com changed their page layout, which also prompted some changes in the form on that page. The script, such as it was, didn't send the right information along, so you got the HTML page in your GPX-file...

After a bit of hacking (livehttpheaders to the rescue!), I determined the right way to do the request, and changed the call to curl. Now it works.

I have submitted my change (really a minor edit) to the package author, so that others may continue to benefit from these scripts.
Tags: geocaching, linux
Subscribe

  • Final RPG-a-Day: Thank

    The last prompt for RPG-a-Day this year is ‘Thank’. If you have read every entry of this year’s RPG-a-Day, then I certainly…

  • Next-to-last RPG-a-Day: Mention

    Today’s prompt is ‘Mention’. I guess this is where I mention people I look up to, or websites I frequent? Ok, here’s…

  • RPG-a-Day 29: System

    We’re in the home stretch for this year’s RPG-a-Day! Today’s prompt is ‘System’. Paulo, who has been doing…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments