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)

AapoRantalainen 2013-09-13 18:33

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by pterozaurus (Post 1374016)
agtl.log:
screenshoots from the terminal output:

Here is code which cause it skip to every premium-only cahces if free-account is in use (this was way easier than to modify agtl to handle non-complete caches)

/opt/agtl/cachedownload
Modify cachedownloader.py
It is in directory ~/.agtl/updates/ or in /opt/agtl (where first one doesn't need root access, and second needs)

And I'm talking about cachedownloader.py
VERSION = 35
VERSION_DATE = '2013-08-27'

On row 368 (just before "# Title") add these
Code:

        #check for premium only cache
        try:
            doc.get_element_by_id('ctl00_ContentBody_basicMemberMsg')
            print "PREMIUM ONLY, skip"
            return
        except Exception, e:
            print "normal cache, can continue"

NOTE: (If you haven't coded python before) these indentations with white spaces are relevant!

[EDIT]Link to the bug in tracker: https://github.com/webhamster/advanc...ing/issues/180

pterozaurus 2013-09-13 20:59

Re: [Announce] Advanced Geocaching Tool
 
Thank you!
but it dont fix it. Now it crashs at line 382:
Code:

File "/home/user/.agtl/update/cachedownloader.py", line 382 in_parse_page
raise e
IndexError: list index out of range

pterozaurus

pterozaurus 2013-09-14 09:07

Re: [Announce] Advanced Geocaching Tool
 
after testing a while, I remarked that at the ~/.agtl/update/cachedownloader.py file, the inserted code will be removed, when I start agtl via terminal. I have changed all 4 cachedownloader.py (/root/.agtl...; ~/.agtl....; /home/opt/agtl-maemo and /opt/agtl-maemo
Now it is stable an the error is in line 390.
I hope it will help.

pterozaurus

AapoRantalainen 2013-11-11 07:04

Re: [Announce] Advanced Geocaching Tool
 
1 Attachment(s)
I'm the new maintainer of AGTL, read http://danielfett.de/privat,blog,passing-on-agtl
and check new commits on: https://github.com/webhamster/advancedcaching

-----------------
New release for Fremantle/N900: 0.9.1.3
*Downloading caches, showing attributes.
*tuning gps-settings via config-file (disable agps, gps-interval)
*handling network errors
*many more fixes
It is still mainly the same than previous version: 0.9.1.2.
-----------------
There are still work to do, and I hope bug reports and discussion overall.

My top concern is that there are separated N900 and N9 versions. They used same core, but different GUI. N900=hildon, N9=qml.

On N900 (e.g. with this new version):
Code:

cd /opt/agtl-maemo
./core.py  --qml

/opt/agtl-maemo/qmlgui.py:1358: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  self.app = QApplication(sys.argv)
python[3087]: GLIB CRITICAL ** Gtk - gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
Preloading theme "blanco" from cache
file:///opt/agtl-maemo/qml/main.qml:4:1: module "QtMobility.sensors" is not installed
    import QtMobility.sensors 1.1
    ^
  6336      ERROR qmlgui              [<file:///opt/agtl-maemo/qml/main.qml:4:1: module "QtMobility.sensors" is not installed
    import QtMobility.sensors 1.1
    ^  at 0x7a88a0>] // qmlgui.py:1383
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.3 driver, enabling brokenFBOReadBack

And then there are only black window. With ./core.py --qml -v I can see there are error in: self.app = QApplication(sys.argv) which looks very base.
I'm asking help for this.
****
I also test with meecolay (first install CSSU and then meecolay):
Code:

meecolay python ./core.py  --qml -v
And it is somehow working: loading maps and caches works.
Sometimes it change orientation and not back. Maybe gps is not working.
This is just quick check what qml version will look on N900.

peterleinchen 2013-11-11 07:54

Re: [Announce] Advanced Geocaching Tool
 
A new era begins ...

Big THANKS to Daniel/webhamster for creating/maintaining!
And thanks to Aapo for taking over and TIA for the future!

sponka 2013-11-18 23:06

Re: [Announce] Advanced Geocaching Tool
 
Good luck with project! If there's an app I would really miss in my life, that would be AGTL :) Version on my N900 is 0.9.1.2, no update available.

Since I have CSSU I also tested with meecolay and must say I am *very* surprised how smooth map scrolling is.

Thanks,
b.

junnuvi 2014-01-10 11:04

Re: [Announce] Advanced Geocaching Tool
 
Any plans to port AGTL to SailfishOS ?

AapoRantalainen 2014-01-11 11:00

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by junnuvi (Post 1405357)
Any plans to port AGTL to SailfishOS ?

Not plans to port, but make needed modifications that same version can be run on Sailfish/Meego/Maemo.

I don't have Jolla-phone. Maybe someone wants give me one?

AGTL is written in python, which means code is not compiled, so You can just try to use meego's version and report issues.

So far I don't know how you can install missing libraries/dependencies, I hope someone will know and tell us.

1) Download latest meego-version (http://cc.oulu.fi/~rantalai/agtl/agtl-0.9.1.3.tar.gz)
2) Unpack and transfer to the device
(or transfer and unpack)

3) (using terminal)
go to the directory advancedcaching

4) (using terminal) run
python core.py --qml

