#188308 - 21/11/2003 19:46
Re: GeoCaching Portal updated: Nokia friendly now
[Re: mlord]
|
journeyman
Registered: 30/11/2001
Posts: 84
Loc: Oregon
|
Dude, that kicks so much A*S I can't even say. You just changed my geocaching life forever.
I am wondering, are you willing to make the source to this available? I will be doing a WAP front end for my irc/email bot, and would love anykind of example to start with.
Thanks so much Mark!
rjf&
|
Top
|
|
|
|
#188309 - 21/11/2003 20:54
Re: GeoCaching Portal updated: Nokia friendly now
[Re: rjf]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14491
Loc: Canada
|
Sure.
You can fetch the source for the top level menus under Linux with:
wget http://rtr.ca/geo/gen0.wml
wget http://rtr.ca/geo/ow0.wml
There are two versions, one "generic" for Nokia style browsers, and one for OpenWave browsers.
The rest of the "site" is simply a huge AWK script, that generates WML or HTML on the fly in response to queries from the top level scripts above.
The source for THAT is attached, since the security on my server won't normally permit a download of it.
All of this won't run on it's own as is, because I also use Apache's "rewrite" facility to redirect everything for /geo to /geo/geo.cgi
Cheers
Attachments
189401-geo.cgi (233 downloads)
|
Top
|
|
|
|
#188310 - 21/11/2003 20:58
Re: GeoCaching Portal updated: Nokia friendly now
[Re: mlord]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14491
Loc: Canada
|
And while we're on the subject, anyone who has not already learned to use AWK should really consider it. Much simpler than Perl, but capable of doing just about anything, and a very very C-like syntax.
Cheers
|
Top
|
|
|
|
#188311 - 24/11/2003 13:36
Re: GeoCaching Portal updated: Nokia friendly now
[Re: mlord]
|
veteran
Registered: 01/10/2001
Posts: 1307
Loc: Amsterdam, The Netherlands
|
Hear, hear! Awk is one of the unappreciated greats!
|
Top
|
|
|
|
#188312 - 24/11/2003 16:05
Re: GeoCachers: WAP cache lookups
[Re: mlord]
|
carpal tunnel
Registered: 08/06/1999
Posts: 7868
|
Just tried this out from my Sony Ericsson T610, and it is working well. One thing that you might want to reword is the error that comes up if a user tries to access a subscription only cache. The first one in the 80922 search (GCH2Q8) gives a not found error.
|
Top
|
|
|
|
#188313 - 24/11/2003 16:48
Re: GeoCachers: WAP cache lookups
[Re: drakino]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14491
Loc: Canada
|
OOoohhh! Good one! I didn't know any of the restricted cache waypoints to test it with. Fixed now.
Cheers
|
Top
|
|
|
|
#188314 - 25/11/2003 09:35
Re: GeoCachers: WAP cache lookups
[Re: mlord]
|
carpal tunnel
Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
|
Just wanted to let you know it tested successfully with a Sony Ericsson T226. (At least the home page...need to try it in the field...perhaps this weekend)
_________________________
~ John
|
Top
|
|
|
|
#188315 - 25/11/2003 11:10
WAP cache lookups, with LOGIN !!
[Re: JBjorgen]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14491
Loc: Canada
|
Well, I just updated everything, and most likely broke non OpenWave browsers (dunno, don't have a Nokia to test with, and the simulator I use is broken).
The site now accepts a Login (optional), so that it can "filter finds" when doing searches at geocaching.com. Your userid/passwd are NOT saved anywhere on my machine for this -- they just get passed to the main geocaching site, which gives us back a cookie, which my site then gives to your phone.
I'm curious if/how this works for people, especially on Nokia browsers.
Cheers
|
Top
|
|
|
|
#188316 - 25/11/2003 12:24
Re: WAP cache lookups, with LOGIN !!
[Re: mlord]
|
enthusiast
Registered: 14/07/2002
Posts: 344
Loc: South Carolina
|
I just tried it and received a "login succeeded" message and then proceeded to press RETURN and got this message:
"The entered address is invalid. Please retype and try again."
Using Sony Ericsson T616, Cingular service.
_________________________
Russ --------------------------------------------------------- "The difference between a successful person and others is not a lack of strength, not a lack of knowledge, but rather a lack of will." Vince Lombardi
|
Top
|
|
|
|
#188317 - 25/11/2003 12:35
Re: WAP cache lookups, with LOGIN !!
[Re: russmeister]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14491
Loc: Canada
|
How peculiar!
Maybe the flakey compiler I'm using messes up that specific WML -- so I've just now fixed it to simply send the WML source (instead of compiled WMLC) for those responses. Works in my simulator, how about your phone?
You will likely have to restart the browser and/or flush it's cache first. I haven't yet figured out what "cache control" info I need to add to the pages.
Cheers
|
Top
|
|
|
|
#188318 - 25/11/2003 12:48
Re: WAP cache lookups, with LOGIN !!
[Re: mlord]
|
veteran
Registered: 19/06/2000
Posts: 1495
Loc: US: CA
|
_________________________
Donato MkII/080000565 MkIIa/010101253 ricin.us
|
Top
|
|
|
|
#188319 - 25/11/2003 13:46
Re: WAP cache lookups, with LOGIN !!
[Re: ricin]
|
enthusiast
Registered: 14/07/2002
Posts: 344
Loc: South Carolina
|
After choosing return, I now get:
500:Web service problem: Please contact the service provider.
Oh, and I did flush the cache and restart the browser.
Edited by Russmeister (25/11/2003 13:47)
_________________________
Russ --------------------------------------------------------- "The difference between a successful person and others is not a lack of strength, not a lack of knowledge, but rather a lack of will." Vince Lombardi
|
Top
|
|
|
|
#188320 - 25/11/2003 14:23
Re: WAP cache lookups, with LOGIN !!
[Re: russmeister]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14491
Loc: Canada
|
MMm.. Okay, I've mucked with it some more. One of my simulators was objecting to card names with space (quite reasonably, I suppose), and perhaps that was the issue with your handset as well. Fixed?
And thanks for helping me tweak this thing out!
Cheers
|
Top
|
|
|
|
#188321 - 25/11/2003 14:24
Re: WAP cache lookups, with LOGIN !!
[Re: ricin]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14491
Loc: Canada
|
Yeah, exactly.
Cache-control stuff now added.
Cheers
|
Top
|
|
|
|
#188322 - 25/11/2003 14:36
Re: WAP cache lookups, with LOGIN !!
[Re: mlord]
|
enthusiast
Registered: 14/07/2002
Posts: 344
Loc: South Carolina
|
That's happy.
I'm assuming that you are "filtering finds" by what we have found and only showing those we have not hit yet? That's what it appears to be. And if I'm wrong, correct me, or if there's more filtering going on that I'm not seeing, please advise.
Thanks for the hard work, Mark. It's great to have this readily available.
_________________________
Russ --------------------------------------------------------- "The difference between a successful person and others is not a lack of strength, not a lack of knowledge, but rather a lack of will." Vince Lombardi
|
Top
|
|
|
|
#188323 - 25/11/2003 14:44
Re: WAP cache lookups, with LOGIN !!
[Re: russmeister]
|
enthusiast
Registered: 14/07/2002
Posts: 344
Loc: South Carolina
|
I hate to encourage feature creep here, but do you think you can store certain search criteria? i.e. I may want to search by a zipcode and it can be a local one that I use often b/c there are multiple caches in the area that I spontaneously decide to venture out after. Or there's a TB I want to check up on but I can't remember the number right off hand...
Possible?
_________________________
Russ --------------------------------------------------------- "The difference between a successful person and others is not a lack of strength, not a lack of knowledge, but rather a lack of will." Vince Lombardi
|
Top
|
|
|
|
#188324 - 25/11/2003 14:52
Re: WAP cache lookups, with LOGIN !!
[Re: russmeister]
|
carpal tunnel
Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
|
You should be able to do that with favorites. At least the travel bug. I'd imagine there's a way to do it with zip codes too.
_________________________
~ John
|
Top
|
|
|
|
#188325 - 25/11/2003 14:59
Re: WAP cache lookups, with LOGIN !!
[Re: JBjorgen]
|
enthusiast
Registered: 14/07/2002
Posts: 344
Loc: South Carolina
|
Ah, yes. I don't know why that slipped my mind.
I'll think before I request next time.
_________________________
Russ --------------------------------------------------------- "The difference between a successful person and others is not a lack of strength, not a lack of knowledge, but rather a lack of will." Vince Lombardi
|
Top
|
|
|
|
#188326 - 25/11/2003 15:20
Re: WAP cache lookups, with LOGIN !!
[Re: russmeister]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14491
Loc: Canada
|
Well, actually, my site is NOT doing any filtering.. it's just passing the userid cookie and "&f=1" to geocaching.com, and they are doing their normal "Filter Finds" (as per link on your MY CACHE PAGE). This filters out all caches you have logged a FIND on, as well as all caches you OWN. Archived caches are also filtered out, but not "disabled" caches.
You can bookmark (or "favourites") any page you pull up, but I may also add "search from home coords" just like on the main geocaching HTML site.
But first I want to be able to log a cache find from the field! Should be easy now that logins are mostly working -- that was tricky to figure out.
Cheers
|
Top
|
|
|
|
|
|