Hide this bar

Mokogeocaching

This is a litle gtk python script that searches the geocaching.com site for caches near your current position or a user specified lattitude and longitude and add the cache as a poi in tangogps.

This is version 0.4 and the code is still not pretty but quite usable.

Warning: I have only tested it on shr unstable

The script can now:
get gps location from phone
user can manually set location
user can specifi range
script can download matching geocaches and add as poi
read geocaching.com username and password from configuration file
threaded gtk and downloading - but unfortunately not searching
unicode support
gui input for username and password
user can specify whether he wants to download already found caches or skip them and whether he wants to download just caches of a specific type
Hints are downloaded and user can specify if hints will be displayed encoded or decoded
coordversion is added. It's a tool to convert coordinates in their different presentations (see below)

Future plans:
code commenting and sanitizing
threaded search

Coordversion:
You can convert coordinates from one presentation into the two others by entering the given coordinates into
the matching row and press the ">" at the end of the line. The other fields will be updated or the status field
will display an error.
The three presentations are:
row - presentation - example
-------------------------------------------------------------------------------------------------
first row - decimal degree - 52.12346 013.98765
second row - degree, decimal minutes - 52 7.4076 13 59.259
third row - degree, minutes, decimal seconds - 52 7 24 11 179 15

You can add the coordinate you just converted as poi into tangogps. Therefore you can specify a name (which will
be the title of the poi) and click on "add as poi".
ATTENTION: It will always be added the point which is currently in the FIRST ROW (decimal degree field).

In the two fields below you can enter bearing values in degree and kilometers. By clicking the ">" button
in the same row the program will calculate the new coordinates to the given coordinates (again taken from the first
row) the angle and the distance and display them in the fields below. From there you can move the new coordinates up
again by clicking "^" to keep converting them into other presentations or add them as a poi.

Example:
You are on a geocaching Trip and on one stage you get the coordinates 52 30.87294, 013 21.003738 and are told to go 150 meters in 45°.
You would enter the coordinates into the second row and press the ">" button next to it to get the decimal degree presentation
into the first row (52.514549, 13.3500623). Then you would enter 45 and 0.15 in the bearing fields and hit ">". The new coordinates
are displayed below. By pressing "^" you bring the new coordinates up again. Now you can, for example, add a nice name like
"Stage 2 on my multi" and press "add as poi". The new poi should now be visible in tangogps.

Installation:
install python-sqlite3 python-pygtk python-pygtk python-netclient python-mime
run mokogeocaching.py or use the mokogeocaching icon located in the launcher.


Mokogeocaching works best with tangogps 0.9.6 because of a bug in 0.9.5 where tangogps crashes if a poi i larger than 1500 charaters.

 

 

Version 0.4 Status Developement
Developer Jesper Vestergaard Category GPS
Instructions No Information Homepage https://projects.openmoko.org/projects/mokogeocaching/

 

 

« Go back

 

   

 

 

 

Rating: 4.5

Rate:

 

 

 

 

 

 

 

Comments

» Write your own comment

 
jesperv wrote: (2009-02-24 12:40:33)
I have made a quick non scientific measurement of the data download. 86 downloaded caches uses 5.12mb that is in average about 60kb per cache.
 
bbb8 wrote: (2009-02-26 01:41:06)
hmmm, isn't 60kb per cache too much?
 
jesperv wrote: (2009-02-26 22:51:52)
Yes it is but the only way of getting it lower is to use another geocacing site (i'm planning to add navicache as an option) or use a server in the middle to remove all the html tags.
 
Arno wrote: (2009-03-03 12:07:42)
how are the poi´s added to tangogs?
i cant see them after downloading data from my region :(
 
jesperv wrote: (2009-03-03 15:32:31)
The poi's are added to the poi.db in the .tangogps directory located in the executing users home directory.

You can check the poi.db file with a sqlite reading app.
 
muxe wrote: (2009-03-08 01:51:34)
There seems to be a bug with negative lat/lon. He finds the correct caches but disregards the minus when adding to the poi.db
 
muxe wrote: (2009-03-09 03:25:19)
I just startet to fix this bug myself, when I saw you already did!
nice work!
 
jesperv wrote: (2009-03-09 23:43:05)
Version 0.3 released where Muxe\'s bug and 3 others are fixed. Happy geocaching
 
bpill wrote: (2009-03-19 01:55:44)
 
jesperv wrote: (2009-03-20 10:53:41)
What is wrong with the link in "Download package"? It works fine when i use it.
 
crap wrote: (2009-04-30 14:07:16)
there is a file /debian-binary in this package, this is useless and makes conflicts with other unclean packages
 
jesperv wrote: (2009-05-08 23:07:18)
A new version is released with updated functionalities and no debian-binary in the ipk package.
 
detructor wrote: (2009-05-20 12:49:30)
hmm...I've downloaded/installed "mokogeocaching_0.4_all.ipk" on SHR/testing and it works (GPS fix, downloading) but it does nothing. In terminal it shows
"UnboundLocalError: local variable 'start' referenced before assignment" with a traceback to self.searchHTML[start-37:start-7]
 
detru wrote: (2009-05-21 06:14:14)
I've now flashed SHR unstable and I'm getting the same error...
 
nio wrote: (2009-07-03 00:46:35)
The login has problems on my SHR unstable.
It can be fixed by a few changes in /usr/bin/mokogeocaching.py .
Starting at line 167, change:
'myUsername' : username,
'myPassword': password,
'Button1' : 'Login',

to:
'ctl00$ContentBody$myUsername' : username,
'ctl00$ContentBody$myPassword': password,
'ctl00$ContentBody$Button1' : 'Login',

This fixed the login problem for me.
 
nio wrote: (2009-07-04 08:40:14)
It's a very nice and useful tool.
I'd like to put automagically adding waypoints on the wanted features list as well.
 
micvm wrote: (2009-07-20 18:33:06)
@nio thanks for the fix!
 
muxe wrote: (2009-09-02 16:31:01)
There is currently another bug which prevents mokogeocaching from downloading the description and details right. This is caused by a design change on gc.com.
This bug is fixed already in the svn version. I hope we soon can release a newer version with the current bugs fixed.
 
muxe wrote: (2009-12-29 17:20:47)

 

 

     

    Your Name
    Comment
     
      Notify me about new comments