I got hint that Sailfish has python preinstalled.

Meego version is using: python-pyside.qtgui, python-pyside.qtopengl, python-pyside.qtdeclarative, python-gobject, python-lxml (I don't know which of them are preinstalled on sailfish and what are their names and where to get them if missing).

Another hint: at least python-lxml missing (not preinstalled on Sailfish)

I hope there are ssh-server on sailfish, so you can write commands on your computer and copy/paste logs easily.

peterleinchen 2014-01-11 12:31

Re: [Announce] Advanced Geocaching Tool
 
@aapo:
what about pushing agtl (meego) to OpenRepos?

--
just checked openrepos and rzr has one 0.8.0.7 version in his repo. But on simu installation (N9) I got:

The following packages have unmet dependencies:
advancedcaching: Depends: python-simplejson but it is not installable
E: Broken packages
~ #

using agtl on N900 no need for it, will investigate later...

Garp 2014-01-13 08:07

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by AapoRantalainen (Post 1405602)

1) Download latest meego-version (http://cc.oulu.fi/~rantalai/agtl/agtl-0.9.1.3.tar.gz)
2) Unpack and transfer to the device
(or transfer and unpack)

3) (using terminal)
go to the directory advancedcaching

4) (using terminal) run
python core.py --qml.

tried this on N9 MeeGo Harmattan got this?:
~ # cd /home/user/MyDocs/advancedcaching
/home/user/MyDocs/advancedcaching # python core.py --qml
Traceback (most recent call last):
File "core.py", line 48, in <module>
import cachedownloader
File "/home/user/MyDocs/advancedcaching/cachedownloader.py", line 39, in <module>
import gobject
ImportError: No module named gobject
/home/user/MyDocs/advancedcaching #

nieldk 2014-01-13 08:59

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by Garp (Post 1406036)
tried this on N9 MeeGo Harmattan got this?:
~ # cd /home/user/MyDocs/advancedcaching
/home/user/MyDocs/advancedcaching # python core.py --qml
Traceback (most recent call last):
File "core.py", line 48, in <module>
import cachedownloader
File "/home/user/MyDocs/advancedcaching/cachedownloader.py", line 39, in <module>
import gobject
ImportError: No module named gobject
/home/user/MyDocs/advancedcaching #

Missing python-gobject ?

Garp 2014-01-13 10:22

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by nieldk (Post 1406047)
Missing python-gobject ?

Yeah but why, shouldn't it be a part of the package and if no where to find it?

junnuvi 2014-01-16 16:43

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by AapoRantalainen (Post 1405602)
Not plans to port, but make needed modifications that same version can be run on Sailfish/Meego/Maemo.

I don't have Jolla-phone. Maybe someone wants give me one?

AGTL is written in python, which means code is not compiled, so You can just try to use meego's version and report issues.

If you have N9 install Sailfish on it ;-)

Unfortunately it looks like Sailfish does not include PySide.

https://wiki.merproject.org/wiki/Sai...on_Development

"There are currently two options for developing Python Qt 5 apps on Sailfish OS: PyOtherSide and PyQt. PySide does not currently support Qt5."

I tried to install PyOtherSide but that I think it will also need some changes to AGTL.

Shadowdog 2014-06-06 07:36

Re: [Announce] Advanced Geocaching Tool
 
