Groundspeak Forums: New Etrex 20 and Geocaches using HTML? - Groundspeak Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

New Etrex 20 and Geocaches using HTML?

#1 User is offline   sktqch 

  • Premium Member
  • Group: +Premium Members
  • Posts: 43
  • Joined: 09-July 09

Posted 17 November 2011 - 12:04 PM

My new Etrex 20 seems to have trouble reading the data from geocaches where the cache owner has constructed the site page using HTML coded information (text in colour, images etc.) The Etrex 20 just gives up and doesn't even try to list the geocache description, however I do get the logs, title, difficulty level etc.

My question is, is there anyway to take a geocache page and convert it to simple text before I load it into GSAK and then send it to the Etrex 20?
SKTQCH

#2 User is offline   sussamb 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1611
  • Joined: 15-July 11

Posted 17 November 2011 - 12:11 PM

Why bother with GSAK, simply drop the PQ into the Etrex GPX folder?

#3 User is offline   jholly 

  • I like the smell of a cache in the morning
  • Group: +Premium Members
  • Posts: 7044
  • Joined: 16-August 02

Posted 17 November 2011 - 12:16 PM

View Postsussamb, on 17 November 2011 - 12:11 PM, said:

Why bother with GSAK, simply drop the PQ into the Etrex GPX folder?

Because maybe the PQ is not exactly what you want. And if you actually *READ* the post you would have understood the problem is the HTML in the CACHE LISTING. How does simply dropping the cache into the GPX folder solve that problem?

This post has been edited by jholly: 17 November 2011 - 12:19 PM


#4 User is offline   dfx 

  • CDJ Abuser
  • Group: +Premium Members
  • Posts: 8107
  • Joined: 06-April 07

Posted 17 November 2011 - 12:33 PM

Yep, this is one of the cases where GSAK can actually come in useful for loading PQs. Personally I process cache listings with my own scripts before loading them on my Oregon. Stripping out all HTML except the raw basics is one of the things I'm doing. Of course the proper solution would be to make Garmin beef up their HTML parser...

#5 User is offline   mpilchfamily 

  • Geocacher
  • Group: +Premium Members
  • Posts: 2846
  • Joined: 08-November 10

Posted 17 November 2011 - 12:33 PM

View Postsktqch, on 17 November 2011 - 12:04 PM, said:

My new Etrex 20 seems to have trouble reading the data from geocaches where the cache owner has constructed the site page using HTML coded information (text in colour, images etc.) The Etrex 20 just gives up and doesn't even try to list the geocache description, however I do get the logs, title, difficulty level etc.

My question is, is there anyway to take a geocache page and convert it to simple text before I load it into GSAK and then send it to the Etrex 20?
SKTQCH

I doubt there is much you can do before you send it to GSAK and upload it to your unit but there may be a macro for GSAK that can fix the problem for you.

#6 User is offline   jholly 

  • I like the smell of a cache in the morning
  • Group: +Premium Members
  • Posts: 7044
  • Joined: 16-August 02

Posted 17 November 2011 - 12:51 PM

View Postsktqch, on 17 November 2011 - 12:04 PM, said:

My new Etrex 20 seems to have trouble reading the data from geocaches where the cache owner has constructed the site page using HTML coded information (text in colour, images etc.) The Etrex 20 just gives up and doesn't even try to list the geocache description, however I do get the logs, title, difficulty level etc.

My question is, is there anyway to take a geocache page and convert it to simple text before I load it into GSAK and then send it to the Etrex 20?
SKTQCH

I went and looked at the GSAK library, you might find StripHTML useful.

#7 User is offline   chillypenguin 

  • Premium Member
  • Group: +Premium Members
  • Posts: 216
  • Joined: 29-August 10

Posted 17 November 2011 - 01:32 PM

@sktqch

Please can you post a link to a cache that is causing problems.

#8 User is offline   sktqch 

  • Premium Member
  • Group: +Premium Members
  • Posts: 43
  • Joined: 09-July 09

Posted 17 November 2011 - 02:16 PM

View Postchillypenguin, on 17 November 2011 - 01:32 PM, said:

@sktqch

Please can you post a link to a cache that is causing problems.


Here's one of the caches that is causing the problem.
SKTQCH
http://www.geocachin...aspx?wp=GC24D74

#9 User is offline   sussamb 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1611
  • Joined: 15-July 11

Posted 17 November 2011 - 02:24 PM

View Postjholly, on 17 November 2011 - 12:16 PM, said:

View Postsussamb, on 17 November 2011 - 12:11 PM, said:

