The caughtatwork GCA GPX Mailer Utility

Discussion about the Geocaching Australia web site
User avatar
Aushiker
350 ? I am the lizard queen
350 ? I am the lizard queen
Posts: 1397
Joined: 30 July 04 2:35 pm
Twitter: Aushiker
Location: Fremantle, WA
Contact:

Post by Aushiker » 06 December 05 11:19 am

Hi

The gpx file is working great thanks. Much appreciated. The only "concern" I have is that I am getting mine every day. Is this surposed to happen? I was under the impression you only wanted to send it out weekly.

Not a big thing either way for me.

Regards
Andrew

User avatar
caughtatwork
Posts: 17017
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 06 December 05 5:42 pm

It's part of the trial :-)

Given I haven't had any complaints about not being received I'll set it to run on a Friday and only on a Friday.

Thanks for the prompt.

Gunn Parker
400 or more spectacular views seen
400 or more spectacular views seen
Posts: 1357
Joined: 08 April 03 1:14 pm
Location: Perth Western Australia
Contact:

Post by Gunn Parker » 06 December 05 6:06 pm

I have noticed that if I "add/change note" from within gsak to then log my find, I get taken to the GC.Com Site for a GCA cache, any idea on this one?
Thanks
Andrew

User avatar
caughtatwork
Posts: 17017
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 06 December 05 6:15 pm

I believe that's GSAK that will do that rather than anything in the GPX file.

If you own a registered copy of GSAK maybe try to write to ClydeE (or post to the GSAK thread on the GCA forums) and ask for an enhancement such that when you click "Log A Cache" if the WP Code starts with GA, it takes you to the gca page.

User avatar
maccamob
10000 or more caches found
10000 or more caches found
Posts: 915
Joined: 04 April 03 6:37 pm
Location: Hoppers Crossing, VIC
Contact:

Post by maccamob » 06 December 05 6:44 pm

Gunn Parker wrote:I have noticed that if I "add/change note" from within gsak to then log my find, I get taken to the GC.Com Site for a GCA cache, any idea on this one?
Thanks
Andrew
That's easily fixed. In GSAK's "Macros" folder you will find a file called "LogCache.txt". You need to edit that. Find where it says:

<blockquote>
# Now call up the log page for this cache<br>
WEB url="http://www.geocaching.com/seek/log.aspx?ID=%gcid" </blockquote>

<p>Add a "#" to the start of the second line so GSAK will ignore it. Then paste in the following lines just below the one you just edited:</p>

<blockquote>
IF Left("%code",2) = "GC"<br>
WEB url="http://www.geocaching.com/seek/log.aspx?ID=%gcid"<br>
ENDIF<br>

IF Left("%code",2) = "GA"<br>
WEB url="http://geocaching.com.au/my/log/?add=%code"<br>
ENDIF </blockquote>
<p>
Then save the "LogCache.txt" file. GSAK should take you to the appropriate log page now.

Geof
450 or more roots tripped over
450 or more roots tripped over
Posts: 1232
Joined: 10 August 04 12:26 pm
Location: Yarra Ranges

Post by Geof » 08 December 05 8:36 pm

C@W (in another thread)
Make life easier for yourself.

http://forum.geocaching.com.au/viewtopic.php?t=4429

Get the GPX files delivered to your door each and every Friday.
I saw this and thought isn't it cheaper for C@W if we go straight to the source. Am I right? :? If yes is there a way to only send out new information to keep your costs down?

User avatar
caughtatwork
Posts: 17017
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 08 December 05 9:01 pm

Once the files are zipped, they're not actually that large:

Code: Select all

 act.zip 8 k 
 ni.zip 0 k
 nsw.zip 217 k
 nt.zip 0 k
 qld.zip 9 k
 sa.zip 9 k
 si.zip 0 k 
 tas.zip 73 k
 vic.zip 27 k
 wa.zip 21 k
I'm sure that sooner or later GCA will provide an enhanced file selection facility. Something akin to the PQ functionality that GC provides.

Until then, I thought it would be a good idea if we could be "fed" the files then we don't forget that there are caches listed on GCA.

I know I would continually forget to come and get the latest files, so if ther're fed to me (yes I send the files automatically to myself as well) I can search for all and sundry.

My traffic will allow for about 200 caches to request every GCA GPX file each week. That's about 20% of the Australian geocaching population, so it's not going to be a cost in traffic.

I'll keep a monitor on it though, just in case.

Thanks for the concern Geof, but please sign up, especially now that you can log GCA caches. There's another couple of dozen you can find in Victoria now :-)

Gunn Parker
400 or more spectacular views seen
400 or more spectacular views seen
Posts: 1357
Joined: 08 April 03 1:14 pm
Location: Perth Western Australia
Contact:

Post by Gunn Parker » 09 December 05 1:29 pm

maccamob wrote:That's easily fixed. In GSAK's "Macros" folder you will find a file called "LogCache.txt". You need to edit that. Find where it says:

<blockquote>
# Now call up the log page for this cache<br>
WEB url="http://www.geocaching.com/seek/log.aspx?ID=%gcid" </blockquote>