With version 0.9.1.1 i have the problem that i canīt update caches.
I tried to compile version 0.9.1.3 with Aapoīs instruction, but i get the same error as Garp. Can anyone help with one of this problems so i can use AGTL?? :rolleyes: Thanks!

AapoRantalainen 2014-06-06 15:28

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by Shadowdog (Post 1428460)
With version 0.9.1.1 i have the problem that i canīt update caches.
I tried to compile version 0.9.1.3 with Aapoīs instruction, but i get the same error as Garp. Can anyone help with one of this problems so i can use AGTL?? :rolleyes: Thanks!

I don't anymore know how Harmattan works, you need to do:
Code:

root
apt-get install python-gobject

Is this something you can do with Harmattan? (Or how it is transposed to Harmattan?)

-----
Whole point is that each application and library forms one 'package' and then application (e.g. agtl) depends on library (e.g. python-gobject).

I'm not planning to do agtl version which includes external libraries (off course anybody is free to do that).

peterleinchen 2014-06-06 19:31

Re: [Announce] Advanced Geocaching Tool
 
Yes. Very similar, just exchange 'root' with 'devel-su'.

But the second part I do not understand?
If agtl on N9 needs python-gobject then it should be in the dependencies of agtl, or what?

Shadowdog 2014-06-07 10:02

Re: [Announce] Advanced Geocaching Tool
 
Thanks for your reply!! :cool:
I found that gobject is already installed on my N9 (in python 2.6.6 modules).
Your advice how to start agtl 0.9.1.3 worked finally when i reinstalled version 0.9.1.1, but after starting agtl via terminal (command: "python core.py --qml") there is no GPS available.
Sadly in version 0.9.1.1 i canīt download any caches. :(

Can you make a .deb package for the newest version of agtl, that
would be really great!?? :rolleyes: :cool:

Because i tried several versions and cache download never or only for a few caches work and never totaly correctly.

AapoRantalainen 2014-06-07 15:35

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by peterleinchen (Post 1428549)
If agtl on N9 needs python-gobject then it should be in the dependencies of agtl, or what?

python-gobject is in dependency list of agtl, but dependencies only work when installing from deb (e.g. dpkg), and really works only when installing from repository (e.g. apt-get).

----
Deb for Harmattan:
http://cc.oulu.fi/~rantalai/agtl/adv....9.1.3_all.deb
I don't currently have device with Harmattan, so not tested.

I totally forgot that aegis-thing (I think it is not permitting gps if not properly packed inside deb)

Shadowdog 2014-06-09 17:32

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Deb for Harmattan:
http://cc.oulu.fi/~rantalai/agtl/adv....9.1.3_all.deb
I don't currently have device with Harmattan, so not tested.

I totally forgot that aegis-thing (I think it is not permitting gps if not properly packed inside deb)
Sadly the installation of the .deb package fails on my phone.
I have also noticed that the vers. 0.9.1.3. deb file is smaller then previous versions.
Is it possible that something is missing???
Thanks!

AapoRantalainen 2014-06-13 12:40

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by Shadowdog (Post 1428853)
Sadly the installation of the .deb package fails on my phone.
I have also noticed that the vers. 0.9.1.3. deb file is smaller then previous versions.
Is it possible that something is missing???
Thanks!

Yes, it is possible that something is wrong. I would like to see some error messages about installing. Can you install from commandline?

Code:

devel-su
dpkg -i advancedcaching_0.9.1.3_all.deb

I can't currently test installation, but I can open deb and it seems to contains everything.
Code:

ar x advancedcaching_0.9.1.3_all.deb
tar xvf control.tar.gz
tar xvf data.tar.xz


sponka 2014-06-13 14:52

Re: [Announce] Advanced Geocaching Tool
 
Here's my output from terminal:

Code:

/home/user/MyDocs/Downloads # dpkg -i advancedcaching_0.9.1.3_all.deb
Aegis rejecting advancedcaching_0.9.1.3_all.deb: opt/advancedcaching/launch not installed by the package
aegis-deb-release: Missing ':' in '<br clear="all">
</big>
</body>
</html>
'
aegis-deb-release: Missing ':' in '<br clear="all">
</big>
</body>
</html>
'
aegis aborting dpkg -- all listed package files rejected
Compilation failed in require.
/home/user/MyDocs/Downloads #


Edit: I'm using 0.9.1.1 and parser 35 (2013-08-27) -- have no problems with caches.

AapoRantalainen 2014-06-14 13:30

Re: [Announce] Advanced Geocaching Tool
 
Unfortunately I can't do anything more for Meego version. I haven't found easy tutorial how to use aegis. If anybody knows what to do, I'm willing to fix building scripts.

This is complete tutorial how debs for meego have done. I encourage anybody to test it by yourself and report what is missing.

0) ( Debian-based/derived ) system with: git, dpkg-dev, perl

