# # Export a GPX file with the caches todo and run spoilersync to get the pictures from the web # # [Created : Jan 10th 2005 - JeepeeS] # [Version : A.03.00 - 30Jan06] # # this macro has 1 dependancy settings in GSAK and specific settings in SpoilerSync # 1. A filter called "export_gpx_for_pic" # What is set on this filter? # I use to export ozi / TT3 and Mapsource files, but using the SMARTNAME=10 setting instead of the WP GCXXXX code, but in this export, I # HAVE to use the %code tag to export, because spoilersync uses the GCXXXX code on the com site to download the pics. # Furthermore, following settings are set, but not mandatory (what is not mentioned here is either not clicked or not filled in # - File type to generate -> GPX # - File name to create -> somewhere a filename ending on .gpx, but it's overwritten in the export commands below # - Waypoint name tag -> %code # - Max Characters -> 10 # - Cache description format -> %Name by %By (%smart) # - Limit # of logs to export -> No limit (you could set that to 0 because spoilersync doesn't use the logs and it would # reduce the file size, but I also use this same .gpx export file in GPXSonar on the PDA, # and then I need the logs to be available # # 2. How to use spoilersync ? Be sure to startup spoilersync the first time manually and set following in the screen (just hints.. you're # free to do as you wish, but this way spoiler sync runs the fastest possible # - Startup spoiler sync manually after installation # - Waypoint file -> This is your .gpx input file, exported by GSAK, or the one from the pocket query from geocaching.com # - Spoiler folder -> this is where spoiler sync will place the pictures and create the html files # - click/enable "Shrink pictures to 300 300" # - click/enable "Create web pages for spoilers and index html" # - click/enable "Create a summary 'no spoiler found' file" # - Delay between web requests = 20 seconds [this to avoid IP spamming / your IP gets blocked by GC.com] # - the rest is not enabled (but that's my choice) # # DEBUG status=on # Below macro is called to set the right paths [ that is only for me because I have 2 diff paths on 2 diff PC's] # $GSAKPATH="C:\data\jeanpaul\...\geocaching\GSAK" # $PCPATH="C:\data\jeanpaul\...\geocaching" # $PDAPATH="C:\data\jeanpaul\...\Pda My Documents" # GSAKPATH -> The directory where all my GSAK scripts are / not the GSAK program files # PCPATH -> The directory where I store my .wpt files, the .gpx files # PDAPATH -> The directory where files are to reside when they get Sync'd with your PDA # MACRO FILE="$_Install\macro_set_path.txt" # Export the file to the standard PC directory EXPORT Type=GPX Settings="export_gpx_for_pic" file="d:\cache\export_gpx_for_pic.gpx" # Call SpoilerSync program... which remembers the settings from previous time PAUSE Msg="If you are going to run SpoilerSync set your filter to 10 caches maximum. This to avoid the IP ban from www.geocaching.com" INPUT Msg="Do you want to include spoiler pics in the html files Y/N?" Default="Y" Varname=$answer IF UPPER($answer)="Y" # if it is Yes; then GSAK has to wait for spoilersync to complete and then call the GSAK supplied spoilersync macro RUNPGM pgm="C:\Program Files\SpoilerSync\spoilersync.exe" parms="-a" WAIT=YES MACRO FILE="$_Install\Macros\SpoilerSync.txt" ELSE RUNPGM pgm="C:\Program Files\SpoilerSync\spoilersync.exe" parms="-a" ENDIF PAUSE Msg="Don't forget to recreate your html files now...or print your caches from GSAK out"