Why bother with GSAK, simply drop the PQ into the Etrex GPX folder?

Because maybe the PQ is not exactly what you want. And if you actually *READ* the post you would have understood the problem is the HTML in the CACHE LISTING. How does simply dropping the cache into the GPX folder solve that problem?


Thanks. I did actually read the post, hence my answer phrased as a question rather than a statement, as we're all here to learn you know :P

Clearly you know more about HTML, which is great, as I don't ... so thanks for the heads up :)

#10 User is offline   sktqch 

  • Premium Member
  • Group: +Premium Members
  • Posts: 43
  • Joined: 09-July 09

Posted 17 November 2011 - 02:30 PM

Actually I've been having a lot of trouble just "dropping" the file into the gps. I've tried dropping gpx files into the gpx folder and every other folder I can see on the gps and nothing comes up when I try to find them on the gps.

So I went back to GSAK and that worked for 90% of the caches, it didn't take much detective work to figure out that it was the "fancy" ones (eg: using html codes) that weren't behaving properly on the little etrex.
SKTQCH

This post has been edited by sktqch: 17 November 2011 - 02:30 PM


#11 User is offline   dfx 

  • CDJ Abuser
  • Group: +Premium Members
  • Posts: 8107
  • Joined: 06-April 07

Posted 17 November 2011 - 02:34 PM

View Postsktqch, on 17 November 2011 - 02:16 PM, said:

View Postchillypenguin, on 17 November 2011 - 01:32 PM, said:

@sktqch

Please can you post a link to a cache that is causing problems.


Here's one of the caches that is causing the problem.
SKTQCH
http://www.geocachin...aspx?wp=GC24D74


Really? :blink:
There's nothing unusual about that HTML really, basic stuff.

#12 User is offline   jholly 

  • I like the smell of a cache in the morning
  • Group: +Premium Members
  • Posts: 7044
  • Joined: 16-August 02

Posted 17 November 2011 - 02:48 PM

View Postsussamb, on 17 November 2011 - 02:24 PM, said:

View Postjholly, on 17 November 2011 - 12:16 PM, said:

View Postsussamb, on 17 November 2011 - 12:11 PM, said:

Why bother with GSAK, simply drop the PQ into the Etrex GPX folder?

Because maybe the PQ is not exactly what you want. And if you actually *READ* the post you would have understood the problem is the HTML in the CACHE LISTING. How does simply dropping the cache into the GPX folder solve that problem?


Thanks. I did actually read the post, hence my answer phrased as a question rather than a statement, as we're all here to learn you know :P

Clearly you know more about HTML, which is great, as I don't ... so thanks for the heads up :)

There is a lot more useful things, like stripping out the disabled caches, the caches that have a long string of DNF's but aren't disabled, pruning out areas you don't want to go to, limiting the caches to the ones along a route you want to take, and probably more that other folks can think of. Then there is the logging, it can be much easier with GSAK. None of that can be had by just dropping a PQ .gpx file on to the unit.

#13 User is offline   sktqch 

  • Premium Member
  • Group: +Premium Members
  • Posts: 43
  • Joined: 09-July 09

Posted 17 November 2011 - 02:53 PM

SUCCESS! The stripHTML macro in GSAK worked like a charm. Fast, clean and now that I've stripped the .gpx file even the ones that had html in them load into the little Etrex 20 perfectly.

Thank you for the "hint" Jholly, I wish you'd been with us a couple of days ago we could have used a few "hints" to pare down the dnfs.
SKTQCH

This post has been edited by sktqch: 17 November 2011 - 02:54 PM


#14 User is offline   jholly 

  • I like the smell of a cache in the morning
  • Group: +Premium Members
  • Posts: 7044
  • Joined: 16-August 02

Posted 17 November 2011 - 03:14 PM

Glad it worked out.

#15 User is offline   Wintertime 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1379
  • Joined: 31-August 03

Posted 17 November 2011 - 06:31 PM

Someone who uses GSAK may want to post that tip about StripHTML in their forums so that folks who use the program will know that they have to convert .gpx files from HTML if they're going to use GSAK.

#16 User is offline   sktqch 

  • Premium Member
  • Group: +Premium Members
  • Posts: 43
  • Joined: 09-July 09

Posted 17 November 2011 - 06:52 PM

Sadly, stripHTML is no longer working as it was. It seems to strip not only the HTML codes, but everything written between the codes now. It didn't do that this afternoon so I'm still working on what might have happened. I went back into the gps and deleted every .gpx file I could find (and I looked in all the directories) and then re-downloaded the bookmark list with that pesky file in it, and then re-ran the striphtml macro on it and it now seems to be creating a small file with the same name and then -nohtml.gpx tacked onto it, that cannot be downloaded into GSAK.