1) git clone https://github.com/webhamster/advancedcaching.git
2) cd advancedcaching/build/
3) ./make-meego-debuild.sh

-> got ../dist/meego-debuild/advancedcaching-0.9.1.3/advancedcaching_0.9.1.3_all.deb


Here is online readable make-meego-debuild.sh: https://github.com/webhamster/advanc...ego-debuild.sh

And aegis-builder, which it is using: https://github.com/webhamster/advanc.../aegis-builder

Shadowdog 2015-03-13 21:40

Is there still somebody using this programm on the N9????
I still have the problem that the cache download/update stops after a few caches (mostly around 10) and the already downloaded once are then discard and don't appear in the map. Sadly the update function is not working and i'm still on version 0.9.1.1.

Can someone provide a never version .deb or help me with making a newer version .deb from the github source files?? :rolleyes:
The tutorial from AapoRantalainen is not working for me, as i always get the feedback that i have no permissions.

AapoRantalainen 2015-03-22 18:13

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by Shadowdog (Post 1463991)
The tutorial from AapoRantalainen is not working for me, as i always get the feedback that i have no permissions.

Copy-paste your error message here. I just tested and it works for me.

Is your current directory mounted with noexec?

Shadowdog 2015-03-26 20:28

Re: [Announce] Advanced Geocaching Tool
 
1 Attachment(s)
Attached is a screenshot of my terminal window.
I hope the picture has a resolution you can work with.
Thanks that you take your time.

AapoRantalainen 2015-03-27 19:15

Re: [Announce] Advanced Geocaching Tool
 
Ok, here is deb for meego:
http://www.cs.helsinki.fi/u/rantalai....9.1.3_all.deb


Quote:

Originally Posted by Shadowdog (Post 1465050)
Attached is a screenshot of my terminal window..

Yeah, that was one way to show it. :)
I didn't expect you are doing it on N9, because any Linux would work. I suggested you install ssh-server on N9 and connect using computer and ssh-client, so you can use copy-paste.

Shadowdog 2015-03-27 20:25

Thanks for the .deb, sadly it's not working.
Now i get this error message:

/home/user/MyDocs/Downloads # dpkg -i advancedc
aching_0.9.1.3_all.deb
Aegis rejecting advancedcaching_0.9.1.3_all.deb: opt/advancedcaching/launch not installed by the package
aegis aborting dpkg -- all listed package files rejected
Compilation failed in require.

nieldk 2015-03-28 05:37

Re: [Announce] Advanced Geocaching Tool
 
# AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i .......

Shadowdog 2015-03-28 07:49

Quote:

Originally Posted by nieldk (Post 1465144)
# AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i .......

Thanks for the reply, but sadly it doesn't make a change. I get the same error message as before. I have installed Coderus's aegis hack, can this be the source of the problem?

nieldk 2015-03-28 09:25

Re: [Announce] Advanced Geocaching Tool
 
Ok, the /opt/advancedcaching/launch file is not installed.

You could try

dpkg -x (debfile name) /

Then, create the /opt/advancedcaching/launch containing these lines

#!/bin/sh
cd /opt/advancedcaching/
python core.py --qml

AapoRantalainen 2015-03-28 11:11

Re: [Announce] Advanced Geocaching Tool
 
Quote:

Originally Posted by nieldk (Post 1465155)
Ok, the /opt/advancedcaching/launch file is not installed.

File it is in deb-package
Code:

wget http://www.cs.helsinki.fi/u/rantalai/agtl/meego/advancedcaching_0.9.1.3_all.deb
ar x advancedcaching_0.9.1.3_all.deb
tar xvf data.tar.xz
cat ./opt/advancedcaching/launch
#!/bin/sh
cd /opt/advancedcaching/
python core.py --qml

How it is not installed?