<p>Add a "#" to the start of the second line so GSAK will ignore it. Then paste in the following lines just below the one you just edited:</p>

<blockquote>
IF Left("%code",2) = "GC"<br>
WEB url="http://www.geocaching.com/seek/log.aspx?ID=%gcid"<br>
ENDIF<br>

IF Left("%code",2) = "GA"<br>
WEB url="http://geocaching.com.au/my/log/?add=%code"<br>
ENDIF </blockquote>
<p>
Then save the "LogCache.txt" file. GSAK should take you to the appropriate log page now.
Hi
Thanks very much for that code but I found that it did not work, I had a look at a log page and found that your code needed to have one line changed, I changed it to this

WEB url="http://geocaching.com.au/my/log/new/?add=%code"

by adding new/

and now works fine, thanks for your help and making me look for an answer
Andrew

Geof
450 or more roots tripped over
450 or more roots tripped over
Posts: 1232
Joined: 10 August 04 12:26 pm
Location: Yarra Ranges

Post by Geof » 16 December 05 9:08 pm

If your GCA caching in VIC tomorow I suggest you get it from the source this time.

PS I like the idea C@W but I don't have POP3 mail :twisted:

User avatar
caughtatwork
Posts: 17017
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 19 December 05 5:17 pm

Gunn Parker wrote:
maccamob wrote:That's easily fixed. In GSAK's "Macros" folder you will find a file called "LogCache.txt". You need to edit that. Find where it says:

<blockquote>
# Now call up the log page for this cache<br>
WEB url="http://www.geocaching.com/seek/log.aspx?ID=%gcid" </blockquote>

<p>Add a "#" to the start of the second line so GSAK will ignore it. Then paste in the following lines just below the one you just edited:</p>

<blockquote>
IF Left("%code",2) = "GC"<br>
WEB url="http://www.geocaching.com/seek/log.aspx?ID=%gcid"<br>
ENDIF<br>

IF Left("%code",2) = "GA"<br>
WEB url="http://geocaching.com.au/my/log/?add=%code"<br>
ENDIF </blockquote>
<p>
Then save the "LogCache.txt" file. GSAK should take you to the appropriate log page now.
Hi
Thanks very much for that code but I found that it did not work, I had a look at a log page and found that your code needed to have one line changed, I changed it to this

WEB url="http://geocaching.com.au/my/log/new/?add=%code"

by adding new/

and now works fine, thanks for your help and making me look for an answer
Andrew
This useful tidbit has been added to the wiki.
http://wiki.geocaching.com.au/wiki/Logging_a_cache

User avatar
caughtatwork
Posts: 17017
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 10 January 06 1:14 pm

A small enhancement has been made to the GPX Mail Utility to cater for cachers who go out caching earlier in the week, but weren't getting their files until later in the week.

http://www.caughtatwork.net/geocaching/gpxmail/

You can now select a day that you want your files delivered. It will apply to all states that you select.

ie. if you choose VIC and NSW and Tuesday then both files are delivered on Tuesday. You cannot choose VIC on Tuesday and NSW on Wednesday.

Well, you can, but not on the same email address.

If you want different files on different days, use different email addresses.

eg.
a@thing.com can get VIC on Tuesday
b@thing.com can get NSW on Wednesday
c@thing.com can get SA and WA on Thursday
etc.

Damo.
Posts: 2183
Joined: 04 April 04 5:01 pm
Location: Jannali

Post by Damo. » 05 February 06 2:50 pm

Might be worthwhile to make this thread sticky if there are any mods listening! :D

User avatar
Chwiliwr
10000 or more caches found
10000 or more caches found
Posts: 900
Joined: 10 April 05 10:39 pm
Location: Leeming Western Australia

Post by Chwiliwr » 05 February 06 8:28 pm

Is it possible to have the date of the gpx file recorded when creating the zip files sent.

User avatar
caughtatwork
Posts: 17017
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Post by caughtatwork » 05 February 06 9:47 pm

The GPX and Zip files are generated in real time at the time of sending.
So if you get it at 4:00am, that the data that was in the database at that time.

So the datetime you get the email is the datetime of the GPX and ZIP files.

User avatar
Chwiliwr
10000 or more caches found
10000 or more caches found
Posts: 900
Joined: 10 April 05 10:39 pm
Location: Leeming Western Australia

Post by Chwiliwr » 05 February 06 11:47 pm

I thought that was the case but it isn't exactly what I was asking for.

With a blank date in the 'zip file' for the file contained in the zip the system assigns the current date and time when the file is extracted. If there is a date/time provided in the 'zip file' then that date/time is given to the file by the system.

Also when I am searching for GPX files contained within saved zip files there is no attribute for the date shown by the system for any GCA GPX file so the only way to determine the date of any particular file is the physically extract it and read the GPX headers.

It just caused me a bit of grief recently when I extracted the files from the zips in the wrong order and was wondering if the date could be included as they are for the PQ's I get from other site. (The zip files were saved out of the mail system in the wrong order)

Post Reply