MnGCA Home MnGCA
Minnesota Geocaching Association
 
 FAQFAQ   SearchSearch   User listUser list   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GSAK: put a "winter friendly" icon on your 60CSx

 
Post new topic   Reply to topic    MnGCA Forum Index -> Tech Talk
View previous topic :: View next topic  
Author Message
JJnTJ
Geocacher


Joined: 23 Aug 2010

Posts: 218

PostPosted: Tue Oct 18, 2011 8:27 am    Post subject: GSAK: put a "winter friendly" icon on your 60CSx Reply with quote

I really like my 60CSx. But the waypoints don't leave a lot of room for important information.

With a couple of custom macros, I added "winter friendliness" and "days since last found" to my 60CSx:



The left image shows the list of caches (using the GSAK "Smart Name"), with a single letter for the cache type at the end. "M"= Multi, "U"= Unknown, "T"= Traditional, etc.

The right image shows the cache details:

GC1KW4D: GC code
M: Micro (U = unknown, S = small, L = large, etc.)
A/1: (1.5 difficulty, 1 terrain)
*: "Available in winter" attribute is present. ("-" means not available, "?" means neither icon present)
FFFF(2): Last four logs are "found it", and it was found 2 days ago (2 days from when it was downloaded into the GPSr from GSAK)

This usually gives me enough to go on.



If this is the kind of information you'd like on your 60CSx (or many of the older Garmins), here's what you do:


1) Copy the text from here to Notepad, and save it as "winterfriendly.txt":
Code:
$_Sql = "select ainc from attributes where aCode = " + SQLQuote($d_code) + " and aID = '15'"
$available = Sqlite("sql",$_sql)
BeginCase
   Case $available = "1"
      # Do whatever you want to do if cache is available in winter
      $_Special = "*"
   Case $available = "0"
      # Do whatever you want to do if cache is NOT available in winter
      $_Special = "-"
   OtherWise
      # aID not present (owner has not selected winter availabilty attribute)
      $_Special = "?"
EndCase



2) then copy this text to Notepad, and save as "days_since_last_found.txt":
Code:

IF $d_LastFoundDate=[00000000]
    $_Special = "NF"
ELSE
    $Date=$d_LastFoundDate
    $Days=NumToStr(DateDiff($Date,$_Today))
    $_Special = $Days
ENDIF



3) Then move or copy both of those files into:

C:\Users\__your_account_name_here__\AppData\Roaming\gsak\Macros (Windows 7)
C:\Documents and Settings\__your_account_name_here__\AppData\GSAK\Macros (Windows XP. I think. This might be wrong)

4) change your GPSr export screen to this:


The full text of the "Waypoint description format" looks like this:
Code:
%code %con1 %dif1a/%ter1a %macro="winterfriendly.txt" %last4(%mtag="days_since_last_found.txt")


"Maximum Characters" should be 14 for the 60-series Garmins. This is the amount of characters in the first screenshot above. You should also change the "smart name" length in GSAK at Tools->Options->Smart Name->Length to 12. This ensures that you have enough room to get a space followed by a single-letter cache type, just like the screenshot above.



After these changes, you will notice that it takes a little bit longer to download caches to the GPSr. This is because it has to run the two macros before exporting. There is a more elegant way to do this, but it hasn't been a big enough problem for me to do it yet.
Back to top
View user's profile Send private message
sir_zman
Past MnGCA Board


Joined: 30 Jun 2005

Posts: 1766

PostPosted: Tue Oct 18, 2011 11:08 am    Post subject: Reply with quote

awesome write up, thanks for the info.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
team_geomonkey
Geocacher


Joined: 07 Dec 2009

Posts: 168

PostPosted: Tue Oct 18, 2011 8:06 pm    Post subject: Reply with quote

Thanks!! I'm a newbie to GSAK and have only been using the basic macros -- this really explains the benefits of what this program can do! Can't wait to try it out.
Back to top
View user's profile Send private message
sigilwig44
Geocacher


Joined: 31 Mar 2011

Posts: 332

PostPosted: Tue Oct 18, 2011 9:44 pm    Post subject: Reply with quote

Hey! This'd be great on the home page. I'd E-mail it to PH.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MnGCA Forum Index -> Tech Talk All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
Geocaching Cache Icons, Copyright 2009, Groundspeak Inc. All rights reserved. Used with Permission.