I have tried to find documentation how to build package which aegis accepts. This is only I have found and I have no idea why it is not working:

Code:

aegis-deb-util  --add-manifest --manifest=meego-debuild/_aegis --add-digsigsums='/opt/advancedcaching/launch'
advancedcaching_0.9.1.3_all.deb

Where content of file meego-debuild/_aegis is
Code:

<aegis>
        <request policy="add">
                <credential name="Location" />
                <credential name="GRP::video" />
                <credential name="GRP::pulse-access" />
                <for path="/opt/advancedcaching/launch" />
        </request>
</aegis>


Lirion 2015-03-31 22:21

Any news there?

recoder 2015-04-28 13:49

Re: [Announce] Advanced Geocaching Tool
 
Great to see a new AGTL version out! I was able to install by extracting over the previous version. The launcher was thus already in place. However, I was hoping that the new version would fix the problem that caches would not download any more. But still I'm unable to download new caches or update old ones. Parser is v36 from 2013-10-11, no updates found. My last update is from 2015-03-20. I guess geocaching.com changed after that. Is anybody else able to download caches?

AapoRantalainen 2015-05-06 16:01

Re: [Announce] Advanced Geocaching Tool
 
There are now parser v37 in github, and version 0.9.1.4 for maemo/meego:
http://www.cs.helsinki.fi/u/rantalai/agtl
Seems it works.

recoder 2015-05-18 18:12

Re: [Announce] Advanced Geocaching Tool
 
Thanks Aapo - AGTL works great again!

I was thinking about improving AGTL by adding some kind of caching for the map tiles. Now it loads every tile again and again if you zoom in and out and pan back and forth. It is very network data intensive and I had great problems abroad with bad network connection. I have almost no experience in python but I figure I can learn, though I'm quite busy. Or is somebody already working on this?

Shadowdog 2015-05-18 18:51

Re: [Announce] Advanced Geocaching Tool
 
@Aapo

Sadly i still get

Quote:

home/user/MyDocs/Downloads # dpkg -i advancedcaching_0.9.1.4_all.deb
Aegis rejecting advancedcaching_0.9.1.4_all.deb: opt/advancedcaching/launch not installed by the package
when i try to install AGTL from the newest package.
I tried with version 0.9.1.1 installed and without it, i don't know what else i could do. :(
Version 0.9.1.1 is being installed without any problems. But sadly now i'm stuck with parser version 32.

recoder 2015-05-28 17:12

Re: [Announce] Advanced Geocaching Tool
 
@Shadowdog
Try the following suggested earlier in this thread:

dpkg -x (debfile name) /

It worked for me. It extracts the stuff in the deb package over the old installation.

Shadowdog 2015-05-29 21:52

Re: [Announce] Advanced Geocaching Tool
 
@recoder
I tried this already, but it didn't help for me.
Although it installed the newest version of AGTL, but than the GPS and data connection were not working any more. :( :confused:

Librari 2015-05-30 18:51

Re: [Announce] Advanced Geocaching Tool
 
Hi all!

Same problem here with a new AGTL version installing.
GPS won't fire up if just extract all over the old version. Why?

Anyway..
Here is how i got it working:

1. Do fresh advancedcaching_0.9.1.1_all.deb install
( ~ # dpkg -i /home/user/MyDocs/Documents/advancedcaching_0.9.1.1_all-1.deb)
2. Go to AGTL github project page and download
cachedownloader.py and downloader.py (or clone whole project with:~ $ git clone https://github.com/webhamster/advancedcaching.git /home/user/)
3. Copy those 2 files over the old ones in /opt/advancedcaching/
(~ # cp -ri /home/user/advancedcaching/advancedcaching/downloader.py /opt/advancedcaching/
~ # cp -ri /home/user/advancedcaching/advancedcaching/cachedownloader.py /opt/advancedcaching)
4. and hope it works :D if dont, try clear your update folder in /home/user/.agtl/updates

Still it would be nice to have 0.9.1.4 working maybe with some new features described earlier in this post.

And sorry about typoes etc, im first time with linux :)

Shadowdog 2015-05-31 21:17

Re: [Announce] Advanced Geocaching Tool
 
@Librari
Thanks for the hint, now i have a working AGTL version 0.9.1.1. :cool: :D


All times are GMT. The time now is 17:50.

vBulletin® Version 3.8.8