The cache description in the gps now contains one line of what is regular text in the cache description, but none of the coloured text in the description.

Very disappointing as it worked well this afternoon.
SKTQCH

OH, and how can I get the Etrex 20 to download the attributes as a part of the .gpx file, or is that gsak that has to be changed?

#17 User is offline   jholly 

  • I like the smell of a cache in the morning
  • Group: +Premium Members
  • Posts: 7044
  • Joined: 16-August 02

Posted 17 November 2011 - 07:20 PM

View PostWintertime, on 17 November 2011 - 06:31 PM, said:

Someone who uses GSAK may want to post that tip about StripHTML in their forums so that folks who use the program will know that they have to convert .gpx files from HTML if they're going to use GSAK.

Ah, what you just posted doesn't make sense. .gpx files are an xml file, not a HTML file. What is in the description is stored in GSAK, other information in the .gpx file is stored in GSAK. Nothing needs to be converted. The problem was the HTML in the description was causing problems with the etrex 20, not with GSAK.

#18 User is offline   jholly 

  • I like the smell of a cache in the morning
  • Group: +Premium Members
  • Posts: 7044
  • Joined: 16-August 02

Posted 17 November 2011 - 07:23 PM

View Postsktqch, on 17 November 2011 - 06:52 PM, said:

Sadly, stripHTML is no longer working as it was. It seems to strip not only the HTML codes, but everything written between the codes now. It didn't do that this afternoon so I'm still working on what might have happened. I went back into the gps and deleted every .gpx file I could find (and I looked in all the directories) and then re-downloaded the bookmark list with that pesky file in it, and then re-ran the striphtml macro on it and it now seems to be creating a small file with the same name and then -nohtml.gpx tacked onto it, that cannot be downloaded into GSAK.

The cache description in the gps now contains one line of what is regular text in the cache description, but none of the coloured text in the description.

Very disappointing as it worked well this afternoon.
SKTQCH

OH, and how can I get the Etrex 20 to download the attributes as a part of the .gpx file, or is that gsak that has to be changed?

I am not really familiar with the macro, your best bet is to post on the GSAK boards in the macro suport thread. Or go read the thread on the macro.

This post has been edited by jholly: 17 November 2011 - 07:24 PM


#19 User is offline   Wintertime 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1379
  • Joined: 31-August 03

Posted 17 November 2011 - 07:43 PM

View Postjholly, on 17 November 2011 - 07:20 PM, said:

Ah, what you just posted doesn't make sense. .gpx files are an xml file, not a HTML file. What is in the description is stored in GSAK, other information in the .gpx file is stored in GSAK. Nothing needs to be converted. The problem was the HTML in the description was causing problems with the etrex 20, not with GSAK.

There's no problem with viewing HTML cache descriptions on an eTrex 20, so the problem must be happening during the description's trip through GSAK. The OP should be fine if he drags those .gpx files directly over to his eTrex.

I own two caches that include HTML in their descriptions, and they display very well on my eTrex 20. There are a few spurious blank lines, but the HTML lists, boldface, etc. that I encoded come across as expected.

#20 User is offline   sktqch 

  • Premium Member
  • Group: +Premium Members
  • Posts: 43
  • Joined: 09-July 09

Posted 17 November 2011 - 07:55 PM

OK, where do you put the .gpx file when you drag it over to the etrex 20. What directory?

Also I just had a thought, do you have a memory card in your gps?

Also I'm still running software version 2.10, would that make a difference?
SKTQCH

This post has been edited by sktqch: 17 November 2011 - 08:21 PM


#21 User is offline   dfx 

  • CDJ Abuser
  • Group: +Premium Members
  • Posts: 8107
  • Joined: 06-April 07

Posted 17 November 2011 - 07:55 PM

View PostWintertime, on 17 November 2011 - 07:43 PM, said:

There's no problem with viewing HTML cache descriptions on an eTrex 20


... with any of the listings that you've tried.

It's well possible that the example cache that was posted contains HTML that makes the eTrex hiccup, even though quite frankly I can't imagine what that would be. I did see very lengthy descriptions (notably earthcaches) that brought the Oregon to its knees. Stripping HTML can make a world of difference, GSAK or not.

Of course it's also possible that GSAK is indeed screwing up the listings somehow. But that would be a bug in GSAK that needs to be fixed.

This post has been edited by dfx: 17 November 2011 - 07:56 PM


#22 User is offline   Wintertime 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1379
  • Joined: 31-August 03

