General Topics :  geo-*- Rick Richardson's Linux Tools for Geocaching The fastest message board... ever.
 
geo-nearest: curl: returned /dev/null for '/tmp/geo-login.html' [solved; put CURL_OPTS="--sslv3" in ~/.georc]
Posted by: benbergman ()
Date: May 05, 2012 12:14PM

When I try to use any of these tools I get this message:

geo-nearest: curl: returned /dev/null for '/tmp/geo-login.html'

With -D1

$ geo-nearest -D1
geo-nearest: curl https://www.geocaching.com/login/default.aspx
geo-nearest: curl https://www.geocaching.com/login/default.aspx
geo-nearest: curl: returned /dev/null for '/tmp/geo-login.html'

I have tried with multiple gc.com accounts. I used these tools successfully at work, but I can't seem to get them working on my home computer. At work I use Ubuntu and at home I use Arch Linux. I did not find anything when I searched the forum. Any help is much appreciated. These tools are exactly what I've been looking for, so I am excited to start using them.



Edited 1 time(s). Last edit at 05/05/2012 03:20PM by rickrich.

Options: ReplyQuote
Re: geo-nearest: curl: returned /dev/null for '/tmp/geo-login.html'
Posted by: rickrich ()
Date: May 05, 2012 02:42PM

It is your curl version and SSL. Maybe the certs aren't right?

Options: ReplyQuote
Re: geo-nearest: curl: returned /dev/null for '/tmp/geo-login.html'
Posted by: rickrich ()
Date: May 05, 2012 03:18PM

Its a bug in the newe(r|st) curl. Put this in your ~/.georc:
CURL_OPTS="--sslv3"

Ref: https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/595415/comments/8

Options: ReplyQuote
Re: geo-nearest: curl: returned /dev/null for '/tmp/geo-login.html'
Posted by: benbergman ()
Date: May 05, 2012 05:09PM

That fixed it! Thanks a lot, rickrich!

Options: ReplyQuote
Re: geo-nearest: curl: returned /dev/null for '/tmp/geo-login.html'
Posted by: benbergman ()
Date: May 05, 2012 05:45PM

I may have spoken too soon. I'm trying to run this:

geo-nearest -H html -n1000 && geo-html2gpx -b -l 5 html/*.html > geo-nearest_1000_2012-05-05.gpx

but I'm getting a bunch of these:

...
date: invalid date '12am 27/Apr/2012'
date: invalid date '12am 14/Apr/2012'
date: invalid date '12am 14/Feb/2011'
date: invalid date '12am 21/Apr/2012'
date: invalid date '12am 28/Jan/2011'
date: invalid date '12am 05/Apr/2012'
date: invalid date '12am 10/Mar/2012'
...

No HTML files seem to be created. Any thoughts on this one? I predict a date format is setup wrong, but I don't know where to look for this.

EDIT: I just tried running the above command with -n10 instead of 1000 and it does end up outputting HTML files and the combined GPX. I'm still not sure what is up with the date errors, but it at least looks like I've got my gpx file.



Edited 1 time(s). Last edit at 05/05/2012 05:49PM by benbergman.

Options: ReplyQuote
Re: geo-nearest: curl: returned /dev/null for '/tmp/geo-login.html' [solved; put CURL_OPTS="--sslv3" in ~/.georc]
Posted by: rickrich ()
Date: May 05, 2012 06:14PM

DATE FORMATS
        Geocaching.com date formats that are compatible:

            GC Format   Example     Compatible
            YYYY-MM-DD  2011-07-13  yes
            YYYY/MM/DD  2011/07/13  yes
            MM/DD/YYYY  07/13/2011  yes
            DD/MM/YYYY  13/07/2011  yes if DATEFMT=1 in $HOME/.georc
            DD/Mmm/YYYY 13/Jul/2001 no
            Mmm/DD/YYYY Jul/13/2011 no
            DD Mmm YY   13 Jul 11   yes (english only)

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.