Version 0.4 of MokoGeocaching released

Jesper Vestergaard openmoko at jespervestergaard.dk
Fri May 8 23:15:51 CEST 2009


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.
The package can be found here http://www.opkg.org/package_141.html

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 specify 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.




More information about the community mailing list