Posted 17 November 2011 - 08:53 PM

View Postsktqch, on 17 November 2011 - 07:55 PM, said:

OK, where do you put the .gpx file when you drag it over to the etrex 20. What directory?

/GPX


Quote

Also I just had a thought, do you have a memory card in your gps?

Yes, but none of my geocaches are on it.


Quote

Also I'm still running software version 2.10, would that make a difference?

I upgraded to 2.40 a few days ago, so I can't check that.

#23 User is offline   Wintertime 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1379
  • Joined: 31-August 03

Posted 17 November 2011 - 09:02 PM

View Postdfx, on 17 November 2011 - 07:55 PM, said:

It's well possible that the example cache that was posted contains HTML that makes the eTrex hiccup, even though quite frankly I can't imagine what that would be.

True, the eTrex may have trouble with some HTML. But it doesn't have an inherent inability to display HTML.

[edit 11/18]
Forgot to mention: I can view the cache mentioned by the OP (http://www.geocachin...aspx?wp=GC24D74) just fine on my eTrex 20. I loaded it directly from the Send to GPS button the cache page; I don't use GSAK. However, I noticed with both my own HTML cache descriptions and this one that it's important to have the GPSr set with dark text on a light background. Otherwise some of the text may not be visible, even though it's actually there.

This post has been edited by Wintertime: 18 November 2011 - 08:49 AM


#24 User is offline   sktqch 

  • Premium Member
  • Group: +Premium Members
  • Posts: 43
  • Joined: 09-July 09

Posted 18 November 2011 - 06:09 PM

OK Wintertime, you get the prize!

That's the solution, dark text on a light background. I was wondering why the cache description had big gaps in it with no text. The text was really there, it was just black text on a black background.

So now the real question is........Why the &@#% doesn't Garmin document these things and include them in a manual?????????????
SKTQCH

#25 User is offline   Wintertime 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1379
  • Joined: 31-August 03

Posted 18 November 2011 - 06:18 PM

View Postsktqch, on 18 November 2011 - 06:09 PM, said:

So now the real question is........Why the &@#% doesn't Garmin document these things and include them in a manual?????????????

I'm afraid I don't have an answer for that question! :sad:

I can't comprehend why they build in all sorts of user customizations and then don't tell us what all our options are... :angry:

#26 User is offline   sussamb 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1611
  • Joined: 15-July 11

Posted 19 November 2011 - 01:03 AM

Yep, Garmin manuals are pretty useless these days. When I had my Etrex Legend H I found on line the manual for the older Etrex Legend, most of it applied and it was far far more detailed and helpful. Over the years Garmin have continually 'dumbed down' both their manuals and their products. They're beginning to see the error of their ways with products, with newer units being far more customable, but the manuals still suck :mad:

#27 User is offline   WrongwayUK 

  • Geocacher
  • Group: +Premium Members
  • Posts: 129
  • Joined: 25-June 07

Posted 19 November 2011 - 02:45 AM

It would help if they were a bit more generous with screenshots in their handbooks as well.

#28 User is offline   Wintertime 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1379
  • Joined: 31-August 03

Posted 19 November 2011 - 09:36 AM

View Postsussamb, on 19 November 2011 - 01:03 AM, said:

Over the years Garmin have continually 'dumbed down' both their manuals and their products. They're beginning to see the error of their ways with products, with newer units being far more customable, but the manuals still suck :mad:

I don't mind the printed in-box startup guide being minimal, and I can even see a case for having a mid-level PDF owner's guide. But they should also make available a PDF'd reference guide that lists all the options and what they contain. For example, not just say, "There are profiles with these names," but list what the default settings are for each of those profiles.

#29 User is offline   sussamb 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1611
  • Joined: 15-July 11

Posted 19 November 2011 - 09:50 AM

I agree ... we just all need to keep complaining to Garmin!

#30 User is offline   Vinnys 

  • Premium Member
  • Group: +Premium Members
  • Posts: 2
  • Joined: 31-December 11

Posted 03 February 2012 - 05:19 PM

Hi there.

I bought also a Etrex 20, got to be premium member, and got stuck with some trouble like you, it gets strange code (I think it's HTML but not sure) you can see it over here after download the GPX file, http://coord.info/GC340T5

I think you'll see strange code there.
Spoiler


Don't know what to do to solve this.

Thanks, have a nice caching ;)

This post has been edited by Vinnys: 03 February 2012 - 05:24 PM


#31 User is offline   Wintertime 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1379
  • Joined: 31-August 03

Posted 04 February 2012 - 09:16 PM

Vinnys, exactly what problem are you having with that cache?


Patty

#32 User is offline   Vinnys 

  • Premium Member
  • Group: +Premium Members
  • Posts: 2
  • Joined: 31-December 11

Posted 11 March 2012 - 02:03 PM

hi there.

The issue is that if I try to read the description on etrex20, and if it has html on it, etrex20 will get slow and stuck for a while, after a while I get to read a lot of html code, mixed with usefull text and information.

I think the best thing is to use some kind of script that removes html code from the gpx that goes to the etrex20, so the etrex can present me the usefull text/information, quick and readable for me.

Well, this is the problem.

Thanks anyway ;)

