![]() |
Re: [Announce] Advanced Geocaching Tool
Quote:
|
Re: [Announce] Advanced Geocaching Tool
Quote:
|
Re: [Announce] Advanced Geocaching Tool
Hello...
- Is possible to import GPX files to AGTL? Imagine that I wanna download all caches from London... with AGTL I only can download 20 a time... so I can create pocket query on geocaching.com and, why not, import GPX to AGTL... - Is there any way to download a complete map or I have to do that on AGTL option? thanks. Tiago |
Re: [Announce] Advanced Geocaching Tool
Quote:
You need root access ( http://wiki.maemo.org/Root_access ) (or you can copy file from phone to the computer, edit file and copy it back). /opt/advancedcaching/cachedownloader.py row 184 Code:
-if len(coordinates) > self.MAX_DOWNLOAD_NUM: (it is python, so do not add/remove tab's or space's on beginning of the line) |
Re: [Announce] Advanced Geocaching Tool
Thank you for your answer.
What will this do? "This will disable checking of number of downloads."? What is that? (what about import GPX to AGTL?) Thanks Tiago Quote:
|
Re: [Announce] Advanced Geocaching Tool
The maximum download limiitation is there on purpose!
So I suggest to leave it as originally sourced by the author. GPX files are not supported. But You may try GPXView, which is perfect for that. I started with GPXView, until I discovered AGTL ! |
Re: [Announce] Advanced Geocaching Tool
Hi...
I don't know if I will use that code. AGTL is good but you need internet conection. It is much cheaper if you've got premium account and pocket queries... I could be in love with GPXView... but mappero is not working well with gpxview... Thanks |
Re: [Announce] Advanced Geocaching Tool
Yes and no ;)
AGTL may also be used offline while geocaching. Of course You need to download in advance the caches and tiles from internet. GPXView works with Mappero, but also with OSM or other providers (of course here applies the same: download tiles in advance). |
Re: [Announce] Advanced Geocaching Tool
I downloaded the tiles with Mobile Atlas Creator (Mobac)... now I only have to find where to put that on N900... the tiles are of open street map mapnik...
|
Re: [Announce] Advanced Geocaching Tool
path:
/home/user/MyDocs/.maps/OpenStreet\ Maps but be careful putting lots of tiles on MyDocs partition (vfat cluster 64kb) will claim lots of disk space, e.g maps size 900MB --> disk space used 10GB But there is high sophisticated solution for that, search for 'why mappero uses much disk space' or 'cluster vfat 64 kb' or similar --edit sorry, here is the right search information http://talk.maemo.org/showthread.php?t=74415 |
Re: [Announce] Advanced Geocaching Tool
Hello...
mmm... it looks that all the tiles on /.maps are being used by AGTL and Mappero. Cool. Thank you for your help. It is impossible to import my pocket queries to AGTL and I don't want to use internet of my phone provider... Mappero is not working well with GPXView... When I go to "goto" -"show coordinate on map" - "maemo mapper" Mappero opens... but without any cache. If I chose "internal map" I have to download tiles... do you know where is the folder? Thanks again |
Re: [Announce] Advanced Geocaching Tool
Maybe You should try/play a little bit more with the other application (stop hijacking this thread about AGTL).
This will be my last answer in this thread for GPXView related questions : after opening internal map, You have the opportunity to choose between a lot of map providers (small arrow in right lower corner; if You choose OSM1, above mentioned path matches) see here for more info about http://talk.maemo.org/showthread.php?t=19371 |
Re: [Announce] Advanced Geocaching Tool
Hi,
I love this very nice tool. It's my primary geocaching tool :) But since a few days I can't download any details of a cach. After a few seconds I got always the error: "local variable 'usertoken' referenced before assignment" I have AGTL V 0.8.0.7 Somebody know how I can fix this? Thank you! :) |
Re: [Announce] Advanced Geocaching Tool
Quick response: my version is working properly, so it is not a general error. Re-install?
|
Re: [Announce] Advanced Geocaching Tool
@rob_kouw thank you for the quick answer
I've reinstalled it several times - no changes :( After a reinstall, all my local saved settings, account and cache information, are still there. Is there a way to remove all this data too? I don't know, but it could be a problem with the temporary files? all the best. |
Re: [Announce] Advanced Geocaching Tool
Hi,
nobody can help me? I can't use AGTL at the moment, so I can't go geocaching too. :mad: Anyone have an idea how I can fix this issue? Thanks! BR |
Re: [Announce] Advanced Geocaching Tool
Never run into such. The error sounds more like a bug (raised by missing config item?).
But You may tinker arond with directories /home/user/.agtl (containing Your configs and cache database) and maybe also /home/user/MyDocs/.geocaches (afaik containing only pics of caches). I propose to rename that dir and start again with fresh settings. If everythings fine, copy back the caches.db ... --edit Just started AGTL (after some while) and noticed some update of cachedownloader.py. So it looks like webhamster still takes care of us geocachers. *thumbsup* and *thanks* Maybe this solves Your problems? I was not caching for a few weeks now :(), so maybe I just did not notice that, |
Re: [Announce] Advanced Geocaching Tool
1 Attachment(s)
As some geocaches in The Netherlands are based on Dutch Grid, I thought of adding an extra tool to AGTL (near and similar to Coordinate Projection).
This is the first time for me to program something in Python for the Maemo system. After changing hildon_plugins.py (attached) I loaded it into the N900, and AGTL would not start any more. (After restoring the backup file, it worked again.) So I must have done something wrong. Any (Dutch) enthousiasts willing to help? And @Daniel Fett, would such an extension be OK with you? Cheers, Rob |
Re: [Announce] Advanced Geocaching Tool
1 Attachment(s)
I have gained some terrain here, but it doesn't work yet.
Something goes wrong with the handling of the input, and the calculation of the result coordinate in a function I found on the internet. My feeling: it is a very small step now to complete it. I took the code of tool "Coordinate Projection" as a base, changing only small bits. This code '_show_tool_heading()' is just below the new part, and can easily be compared. The part where it goes wrong starts with: # here it must go wrong, even the test function and test values are failing |
Re: [Announce] Advanced Geocaching Tool
1 Attachment(s)
OK, I finally worked things out. The attached file contains three added pieces of code, all clearly marked. The original code has not been changed. If you wish to use it, drop the file (unzipped) in the /home/opt/advancedcaching folder of your N900, replacing the original hildon_plugins.py file.
It will bring you an extra Tool, Dutch Grid RD to WGS. The Dutch Grid or Rijksdriehoekscoordinaten RD works with X ad Y values, in this case in meters. The tool transforms these values into Latitude-Longitude. More info: http://www.dekoepel.nl/pdf/Transformatieformules.pdf Maybe Daniel can take it into the standard version of AGTL? Happy caching in Holland! |
Re: [Announce] Advanced Geocaching Tool
Suddenly I get this error message when downloading the Overview for the visible area: Please go to geocaching.com and set the website language to english. The website is and was set to English; yesterday it still worked perfectly.
Has Geocaching changed things? |
Re: [Announce] Advanced Geocaching Tool
It seems downloading a page from geocaching.com does not work at all.
In my view, geocaching.com has two possible welcome texts: 1) Welcome, Visitor and 2) Hello, login_name. I changed the code of downloader.py to search for possible causes. Both "Welcome, Visitor" and "Hello" are not being found in the downloaded html. I wish I knew how to save the results of the downloaded file to disk, but the first line looks like: <addinfourl at 1102820816 whose fp = <socket_fileobject object at 0x41bb8d70>> Yesterday I could download both overview and details of caches, and today I cannot. Nothing has changed overnight at my side. Furthermore I have a second N900 which has not been used for weeks. That machine cannot download either. It seems another problem than @usability has reported recently. I cannot trace the log file for AGTL. Can other people still use AGTL? Anyone know how to approach logs? |
Re: [Announce] Advanced Geocaching Tool
Weird, everything works again on my main N900. That is wonderful, with a national geocaching event this weekend! On my backup N900 it does not work, but I think I will leave it for now.
|
Re: [Announce] Advanced Geocaching Tool
for all people who have difficulties today to download details. In my case everything changed with changed user settings at geocaching.com. Log in and try to change the language setting or units, or daylight saving time setting.
First AGTL told me that I should change the language to english. I logged in and saw that the language was already set to english. Ichanged the units to metric and checked the box where you can set daylight saving time. AGTL told me something like user token already set. I was very disappointed. Then I changed everything back. and now it works. In my case with language english, units imperial, unchecked daylight saving box and logged out at the website. Daniel keep it up running. It is a really great tool !!!!! Thanks for your effort |
Re: [Announce] Advanced Geocaching Tool
1 Attachment(s)
Quote:
Today I had some spare time and wanted to use it, but I ran into the same error. And could not solve it easily with logging in to geocaching.com and fiddling with settings (which were all OK). @rob_kouw how did You do that? Without doing anything, solve it? But You were on the right trip. I solved it on my own, hacking a bit python and asp (which I am not that familiar with). Changed downloader.py (as rob_kouw suggested and a bit more) and also changed cachedownloader.py ( /home/user/.agtl/updates/ ) (as root or with sudo) sudo rm /opt/advancedcaching/downloader.pyo sudo leafpad /opt/advancedcaching/downloader.py Code:
logger.info("Checking if still logged in...") Code:
page = self.get_reader(url, values, login = False) (as user) rm /home/user/.agtl/updates/cachedownloader.pyo leafpad /home/user/.agtl/updates/cachedownloader.py Code:
def login_callback(username, password): start AGTL normally (or in console: /opt/advancedcaching/core.py --hildon ) Be sure to keep that order of editing (timestamp of cachedownloader.py should be youngest), or You will get "updated" again and loose Your changes. I needed changes in both files and only then could log in again. So, today no caching :(, but 'programming' ;). Hoping webhamster still does some geocaching and will take care of us in future. Cheers. --edit I have to correct me. Somehow my changes were now overwritten anyway, so I could not log in again. I helped myself with a chmod -w. It works, but keep in mind, that You may not get further parser updates by webhamster. Corrected procedure above. |
Re: [Announce] Advanced Geocaching Tool
How did I do it? Well, I just don't know. Just by curiosity I turned on my backup N900, and there downloading is working as well again.
I worked with Windows environments for 20 years as a programmer etc., and normally I can deduct the origin of problems quite well. This problem however, coming out of nowhere and disappearing again, puzzles me completely. I must say the message I got (the HTML I downloaded) "<addinfourl at 1102820816 whose fp = <socket_fileobject object at 0x41bb8d70>>" looks a lot like an IP socket problem. Problems like these happen every once in a while in my Visual Basic programmes as well. Mysterious stuff, never could trace the origin of those. |
Re: [Announce] Advanced Geocaching Tool
Quote:
I had this error Code:
<addinfourl at 1155683712 whose fp = <socket._fileobject object at 0x44e26eb0>> Really strange! But, for me it works. And for You, too :) But cannot understand as well ;) Oh, btw which version are You using? From devel oder extras-testing? Maybe here is the reason for different solutions? I still have 0.8.0.5 from testing. But do not think so, as the web parser update should have given me the same code changes.... |
Re: [Announce] Advanced Geocaching Tool
I am using version 0.8.0.7. Must be from devel, but I forgot when and from where I installed it. On my main N900, I backed up downloader.py and changed a few things as described above. Then I placed back the old file and it worked (sounds a bit like your solution: give all bits and bytes a chance to settle again?). On the backup N900, I changed absolutely nothing over the last few weeks...
|
Re: [Announce] Advanced Geocaching Tool
I have been experiencing some unexpected behaviour:
- Archived caches appeared visible after Download Overview; their icon looks the same as normal; downloading Details does not change their status to Disabled. - Premium member caches could sometimes be downloaded in Overview, not always. They can sometimes be downloaded in Detail as well. I could even upload a field note 'found' for one and log it on geocaching.com (hurray!) After that, I could not download it in Detail any more. Both seem a temporary glitch in geocaching.com systems. I tried it on my backup N900, and they did not show up. But last Tuesday I was near N52 35.707 E005 34.091 and I was up for a 5 km stretch of walking the IJsselmeer dyke with 28 caches in a row. Alas, they had all been archived since long. On the website, I had to search by GC code to even find them. No changes seem to be necessary to AGTL. But I cannot get the downloaded caches out, so it would be nice if somebody knew how to get rid of them without ruining the database. |
Re: [Announce] Advanced Geocaching Tool
Quote:
Yesterday: I did a fresh install of this app and had the same problems with the login procedure resulting in a "Change your profile to English" error. So I found this thread and I followed your instructions. The Dowload Overview login would always fail with my account information. I was getting the error "Wrong password or username". I tried retyping my info with no success. Today: I reinstalled the package, followed the instructions again and had the same result. As a last ditch effort, I created a new account at geocaching.com and tried to use that instead with no success... I left the app open as I started typing up this post. When I went back to Download Overview to get the exact error text, the thing successfully logged in....wtf? I changed my login info back to my original account. That one works now too. I closed the app reopened, and it still works. My only guess is that maybe the login process is going slow while the string comparisons for login verification is going fast? |
Re: [Announce] Advanced Geocaching Tool
I'm having some trouble in reproducing this error, therefore I need your help. Then, I'll try to fix the bug as soon as possible.
What I need is a wireshark log of a unsuccessful login. That is, I need you to run wireshark on the wireless or gprs interface (can be run on N900) while you're trying to log in at geocaching.com. Start wireshark, start a new capture on the wireless or gprs interface, then start AGTL and try to download a geocache. Stop wireshark and save the file. There should be some HTTP packets in the log. Some wireless routers (e.g. FritzBox) can also produce a packet trace without additional software (-> google). There will be private data contained in the packet trace, i.e. your geocaching.com password. Therefore, you should change the password to a temporary password beforehand and reset it afterwards. Remember to change the password in AGTL as well :-) However, if you're lazy and don't change your password: I promise to delete the data after the analysis and I'll not use your password for anything. Please send the log file to fett [at) danielfett.de and tell me if you're using WIFI or a mobile connection and if you're using the latter, please tell me your provider. Thanks! Daniel |
Re: [Announce] Advanced Geocaching Tool
Quote:
I now understand your problems in reproducing this error. And I apologise in advance;) I was still using 0.8.5. Today I have seen version 0.8,7 in extras-testing, which has been in devel up to now, and (accidentally) updated. So all my changes got lost. I started agtl from menu and had the same log-in problem again. Then I started "/opt/advancedcaching/core.py --hildon" once as root or with "sudo run-standalone.sh /opt/advancedcaching/core.py --hildon". Et voila! Everything worked fine (changes in downloader.py are the key). Afterwards (rebuild pyo) it works also from menu. @webhamster THX @all forget about login problems: update to 0.8.7 execute agtl once as root @kegetys, rob_kouw, webhamster I made some other change in gtkmap.py, triggered by kegetys research. When screen is off, there is no need to redraw and consume CPU. Could you check, if this is correct at that place? Here is the patch Code:
diff /opt/advancedcaching/gtkmap.py.ori /opt/advancedcaching/gtkmap.py |
Re: [Announce] Advanced Geocaching Tool
Quote:
LANG=en_EN /opt/advancedcaching/core.py --hildon (My phone's LANG is fi_FI and geocaching-account is/was always in english) |
Re: [Announce] Advanced Geocaching Tool
Quote:
My phone's setting is de_DE. And I do not have such probs. The only thing I might think of, is: does your username/password contain some special character? Which might get misinterpreted when switching the code tables between fi_FI and en_EN. Just a guess (you might try using using only [a-z,A-Z,0-9]). |
Re: [Announce] Advanced Geocaching Tool
Quote:
I had login issue (error message about language) and got it fixed without root, but starting once with LANG=en_EN. |
Re: [Announce] Advanced Geocaching Tool
1 Attachment(s)
A few times now I have arrived at caches that have been archived. As I read the code, AGTL does not check for the archived status.
(How wonderful AGTL is, is beyond any doubt of course.) When downloading the overview from an area, geocaching.com will normally only return the valid caches. Also when downloading all details for an area. When downloading the details after entering the details of a selected cache, geocaching.com will send the html in which a warning block will state the cache has been archived. The least I would like to see, is that in this case AGTL will set the status to DISABLED. I made some changes to cachedownloader.py, but cannot seem to test it. I asked webhamster; he is probably too busy and rightly so. Could anyone else test the attached version of cachedownloader.py? If it works, we could simply ask webhamster to distribute it as an update to the parser. The proposed functionality: - Test for the 'Archived' warning block in the beginning of the page - And/or test for the 'Archived' traffic cone at the logs (I doubled the effort as I couldn't get it to work.) This may be tricky as caches may be set to valid again after being archived. - When Archived, give it a recognizable title like '-X-', put the word 'ARCHIVED' in front of the long title, and set the status to DISABLED/unavailable. Cheers, Rob |
Re: [Announce] Advanced Geocaching Tool
Hi, I'm struggling with the downloader again.
1. AGTL raises an exception when downloading the Overview for the Area. raise Exception("Website contents unexpected. Please check connection.") Downloading Details for the Area or within the Cache Details page is OK. Last Saturday I downloaded the overview without problems. Geocaching.com had an update yesterday. More people with this exception? 2. I located the exception at line 300 of cachedownloader.py at GitHub. Interestingly, the version is VERSION = 20 VERSION_DATE = '2012-01-30' while the version my N900 just updated to is version 19. Has version 20 not been released officially or do I have other problems? Anyone updated to version 20? Thanks, Rob |
Re: [Announce] Advanced Geocaching Tool
Hi all,
the downloader is currently not working because of the latest geocaching.com website update, with which they disabled the classic map view. I'm working on it, but this will be a lot of work! Daniel |
Re: [Announce] Advanced Geocaching Tool
Just detetcted this also yesterday evening. Tried to cut it down, but was lost as the 'uvtoken' was not found anymore in the website. So I knew geocaching.com again changed their websites and ....
... then was too tired to post ;) Thanks webhamster for info; and hopefully soon a solution. If we can help you, let us know (even my python and web programming skills are little). @rob_kouw Interestingly the raise is in your cachedownloader.py in line 300, I have this line as number 292? VERSION = 19 VERSION_DATE = '2011-10-07' |
Re: [Announce] Advanced Geocaching Tool
Dear Daniel,
Most urgent question is "how do I download new caches (recently published) into AGTL?" A short term solution would be to add a Tool to hildon_plugins.py. Enter the name/GC-code of a cache and download the details from there. I am going to study on this. Biggest possible block would be if AGTL functions as follows: - Download Overview creates cache records in the db. - Download Details fills the almost empty record, but is not capable of creating a new cache record. Let's see if I can get something to work. Then you could take your time to find the bigger solution. Cheers, Rob |
All times are GMT. The time now is 15:31. |
vBulletin® Version 3.8.8