Tomtom Export Script

From Geoqo
(Difference between revisions)
Jump to: navigation, search
m
Line 21: Line 21:
 
Hopefully this works ;-)
 
Hopefully this works ;-)
 
   
 
   
 +
alternative version by dsPolleke ;-)
  
#geoqo script
+
 
  %search
+
#geoqo script
  cache:available==True
+
%search
+
cache:available==True
# first, save what the user searched for
+
 
 +
# first, save what the user searched for
 
  %saveset tmp:fortomtoms
 
  %saveset tmp:fortomtoms
+
 
# Then create a file per type:
+
# Then create a file per type:
  %foreach type Unknown Multi Webcam
+
%foreach type Unknown Multi Webcam
    %search
+
%search
    set:tmp:fortomtoms
+
  set:tmp:fortomtoms
     &&cache:subtype=%[type]
+
     &&cache:subtype=%{type}
    %export
+
%export
    system:cmd=gpsbabel -i geo -f %{file:loc} -o tomtom -F %[type].ov2
+
 
  %endforeach
+
  system:cmd=gpsbabel -i geo -f %{file:loc} -o tomtom -F %{type}.ov2
+
 
#just micro's
+
%endforeach
%search
+
 
 +
#just micro's
 +
%search
 
  set:tmp:fortomtoms
 
  set:tmp:fortomtoms
 
  &&cache:subtype=Traditional
 
  &&cache:subtype=Traditional
 
  only:type=Geocache,subtype=Traditional Cache,groundspeak_container=Micro
 
  only:type=Geocache,subtype=Traditional Cache,groundspeak_container=Micro
%export
+
%export
 
  system:cmd=gpsbabel -i geo -f %{file:loc} -o tomtom -F micro.ov2
 
  system:cmd=gpsbabel -i geo -f %{file:loc} -o tomtom -F micro.ov2
+
 
# all other traditionals
+
# all other traditionals
%search
+
%search
 
  set:tmp:fortomtoms
 
  set:tmp:fortomtoms
 
  &&cache:subtype=Traditional
 
  &&cache:subtype=Traditional
 
  +drop:type=Geocache,subtype=Traditional Cache,groundspeak_container=Micro
 
  +drop:type=Geocache,subtype=Traditional Cache,groundspeak_container=Micro
%export
+
%export
 
  system:cmd=gpsbabel -i geo -f %{file:loc} -o tomtom -F traditional.ov2
 
  system:cmd=gpsbabel -i geo -f %{file:loc} -o tomtom -F traditional.ov2
 
 
 
 
[[Category:scripting]]
 
[[Category:scripting]]

Revision as of 16:33, 16 June 2008

This gives an example of exporting to a bunch of tomtom files based on type:

 # first, save what the user searched for
 %saveset tmp:fortomtoms

 # Then create a file per type:
 %foreach type Unknown Traditional Multi
   %search
   set:tmp:fortomtoms
   &&cache:subtype=%[type]
   %export
   system:cmd=gpsbabel -i geo -f %{file:loc} -o tomtom -F geocaches-%[type].ov2
 %endforeach

Then you should be able to run the script for a given search like:

 geoqo --nogui -s set:import:nearme -x FILENAME

And it'll put everything from the import:nearme set into .ov2 files for use on tomtoms. Don't forget to create .bmp files for the icons.

Hopefully this works ;-)

alternative version by dsPolleke ;-)


  1. geoqo script

%search cache:available==True

  1. first, save what the user searched for
%saveset tmp:fortomtoms
  1. Then create a file per type:

%foreach type Unknown Multi Webcam %search

  set:tmp:fortomtoms
   &&cache:subtype=%{type}

%export

  system:cmd=gpsbabel -i geo -f %{file:loc} -o tomtom -F %{type}.ov2

%endforeach

  1. just micro's

%search

set:tmp:fortomtoms
&&cache:subtype=Traditional
only:type=Geocache,subtype=Traditional Cache,groundspeak_container=Micro

%export

system:cmd=gpsbabel -i geo -f %{file:loc} -o tomtom -F micro.ov2
  1. all other traditionals

%search

set:tmp:fortomtoms
&&cache:subtype=Traditional
+drop:type=Geocache,subtype=Traditional Cache,groundspeak_container=Micro

%export

system:cmd=gpsbabel -i geo -f %{file:loc} -o tomtom -F traditional.ov2
Personal tools