maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5] [Announce] Advanced Geocaching Tool (https://talk.maemo.org/showthread.php?t=48036)

peacekeper 2010-05-12 14:40

Re: [Announce] Advanced Geocaching Tool
 
i can not see the app in the repo. what can i do? i am interesting on getting the app.

webhamster 2010-05-12 14:46

Re: [Announce] Advanced Geocaching Tool
 
The application is in extras-devel. Do you have that repository enabled?

peacekeper 2010-05-12 15:06

Re: [Announce] Advanced Geocaching Tool
 
yes i have the repo enable, and i am running PRI.2 but i can't see the app, any clue?

webhamster 2010-05-12 15:13

Re: [Announce] Advanced Geocaching Tool
 
Erm, I have no idea. Do you have it already installed? :-)

Version 0.6.1 is waiting to be uploaded.... see here.

peacekeper 2010-05-12 15:17

Re: [Announce] Advanced Geocaching Tool
 
well, i downloaded since i dont see the it in the repo, i downloaded through the computer and then i put on a folder inside the phone, then i tried to run it from there but nothing, first of all it says that i need the OPERA REPOSITORY enable so i dont know what to do. maybe later i can do something, thks for u help.

elinap 2010-05-12 15:29

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by webhamster (Post 655137)
Hm... this bug is hard to debug, but did you try the following?