#33 User is offline   bitpt 

  • Premium Member
  • Group: +Premium Members
  • Posts: 1
  • Joined: 05-August 12

Posted 22 February 2013 - 07:14 PM

The problem seems when "send to gps" is used only, in etrex 20 and 30 html code striped in description, but if option save is used, html pass without any strip.
However, the problem when a pocket query is generated is the same. If GPX file is saved directly to etrex no problem, html is ok.
Maybe someone in Groundspeak developer area can put a save with strip and without strip (EASY TO INTRODUCE).

For example... if description have someting in bold <b>best cache in the world</b> when send to etrex appear like this &lt;b&gt; when ....

WE PAY OUR PREMIUM MEMBER TO QUICK GET DATA, AFTER ALL WE WAST MORE TIME TO CLEAN TRASH PRODUCED BY Groundspeak.

I'M NOT HAPPY FOR SURE...

For pocket queries, can be used a converter like this http://htmlentities.net/, paste the code and decode, after decode all html is ok in etrex or any other gps device

This post has been edited by bitpt: 22 February 2013 - 07:49 PM


#34 User is offline   robertlipe 

  • Chief Babel-Head
  • Group: Moderators
  • Posts: 4916
  • Joined: 23-December 01

Posted 22 February 2013 - 07:49 PM

Since I now apparently have to start any technical posting with "The views expressed herein are entirely my own and may or may not necessarily reflect those of Groundspeak" consider that out of the way...
GPX (as used by pocket queries), like all XML make it trivial to prove correctness of a file via a process called "validation". If the file validates, but doesn't work, it's a problem with the GPX reader. If it doesn't validate, it's a problem with the GPX writer. This makes placing blame for problems easy. "Valid" and "Not working correctly/sensibly" remain two different things. What bitpt is showing is entity encoding and it's the correct way to smuggle one XML-ish format (like HTML) in another XML format, like GPX. Otherwise, you could put </gpx> or </html> in my cache description and end the GPX or HTML tag and that would be bad as it would interpretet that tag (a benign <b> in your example, but rather more tragic in mine) and blow up the reader or do something like embed a geocache inside another or other forms of evil.

There is an attribute in the long description and short_description fields of the Groundspeak:short_description and groundspeak_long description tags. In the example shown by bitpt, either the owner didn't set them (owner problem), they're set by the owner but not in the PQ (a surprising thing for Groundspeak to get wrong as people would be mutinying in the streets, , but it could happen) or the reader is ignoring that flag or not actually capable of rendering HTML. (Since all Garmin's geocaching units since Colorado have rendered this, this would probably "just" be a bug.)

When I download the GPX for http://www.geocachin...aspx?wp=GC24D74, going through the options, I see

      <Groundspeak:short_description html="True">&lt;font size="4" color="black"&gt;Location is a distance off the K-nine
trail in the Southstar hiking trails in the Gold Creek area near
Cranbrook. This recreation area is a gem that many people use
year-round. There is cross country-skiing and snowshoeing in winter
as well as hiking.&lt;br /&gt;
&lt;br /&gt;
This cache is for all those geocaching dog owners and lovers. There
are a lot of them caching in the East Kootenays.&lt;/font&gt;&lt;br /&gt;</Groundspeak:short_description>
      <Groundspeak:long_description html="True">&lt;font size="4" color="red"&gt;You will have to determine who is the
Pointer and who is the Setter.&lt;/font&gt;&lt;br /&gt;
&lt;br /&gt;


The owner has checked HTML and Groundspeak has indicated that with the html="True" for both fields. The HTML is unnecessarily goofy, but basically sensible and the entity escaping seems fine. Seem like you and Vinnys, and other owners of this model need to ask Garmin why the 20 isn't acting like the earlier models and rendering that correctly. (You'll probably get further with them if you get an owner of another of their models to confirm that, say, an Oregon 450 running version firmware X renders it fine (include screenshots) when bugreporting it.)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic