Notices


Reply
Thread Tools
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#361
Originally Posted by pterozaurus View Post
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

Last edited by AapoRantalainen; 2013-09-13 at 19:28.
 

The Following User Says Thank You to AapoRantalainen For This Useful Post:
Posts: 9 | Thanked: 1 time | Joined on Apr 2012 @ suedbaden
#362
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
 
Posts: 9 | Thanked: 1 time | Joined on Apr 2012 @ suedbaden
#363
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
 
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#364
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.
Attached Images
 
 

The Following 7 Users Say Thank You to AapoRantalainen For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#365
A new era begins ...

Big THANKS to Daniel/webhamster for creating/maintaining!
And thanks to Aapo for taking over and TIA for the future!
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 3 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 245 | Thanked: 233 times | Joined on May 2010 @ Ljubljana, Slovenia
#366
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.
 

The Following User Says Thank You to sponka For This Useful Post:
Posts: 80 | Thanked: 51 times | Joined on Feb 2010 @ Finland
#367
Any plans to port AGTL to SailfishOS ?

Last edited by junnuvi; 2014-01-10 at 11:09.
 
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#368
Originally Posted by junnuvi View Post
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.
 

The Following 3 Users Say Thank You to AapoRantalainen For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#369
@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...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2014-01-11 at 12:39.
 
Posts: 697 | Thanked: 137 times | Joined on Jul 2012 @ Hillerød, DK
#370
Originally Posted by AapoRantalainen View Post

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 #
__________________
OK

Last edited by Garp; 2014-01-13 at 08:15.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:34.