Open xterm
root
rm /opt/advancedcaching/*.pyo

Just perhaps a note/question, because the above was not clear to me:
- to run as root need to install rootsh
- then in xterminal enter sudo gainroot

After this the shell becomes a root shell.

Is the above right?

On webhamster last posting: waiting to try the modified AGTL.
Thanks.

elinap 2010-05-12 15:48

Re: [Announce] Advanced Geocaching Tool
 
Just tried the uploaded version 0.6.1 and the same problem continues.
Uninstalled 0.6.0, then installed 0.6.1. Put a shortcut on the desktop.

When clicking on the desktop icon, it starts running then after a few seconds quits.

webhamster 2010-05-12 17:01

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by elinap (Post 655313)
Just perhaps a note/question, because the above was not clear to me:
- to run as root need to install rootsh
- then in xterminal enter sudo gainroot

After this the shell becomes a root shell.

Is the above right?

On webhamster last posting: waiting to try the modified AGTL.
Thanks.

Yes, that is right, although to become root I only need to type "root".

alexios 2010-05-12 17:47

Re: [Announce] Advanced Geocaching Tool
 
I downloaded 0.6.1-0, and I have good news, bad news and more good news.

Good news 1: the segfault has indeed gone away. Running:

Code:

python2.5 /opt/advancedcaching/core.py
now works as it should be, issuing help messages etc. No segfault!

Bad news: the Hildon application doesn't start up: it issues this traceback (non Pythonistas, please excuse the horror that is to follow):

Code:

Traceback (most recent call last):
  File "core.py", line 696, in <module>
    start()
  File "core.py", line 693, in start
    Core(gui, determine_path())
  File "core.py", line 264, in __init__
    self.pointprovider = provider.PointProvider(self.CACHES_DB, self.downloader, geocaching.GeocacheCoordinate, 'geocaches')
  File "/home/opt/advancedcaching/provider.py", line 14, in __init__
    self.conn = connect(filename)
sqlite3.OperationalError: unable to open database file
Exception exceptions.AttributeError: "PointProvider instance has no attribute 'conn'" in <bound method PointProvider.__del__ of <provider.PointProvider instance at 0x412584e0>> ignored
Exception exceptions.AttributeError: "'Core' object has no attribute 'gui'" in <bound method Core.__del__ of <Core object at 0x41258490 (__main__+Core at 0x267950)>> ignored

Good news 2: I did this:

Code:

mkdir ~/.agtl
And then it worked fine (from the xterm as well as the menus)! Not creating the directory is an easy mistake to make, I guess. And difficult to debug on the development box.

Nathraiben 2010-05-12 19:58

Re: [Announce] Advanced Geocaching Tool
 
Thanks a lot, alexios! Creating the directory worked like a charm, I can finally start my version 0.6.1-0 now.

elinap 2010-05-12 21:12

Re: [Announce] Advanced Geocaching Tool
 
I created the directory /home/user/.agtl under root.

When running the application:
  • Did not work from the desktop icon.
  • Running from the command line (in xterminal) seemed to work

Mythril 2010-05-13 04:47

Re: [Announce] Advanced Geocaching Tool
 
After upgrading from 0.5.9 to 0.6.0 i'm having a constant 'No Fix' error. The compass won't even load even though the GPS has me locked on the map. Anyone else having this problem?

edit: btw, loving the app, great work so far :D

webhamster 2010-05-13 09:17

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by Mythril (Post 656389)
After upgrading from 0.5.9 to 0.6.0 i'm having a constant 'No Fix' error. The compass won't even load even though the GPS has me locked on the map. Anyone else having this problem?

edit: btw, loving the app, great work so far :D

This may be the effect of AGTL now being more picky about which GPS data it uses. "Old" fixes, such as the one from the GSM network, won't be used anymore if it has seen a real GPS fix in the meantime. Go outside and see if the compass loads if you have a good GPS fix. If it still doesn't, well, then it's a bug :-)

webhamster 2010-05-13 09:45

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by alexios (Post 655504)
I downloaded 0.6.1-0, and I have good news, bad news and more good news.

Good news 1: the segfault has indeed gone away. Running:

Code:

python2.5 /opt/advancedcaching/core.py
now works as it should be, issuing help messages etc. No segfault!

Bad news: the Hildon application doesn't start up: it issues this traceback (non Pythonistas, please excuse the horror that is to follow):

Code:

Traceback (most recent call last):
  File "core.py", line 696, in <module>
    start()
  File "core.py", line 693, in start
    Core(gui, determine_path())
  File "core.py", line 264, in __init__
    self.pointprovider = provider.PointProvider(self.CACHES_DB, self.downloader, geocaching.GeocacheCoordinate, 'geocaches')
  File "/home/opt/advancedcaching/provider.py", line 14, in __init__
    self.conn = connect(filename)
sqlite3.OperationalError: unable to open database file
Exception exceptions.AttributeError: "PointProvider instance has no attribute 'conn'" in <bound method PointProvider.__del__ of <provider.PointProvider instance at 0x412584e0>> ignored
Exception exceptions.AttributeError: "'Core' object has no attribute 'gui'" in <bound method Core.__del__ of <Core object at 0x41258490 (__main__+Core at 0x267950)>> ignored

Good news 2: I did this:

Code:

mkdir ~/.agtl
And then it worked fine (from the xterm as well as the menus)! Not creating the directory is an easy mistake to make, I guess. And difficult to debug on the development box.

Not creating the directory is stupid :-) The application should have created the directory on itself. The problem was, it didn't... so I'm preparing 0.6.2. Sooo many bugs in this release... :-/

elinap 2010-05-13 09:48

Re: [Announce] Advanced Geocaching Tool
 
Perhaps will get there...

BTW, how do you type ~ using the N900 keyboard?

webhamster 2010-05-13 13:31

Re: [Announce] Advanced Geocaching Tool
 
Does 0.6.1.1 work for you all?

You can type special characters by pressing the blue Fn key and then Ctrl.

alexios 2010-05-13 15:07

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by elinap (Post 656582)
Perhaps will get there...

BTW, how do you type ~ using the N900 keyboard?

Press Shift (blue) + Ctrl/Sym and it's there (on my own keyboard setup anyway).

Or log in via SSH and use your full-size keyboard.

Or say:

Code:

cd; mkdir .agtl
Or say:

Code:

mkdir $HOME/.agtl
Or:

Code:

mkdir /home/user/.agtl
There's no shortage of ways to access your home directory. (hint: ~ is shorthand for ‘my home directory’, or /home/user on the N900)

sada 2010-05-14 07:26

Re: [Announce] Advanced Geocaching Tool
 
hi
i downloaded this app from extra devel some days ago.but i doesn't installed and said unable to install.
what should i do now to install it? do i have to wait for new firmwire?

ps:problem solved

webhamster 2010-05-14 14:50

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by sada (Post 657946)
hi
i downloaded this app from extra devel some days ago.but i doesn't installed and said unable to install.
what should i do now to install it? do i have to wait for new firmwire?

ps:problem solved

what was the problem and how did you solve it?

Fecn 2010-05-14 17:51

Re: [Announce] Advanced Geocaching Tool
 
I took the latest version out for a spin this afternoon. After I'd found the clue to the cache location I tried out the AGTL coord calculator. I noticed that where people have 'x' as the multiply symbol then the calculator expects it as a numerical value.

I added the following at line 172 of coordfinder.py (in the find function) to replace all lower case 'x' with '*' instead

text = text.replace('x', '*')

It fixes the problem nicely but there may be a more elegant solution.

Webhamster - Thanks again for the ever improving app :)

Fecn 2010-05-14 18:02

Re: [Announce] Advanced Geocaching Tool
 
I took the latest version out for a spin this afternoon. After I'd found the clue to the cache location I tried out the AGTL coord calculator. I noticed that where people have 'x' as the multiply symbol then the calculator expects it as a numerical value.

I added the following at line 172 of coordfinder.py (in the find function) to replace all lower case 'x' with '*' instead

text = text.replace('x', '*')

It fixes the problem nicely but there may be a more elegant solution.

Webhamster - Thanks again for the ever improving app :)

webhamster 2010-05-15 08:41

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by Fecn (Post 658690)
I took the latest version out for a spin this afternoon. After I'd found the clue to the cache location I tried out the AGTL coord calculator. I noticed that where people have 'x' as the multiply symbol then the calculator expects it as a numerical value.

I added the following at line 172 of coordfinder.py (in the find function) to replace all lower case 'x' with '*' instead

text = text.replace('x', '*')

It fixes the problem nicely but there may be a more elegant solution.

Webhamster - Thanks again for the ever improving app :)

Hi!

I do not recommend this fix, as it works only as long as you don't have a cache where x is used as a variable.

I consider a feature where you can enter/edit coord. calculations manually...

Fecn 2010-05-15 09:01

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by webhamster (Post 659360)
Hi!

I do not recommend this fix, as it works only as long as you don't have a cache where x is used as a variable.

I consider a feature where you can enter/edit coord. calculations manually...

I will admit it was a quick and dirty fix :) All the caches in my area seem to have their maths starting from the other end of the alphabet and they have always been using capitals. I am new to all this geocaching stuff though so don't know what the standards are for the calculations. I figured that swapping the lower case x was a reasonable default behaavior.

How about having it so that you can enter an '*' into the 'x' field in the coord calculator if it appers in a calculation to indicate that it's a multiply symbol rather than a numeric - it was what I treid to do when I discovered the problem so it's probably not a bad default behavior.

webhamster 2010-05-15 09:45

Re: [Announce] Advanced Geocaching Tool
 
That sounds like good and simple idea. I will check all the options for the next release.

Meanwhile, I added some minor bug fixes (e.g. scrolling in options) and completed support for portrait mode.

If you know GIT and feel adventurous, check out the latest development version from http://github.com/webhamster/advancedcaching. Be sure not to overwrite your existing AGTL installation, as the devel version is inherently unstable. Of course, don't go geocaching without the latest official release installed. Report any bugs here with the commit-ID.

webhamster 2010-05-17 18:40

Re: [Announce] Advanced Geocaching Tool
 
Version 0.6.1.2 was just released, containing two bug fixes:
* Scrolling in options
* Downloading waypoints

webhamster 2010-05-19 15:20

Re: [Announce] Advanced Geocaching Tool
 
Addition: Blog post for Version 0.6.1.2.

webhamster 2010-05-28 17:41

Re: [Announce] Advanced Geocaching Tool
 
Version 0.6.1.2 is now in Extras repository!

Lantti 2010-06-01 08:21

Re: [Announce] Advanced Geocaching Tool
 
Thanks for this great application!

One minor improvement proposal to sun compass.
Compass is moving / turning very quickly when standing still. It would be great if sun compass could be paused when not moving. That would make it easier to turn compass in line with sun...

webhamster 2010-06-02 08:27

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by Lantti (Post 693160)
Thanks for this great application!

One minor improvement proposal to sun compass.
Compass is moving / turning very quickly when standing still. It would be great if sun compass could be paused when not moving. That would make it easier to turn compass in line with sun...

I had this implemented already but removed it again, because it made problems in rare cases. I will try it again with the better GPS accuracy of the PR 1.2 firmware.

tobru 2010-06-04 08:14

Re: [Announce] Advanced Geocaching Tool
 
Hi,

Thanks for this great tool. I used it to find over 50 geocaches until now and I think it's even better than the official iPhone App from Groundspeak!

Since two or three days I can't download the cache details anymore, I always get the error "could not parse cache page". It looks like Groundspeak added a banner above the logs, perhaps this is a problem for AGTL to parse the cache page...

Beside this bug, I have a couple of feature requests so that the application gets even better:
  • Displaying the cache attributes in the detail view. I had to solve a mystery cache where the attributes were needed.
  • Download more logs, perhaps a configurable value or a "download more" button
  • Add a name to manually added waypoints
  • Multi-Line for waypoint description in the "coords" tab
  • Do not display the hint in plaintext. Add a button beside the hint: "Show cleartext"
These are my suggestions. And again: Thanks a lot for this great tool!

Best Regards,
Tobias

webhamster 2010-06-04 19:11

Re: [Announce] Advanced Geocaching Tool
 
First of all, Version 0.6.1.3 is on it's way to extras-devel, fixing the downloading bug.

Quote:

Originally Posted by tobru (Post 699115)
Hi,

Thanks for this great tool. I used it to find over 50 geocaches until now and I think it's even better than the official iPhone App from Groundspeak!

Since two or three days I can't download the cache details anymore, I always get the error "could not parse cache page". It looks like Groundspeak added a banner above the logs, perhaps this is a problem for AGTL to parse the cache page...

Beside this bug, I have a couple of feature requests so that the application gets even better:
  • Displaying the cache attributes in the detail view. I had to solve a mystery cache where the attributes were needed.
  • Download more logs, perhaps a configurable value or a "download more" button
  • Add a name to manually added waypoints
  • Multi-Line for waypoint description in the "coords" tab
  • Do not display the hint in plaintext. Add a button beside the hint: "Show cleartext"
These are my suggestions. And again: Thanks a lot for this great tool!

Best Regards,
Tobias

Thanks for your suggestions.
Downloading the attributes is on my to-do list, although not with a very high priority.
Downloading more logs should also be possible.
Adding a name to a waypoint is a feature many users have requested. I'm still evaluating the options to implement a better waypoint handling.
Multiline support for waypoint descriptions is already implemented and will come with the next major release, as well as your suggestion for the hint text.

webhamster 2010-06-04 19:13

Re: [Announce] Advanced Geocaching Tool
 
And on a completely different topic, talk.maemo.com may just be crossing the 700.000 posts mark :-)

webhamster 2010-06-05 17:09

Re: [Announce] Advanced Geocaching Tool
 
The update is now in extras-devel. Please report any problems here. If the package works for you, please go to
http://maemo.org/packages/package_in...ing/0.6.1.3-1/
and vote up.

tobru 2010-06-06 10:34

Re: [Announce] Advanced Geocaching Tool
 
Thanks for the update! It solved the download bug.
And many thanks for your comments on my suggestions, I'm happy to see that some of them are already implemented!

I knew that I forgot two ideas I had:
  • Display the date when the cache was hidden
  • Show the information if it's a premium cache or not

I will vote up as soon as my garage account is created.

Soundy 2010-06-06 11:27

Re: [Announce] Advanced Geocaching Tool
 
I love this program, it is very handy!

I am having a problem with the 'Download details for all viewable caches' function. It says downloading 0 of 19 but doesn't progress any further. This feature used to work when I tried it in previous versions.

AkiL 2010-06-08 10:19

Re: [Announce] Advanced Geocaching Tool
 
First of all, thanks for this great application. It got me started on geocaching!

Next, is there anywhere a user manual or at least some kind of decent instructions? I think I am doing something wrong, but I never get the GPS view working. There never is distance, altitude, accuracy or the direction pointer. The area for the pointer is just blank. Also there is always "No Fix" visible, even if other applications (like Ovi Maps, GPSJinni, eCoach) seem to work ok.

Or does this have something to do with the GPS signal quality? GPSJinni seems to indicate that the quality is mostly +-10-20m for the coordinates.

Also it does not matter whether I have the "track" checkbox checked in the Map view or not, the map does not follow me. Only if I click somewhere on the map, the position updates. This would seem to be related to the GPS view not updating.

How should I actually set a cache as a target for the GPS view? Select a cache and then in the top menu select "Set as Target" or go to the coords tab and select the coordinates and then select "set as target"? Or does this actually do the same thing?

misty 2010-06-08 19:44

Re: [Announce] Advanced Geocaching Tool
 
I love this app and use it frequently. But it chews up the battery a LOT. I used it today for an hour or so and my battery dropped so much I had to switch everything off and just leave it as a phone so I could get home. I had gone out with a full charge.

Akil are you trying to get a fix indoors or while you are out? I just tried it in the house and I got the same problem as you but I find its excellent while out and about for getting a signal.

I normally look at the map and click on the geocache I want to find. Then when it brings the details up I then click on the name of the cache in the top bar (no idea what the technical name for the top bar is) and click download all details. I then click on the top bar again and click set as target.

Your gps arrow should then start whizzing round. If you go to the map then and zoom out far enough you should be able to see the yellow line with the red cross on, that is where you are and the other end on top of the cache icon is where you want to end up.

I know its not a very technical description of how it works, but thats what I do and it works a treat, apart from the battery problem I seem to be having!

webhamster 2010-06-08 19:49

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by misty (Post 705937)
I love this app and use it frequently. But it chews up the battery a LOT. I used it today for an hour or so and my battery dropped so much I had to switch everything off and just leave it as a phone so I could get home. I had gone out with a full charge.

Although the battery life is not as good as the one of a pure GPS device, mine lasts several hours. Maybe there's some background process which drains your battery (close all other applications, check your desktop widgets and check this article).

If you don't need the telephone and online connection while geocaching, switch to offline mode. This saves an additional hour or two.

misty 2010-06-08 20:06

Re: [Announce] Advanced Geocaching Tool
 
I still need the telephone most of the time while I am out so can't switch to offline mode, but this would be excellent if I was on holiday where I am not bothered about people being able to contact me. So I shall remember that.

I had a look through the link and have installed the 2g/3g app reckon that will make a big difference. I only have the OM weather widget on my desktop, only have one desktop, and just shortcuts to apps on my desktop thats all.

I have switched the brightness down though, I always have it on full...reckon this could make a big difference.

Thanks for all your help. I'll post again next time I use it for an hour or so's caching and see how I get on.

AkiL 2010-06-08 22:11

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by misty (Post 705937)
Akil are you trying to get a fix indoors or while you are out? I just tried it in the house and I got the same problem as you but I find its excellent while out and about for getting a signal.

I normally look at the map and click on the geocache I want to find. Then when it brings the details up I then click on the name of the cache in the top bar (no idea what the technical name for the top bar is) and click download all details. I then click on the top bar again and click set as target.

Your gps arrow should then start whizzing round. If you go to the map then and zoom out far enough you should be able to see the yellow line with the red cross on, that is where you are and the other end on top of the cache icon is where you want to end up.

I am trying to get the fix outdoors, when going on caches. No matter whether i restart the app, or even reboot the phone, its always the same. Other apps seems to work fine, but AGTL not.

Also, my method is exactly as yours, i click on a cache, download details and then click from the top menu "set as target". I get the yellow line on the map from my position to the cache, but no gps arrow, or anything in the gps view. How I find the caches then? In the map view, by constantly clicking the map, thus "manually updating" my position on the map.

My position on the map is accurate, and even other applications (eCoach, Ovi maps) show my position accurately.

I am running the latest firmware PR1.2 and the latest AGTL available from the catalogs. Same problem occurred even before the latest AGTL update, which fixed the cache detail downloads. I have network positioning enabled and the location server is supl.nokia.com. I use 2G/3G applet to switch to 3G when geocaching. I also have the power user kernel installed and have OC'd to 900MHz. In case any of these have some impact on this issue.

webhamster: is there any way I could set up a debug log, for example in the config file, to get some debug information out, to look into this? Or any other way to debug it; note that I do not have any devel tools installed yet, though I've downloaded the maemo sdk image and am tempted to start maemo developing.

As a sidenote; I also tried today adding google maps as a map source, based on your blog post, but so far haven't been able to switch to those maps. It just seems to keep showing open street maps even though I've selected google maps. Maybe something wrong with my config, I need to check that, when I have time.


All times are GMT. The time now is 00:29.

vBulletin® Version 3.8.8