maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] modRana: a flexible GPS navigation system (https://talk.maemo.org/showthread.php?t=58861)

handaxe 2015-01-17 15:02

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by CRCulver (Post 1456974)
Map downloading for offline use isn't working for me. Sure, I can grab tiles when I have a network connection. However, if I close Modrana, turn the network connection off, and open Modrana again, it show only a "Downloading failed" message for each tile instead of the actual tile. If I look at MyDocs/.maps/, the tiles are there, it's just that Modrana won't actually display them.

Confirmed v 0.50.5

gianko 2015-01-17 23:30

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1456534)
I would like to eventually add OSM based local/POI search, but it will be quite a bit more complicated than using the simple Google API - but also much more powerful! :) It would probably work fine with a preset list containing relevant tags for search, but free form search would be most probably limited to advanced users knowing how the OSM tags work, given how the OSM data is structured.

As for the other search options, address search is using Nominatim (so it is based on OSM data) and Wikipedia search goes over Geonames.

I'm very familiar with osm, and the tags. I also know nominatim and the osm api xapi and overpass api. So i will be glad to help in defining a preset list or any other task

MartinK 2015-01-20 23:29

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by handaxe (Post 1457037)
Confirmed v 0.50.5

Weird - does this happen for all layers or only specific ones ? Maybe also try to enable everything in Options->Debug->Tiles and then look to the log if it has something relevant.

Quote:

Originally Posted by gianko (Post 1457074)
I'm very familiar with osm, and the tags. I also know nominatim and the osm api xapi and overpass api. So i will be glad to help in defining a preset list or any other task

Sure, that would be nice! :)

I've dumped the current search presets to a wiki article as JSON:
Mapping OSM tags to modRana search preset

Thanks in advance for any suggestions on both how to incorporate OSM tag search to this format & any actual tag combos! :)

MartinK 2015-01-25 13:56

Re: [Announce] modRana: a flexible GPS navigation system
 
modRana 0.50.1 has been released! :)

The main addition is support for track logging in the Qt 5 GUI, accessible from the main menu with Tracks->Record.
The track recording page is not yet as full featured as in the GTK GUI, but still perfectly usable.

Also on when recording a track on on Sailfish OS modRana makes sure to enable keep alive, so that recording can continue even when the screen is turned off and the device would normally enter deep sleep. I have not tested this extensively though, so feedback if this works for you or not is welcome! :)

BTW, this is track recording only, tracklog display and management is not yet available in the Qt 5 GUI, but definitely planed. :)

Changelog
Code:

* Sun Jan 25 2015 Martin Kolman - 0.51.1
 - add track logging support to the Qt 5 GUI
  - accessible from Tracks->Record
  - output to the GPX format
  - path to the tracklogs folder is shown
  - option to symlink the tracklogs folder to ~/Documents on Sailfish OS
  - robust dual temp file storage mechanism
  - tracklog are restored on next start if shutdown or crash occurs during logging
  - it is possible to pause started logging
  - proper landscape and protrait orientation layouts
  - keep alive support on Sailfish OS
  - this should assure uninterrupted track recording even with screen turned off
 - make track logging Python 3 compatible
 - improved track logging log messages
 - fix free space dispplay on Android
 - QML -> Python logging now should be able to handle any QML/Javascript objects


jankratochvil 2015-01-25 14:25

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1458088)
modRana 0.50.1 has been released! :)
...
Code:

* Sun Jan 25 2015 Martin Kolman - 0.51.1

I think you mean 0.51.1 (and not 0.50.1). Although at extras-devel I see as the latest version 0.50.5 (yes, N900 is old...).

But I am here to make a bugreport - 0.50.4->0.50.5 on N900 (both default and QML) has a regression - I have 2GB of tiles cached in sqlite but since 0.50.5 I do not see any tiles displayed. I haven't tried to download new tiles so that I do not corrupt my existing sqlite db. BTW thanks for all the releases.

handaxe 2015-01-25 14:33

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by jankratochvil (Post 1458093)
But I am here to make a bugreport - 0.50.4->0.50.5 on N900 (both default and QML) has a regression - I have 2GB of tiles cached in sqlite but since 0.50.5 I do not see any tiles displayed. I haven't tried to download new tiles so that I do not corrupt my existing sqlite db. BTW thanks for all the releases.

See this and linked posts therein.

I will belatedly do as MartinK suggests and see if I can get a log or further info.

handaxe 2015-01-25 16:31

Re: [Announce] modRana: a flexible GPS navigation system
 
1 Attachment(s)
Right. Modrana 0.50.5 n900 CSSU-thumb kp53

Seems that with no active internet connection, no map will display, despite the previous session having downloaded and displayed the tile. Cache set higher than default 150 MB.

As others have noted, the tiles clearly get downloaded, because one sees them displayed in the session with an active internet connection. It appears to be the case with any of the map sources (note, I tested a few not all). I am using sqlite storage.

Log attached.

CRCulver 2015-01-25 20:11

Re: [Announce] modRana: a flexible GPS navigation system
 
I upgraded today to V0.51.1 git:modrana-0.50.5-51-g606845d, newly pushed to the Maemo repos, but the problem with no downloaded tiles displaying without a network connection remains.

Furthermore, why are there still icons on the N900 for both Modrana and Modrana QML, if the QML version has been abandoned and clicking on that icon just opens the plain GTK version?

MartinK 2015-01-26 00:34

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by CRCulver (Post 1458146)
I upgraded today to V0.51.1 git:modrana-0.50.5-51-g606845d, newly pushed to the Maemo repos, but the problem with no downloaded tiles displaying without a network connection remains.

Turns out I've kinda totally broke tile loading from local storage in (at least :P) 0.51.1. When fixing this I've also found some other issues:
  • if layer type/extension changes, old stored map tiles became inaccessible
    • Example: extension was jpg before and is png now, modRana searches for png and ignores jpg
    • this probably happened for users of the MapQuest EU layer when it's extension was recently changed to improve compatibility with PoorMaps on Sailfish OS & to respect the actual file format of the tiles
  • no checking if the stuff modRana finds is actually an image
  • no attempt to find an alternative image file for the given tile coordinates if the first tried one turns out to either not exist or is not an image
So when I was at it I fixed all these issues listed above and made tile loading from local storage much more robust. :)

ModRana now checks all loaded tiles and logs if they are not images, tile loading is now extension independent. ModRana now even goes so far as to iterate over all other available tile files for the given tile coordinates if the primary coordinate is not found. This effectively means you can now have tile images named like this:

Code:

4/6/10.png
4/6/10.jpg
4/6/10.this_is_an_image

Where 10.png is not an image (html error page, 0 bytes, etc.) and 10.jpg is a png image and 10.this_is_an_image is a gif.

Lets say that the layer uses png by default, so modRana will try 10.png first, finds it is not an image so it tries other files with the 4/6/10 coordinates and returns the content of either 10.jpg or 10.this_is_an_image as both contain image data in a supported format. :)

modRana 0.51.2 has been released!
I've also released a new modRana containing all these fixes and improvements. Looking forward to your feedback! :)

Changelog
Code:

* Mon Jan 26 2015 Martin Kolman - 0.51.2
- fix tile loading from local storage
 - I've apparently managed to break it in the previous version :P
- make tile loading from local storage more robust
 - it is now file extension independent
  - modRana will fetch any suitable image for the given tile coordinates
  - this should prevent stored images from becoming inaccessible it layer extension changes
 - modRana now detects if the tile that has been loaded is not an image
  - all such cases are now logged
  - for files modRana tries to find another file with the same coordinates that is an image
- improved log messages for tile loading debugging

Quote:

Originally Posted by CRCulver (Post 1458146)
Furthermore, why are there still icons on the N900 for both Modrana and Modrana QML, if the QML version has been abandoned and clicking on that icon just opens the plain GTK version?

Well, it should still work - I've just kinda not checked if it does in ages. ;-)

Yeah, it would be good to do something about it. One option is to just remove it, which would also get rid of all the Qt dependencies modRana currently drags in. Another possibility would be to make it into a subpackage that is not installed by default. BTW, any idea is anyone is still using the QML/Qt 4 GUI ?

nokiabot 2015-01-26 04:32

Re: [Announce] modRana: a flexible GPS navigation system
 
Hell no let the qml be there as is maybe a couple of fixes its so slick ! Add more tiles or tell us how to add more ;

pichlo 2015-01-26 09:46

Re: [Announce] modRana: a flexible GPS navigation system
 
(About modRana QML...)

Quote:

Originally Posted by MartinK (Post 1458181)
Yeah, it would be good to do something about it. One option is to just remove it, which would also get rid of all the Qt dependencies modRana currently drags in. Another possibility would be to make it into a subpackage that is not installed by default. BTW, any idea is anyone is still using the QML/Qt 4 GUI ?

A sub- (or separate) package, please! ;)

CRCulver 2015-01-26 11:22

Re: [Announce] modRana: a flexible GPS navigation system
 
I have upgraded today to V0.51.2 git:modrana-0.51.2, but the bug remains that no downloaded tiles are visible without a network connection.

EDIT: Hmm, it seems to work now after a couple of close/re-open cycles. Maybe it temporarily didn't work because I changed the storage backend in the settings.

handaxe 2015-01-26 11:39

Re: [Announce] modRana: a flexible GPS navigation system
 
Modrana V0.51.2 maemo solves the off-line display bug for me. Thanks.

Yahoo maps have gone AWOL. Anyone else see this?

MartinK 2015-01-26 13:36

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by CRCulver (Post 1458231)
I have upgraded today to V0.51.2 git:modrana-0.51.2, but the bug remains that no downloaded tiles are visible without a network connection.

EDIT: Hmm, it seems to work now after a couple of close/re-open cycles. Maybe it temporarily didn't work because I changed the storage backend in the settings.

Yep, backend switching still also has a lot to be desired. Same thing for batch downloading tiles in the minimal network use mode - the "Loading..." place holder tiles will remain in the tile display cache and the newly downloaded tiles won't show up until the "Loading..." tiles are either evicted from the cache or modRana is restarted.

I plan to fix this soon, most probably by flushing the display cache after switching backends & once batch tile download finishes.

gianko 2015-01-26 20:46

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1457433)
I've dumped the current search presets to a wiki article as JSON:
Mapping OSM tags to modRana search preset

Thanks in advance for any suggestions on both how to incorporate OSM tag search to this format & any actual tag combos! :)

Ok, i started to look at that.

In the meanwhile, i remember Nominatim can do poi search according to this list of special phrases in different languages. it can help?

http://wiki.openstreetmap.org/wiki/N...pecial_Phrases

MartinK 2015-01-27 00:02

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by gianko (Post 1458327)
Ok, i started to look at that.

Thanks! :)

Quote:

Originally Posted by gianko (Post 1458327)
In the meanwhile, i remember Nominatim can do poi search according to this list of special phrases in different languages. it can help?

http://wiki.openstreetmap.org/wiki/N...pecial_Phrases

Interesting! This can actually be already used as the modRana address search functionality feeds the search query directly to Nominatim. :)

I've tried to search for "staveniště Brno" ("construction site Brno" in Czech) and it indeed returned various active or recently active construction sites in the city of Brno! :)

So I guess a documentation update is needed to make the modRana users aware of this (or any other useful) features of the Nominatim search service. :) I'll add a note to the modRana wiki page, but I think some sort of short in-application help text with tips and tricks for searching would also be nice and not that difficult to add. :)

MartinK 2015-01-29 19:28

Re: [Announce] modRana: a flexible GPS navigation system
 
FOSDEM

I'll be on the FOSDEM conference in Brussels this weekend, mostly on or around the Fedora stand. So if you are there too, don't forget to drop by to say hi. :)

gianko 2015-02-02 15:44

Re: [Announce] modRana: a flexible GPS navigation system
 
about the tag combos, is possible to make querys to overpass api?

on overpass turbo there is a nice wizard, you search amenity=fuel and fuel:lpg=yes

an it shows all the relative POIs in the bounding box

Code:

{
  "version": 0.6,
  "generator": "Overpass API",
  "osm3s": {
    "timestamp_osm_base": "2015-02-02T15:26:02Z",
    "copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
  },
  "elements": [

{
  "type": "node",
  "id": 226914361,
  "lat": 41.8795571,
  "lon": 12.4401874,
  "tags": {
    "amenity": "fuel",
    "brand": "Agip",
    "fuel:lpg": "yes",
    "name": "Agip",
    "operator": "Agip"
  }
},
{
  "type": "node",
  "id": 226929226,
  "lat": 41.8616080,
  "lon": 12.3755945,
  "tags": {
    "amenity": "fuel",
    "brand": "Agip",
    "fuel:cng": "yes",
    "fuel:lpg": "yes",
    "name": "Agip",
    "operator": "Agip"
  }
},
{
  "type": "node",
  "id": 227645953,
  "lat": 41.8613069,
  "lon": 12.5340322,
  "tags": {
    "amenity": "fuel",
    "brand": "Agip",
    "fuel:cng": "no",
    "fuel:lpg": "yes",
    "name": "Agip",
    "operator": "Agip"
  }
},

with the query
Code:

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“amenity=fuel and fuel:lpg=yes”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “amenity=fuel and "fuel:lpg"=yes”
  node["amenity"="fuel"]["fuel:lpg"="yes"]({{bbox}});
  way["amenity"="fuel"]["fuel:lpg"="yes"]({{bbox}});
  relation["amenity"="fuel"]["fuel:lpg"="yes"]({{bbox}});
);
// print results
out body;
>;
out skel qt;


skanky 2015-02-02 21:48

Re: [Announce] modRana: a flexible GPS navigation system
 
Hi MartinK, did you get a chance to look at the Virtual Earth UK OS maps issue on Sailfish? Not urgent (obviously), but it does prevent one of my two main uses for the application (I currently use my n900 which already had them downloaded for that).

Not sure there is anything I can do to help, but let me know if there is.

nokiabot 2015-02-03 04:36

Re: [Announce] modRana: a flexible GPS navigation system
 
whats up with 3d i wanna dich the flithy tiles ;

jmo707 2015-03-03 12:33

Re: [Announce] modRana: a flexible GPS navigation system
 
Hi MartinK. First of all: thanks for this great software! I had it working a couple of times (before having to flash my N900 because reasons :P) but never could get the full of it. After my last flashing I'm reaching a sweet point where I've only to refine the applications in use.

Well, given that, it's the first time I have this problem: when I start modrana from my device (icons or command line) the tiles never load. They just stay in "Loading". I've changed the obvious options several times and tried on wifi and gprs, but "obvious" is very relative. I wanted to ask you how can I trace this problem.

On the other hand, I don't know if there is any load difference between the three installed executables of modrana (modrana, modrana-gtk and modrana-qml) On my N900 the three look the same and, at least for what I could see on htop, consume the same amount of memory.

biketool 2015-03-03 12:41

Re: [Announce] modRana: a flexible GPS navigation system
 
JMO707, if you choose one like Google earth or satellite it will work, Open Street Maps and some of the other free options give me problems. There are tricks in the thread but I currently use Sygic for mapping and ModRana for Google satellite when choosing campsites.

jmo707 2015-03-03 19:37

Re: [Announce] modRana: a flexible GPS navigation system
 
Hi biketool, thanks for answering.
When you say "choose one like Google earth or satellite" do you mean as Main map on Map layers? I've already tried that.
It's strange, because, as I said, using ssh to start modrana---

[minutes later]

Ok. I've found it to be a permissions problem (doh!)
As root modrana loads the tiles, but no as user. Which permissions do you have set on .maps folder? Mine are this:

Quote:

/home/user/MyDocs/.maps # ls -l
drwxr-xr-x 2 root root 4096 Mar 3 09:13 OpenCycleMap
drwxr-xr-x 8 root root 4096 Mar 3 09:07 OpenStreetMap I
-rw-r--r-- 1 root root 3072 Mar 3 09:09 modrana_poi.db
drwxr-xr-x 3 root root 4096 Feb 28 20:35 monav_data
-rw-r--r-- 1 root root 3072 Mar 3 09:12 poi.db

pichlo 2015-03-03 19:48

Re: [Announce] modRana: a flexible GPS navigation system
 
Code:

BusyBox v1.23.0 (Debian 1.23.0power1+thumb0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ ls -l /home/user/MyDocs/.maps/
drwxrwxrwx  19 user    root        16384 Nov 26 09:26 OpenStreetMap I
drwxrwxrwx  20 user    root        16384 Dec 10 14:49 mapquest_eu
-rwxrwxrwx    1 user    root          3072 Nov 26 09:26 modrana_poi.db
drwxrwxrwx    2 user    root        16384 Nov 26 09:26 monav_data
~ $

How on earth did you manage to get the permissions as you did? Did you format your MyDocs as ext2 or what?

jmo707 2015-03-03 23:06

Re: [Announce] modRana: a flexible GPS navigation system
 
In fact yes, but as ext4! I solved my problem by changing the owners of .maps and his contents to user.root

Thanks for your help =)

sixwheeledbeast 2015-03-04 15:30

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by jmo707 (Post 1462902)
In fact yes, but as ext4! I solved my problem by changing the owners of .maps and his contents to user.root

I always thought it wasn't recommended to make MyDocs an ext partition due to it breaking a large portion of applications. So don't rule out other applications having issues along the way.

MartinK 2015-03-04 23:37

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by sixwheeledbeast (Post 1462996)
I always thought it wasn't recommended to make MyDocs an ext partition due to it breaking a large portion of applications. So don't rule out other applications having issues along the way.

Well, at least modRana should have no issues with storing map data to an EXT formatted MyDocs - as long as the access permissions allow it. ;)

Using EXT or some other sane (semi)modern filesystem could help with the space wastage that happens due to the thousands of small tile image files, which is especially bad on FAT32 used for MyDocs by default.

This can of course be fixed/worked-around by using sqlite tile storage, but then you can't share tiles with another navigation app (as unfortunately no other Maemo navigation software supports the sqlite tile storage format modRana uses).

nokiabot 2015-03-10 03:48

Re: [Announce] modRana: a flexible GPS navigation system
 
any recent progress on 3d ?

marmistrz 2015-03-10 06:10

Re: [Announce] modRana: a flexible GPS navigation system
 
Any recent progress on mapnik? :D

nokiabot 2015-03-20 05:27

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1030987)
Mieru, my other Python app is already using Clutter for a part of its interface. The speed is OK and I have not noticed any Clutter related crashes. So basically I have all the needed tools - now I just need to sit down and start writing the code. :)

I have also developed custom kinetic scrolling code for Mieru, which should be also usable in modRana to enable kinetic scrolling for the (Clutter accelerated) map screen. Another use could be for Hildon independent kinetic-scrollable lists.

yes mieru is fast and cute
is there possiblity of using hw accleration on modrana ?
as using modrana more and more i.e becoming the go to app for navi the interface is feeling more and more cluncky i rather give it a -10 out of 10 considering the fluidity of your other apps . the concept is good but feels like a jet engine fitted to a bullock cart
maybe a release focusing solely on speed and ui is needed.
anybody thinking same ?

taixzo 2015-03-22 01:01

Re: [Announce] modRana: a flexible GPS navigation system
 
An issue on Sailfish OS: volume buttons zoom the Modrana window instead of changing the volume, even when it's not the active application.

MartinK 2015-03-22 11:15

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by marmistrz (Post 1463606)
Any recent progress on mapnik? :D

I finally got to trying the Python Mapnik example, and it seems to be working! :) This is the resulting image from the example, rendered on my N900:
http://modrana.org/images/python_mapnik/world.png

I have encountered a couple of issues I had to fix before I was able to make the image:

Mapnik requiring Property setter on Python 2.5

The Python 2.5 @property decorator does not have the setter yet. This can be faked around by overriding the Python 2.5 property with a newer one before importing the mapnik module:

Code:

wget https://raw.githubusercontent.com/M4rtinK/modrana/master/core/backports/__init__.py
mv __init__.py fake.py
python
>>>import fake
>>>import mapnik

Mapnik looking for libraries in the wrong path

Next I was getting errors when trying to create the shape data source. From StackOverflow I've found this is caused by incorrectly configured Mapnik lib path. In my case it was expecting /lib/mapnik but the files were in /usr/lib/mapnik and I've fixed this by creating a symlink:

Code:

# cd /lib
# ln -s /usr/lib/mapnik/ mapnik

After I did these two tweak I have been able to complete the example and render the world map image. :)

Also even though both can be worked around, it should be possible to fix both at packaging level to make workarounds unnecessary.

Offline map rendering in modRana WHEN ?

Even though this is certainly a step in the right direction for offline map rendering in modRana, it will still take some time. :) The example I've tried is very basic and there might still be some breakage in other more advanced parts of Mapnik I have not tried out yet.

And even more importantly I'll have to investigate what data source to use for usable offline map rendering. The example data source (a single shape file) and style are really simple, but for on the fly rendering on a high zoom level much more data and a much more complicated style will be needed. The data for offline map rendering also needs to be simple to obtain for modRana users. So quite a lot of interesting "challenges" all around. :)

In short, this is moving in the right direction but will need some time. :)

PS.: Thanks a lot to marmistrz yet again for the Mapnik port! :)

MartinK 2015-03-22 11:22

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by nokiabot (Post 1464468)
yes mieru is fast and cute
is there possiblity of using hw accleration on modrana ?
as using modrana more and more i.e becoming the go to app for navi the interface is feeling more and more cluncky i rather give it a -10 out of 10 considering the fluidity of your other apps . the concept is good but feels like a jet engine fitted to a bullock cart
maybe a release focusing solely on speed and ui is needed.
anybody thinking same ?

Where are you suing it - on the N900 or on the Jolla ? and if you are on the N900, are you using the classic (GTK) interface or the QML one ?

Also, what do you mean by getting more clunky - do you mean it is getting slower if you are running it for extended periods of time ?

Quote:

Originally Posted by taixzo (Post 1464620)
An issue on Sailfish OS: volume buttons zoom the Modrana window instead of changing the volume, even when it's not the active application.

You are right! :P I was pretty sure I disabled volume key usage when the modRana window looses focus but looks like I forgot to do it. :D Should be easy to fix though. :)

BTW, do you plan to use modRana to show geographic search results with your Saera port on Sailfish OS like back then with Saera on the N900? :)

nokiabot 2015-03-22 14:08

Re: [Announce] modRana: a flexible GPS navigation system
 
suing :eek: no no
on n900 it gets slow ofen mainly when left in background
one improvment i have found is no tile download failures as of late .
navigating menus is cubersome with up down arrows making them scrollable would be useful
slider or double tap for fast zooming in out
there should be a tile for map switching as its cubersome diving deep in the menu for it
clicking on maps is not possible so most info from osm is not usable as in marble i can click anywhere and select adreess info same for google maps i.e bus stops and such names are not shown only icon
ui style is nice but looks awful not complaining :d i am making a few icons in png if that helps
anyway i think as mapink is progressing these issues can be dealt later on

taixzo 2015-03-22 17:24

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1464634)
You are right! :P I was pretty sure I disabled volume key usage when the modRana window looses focus but looks like I forgot to do it. :D Should be easy to fix though. :)

BTW, do you plan to use modRana to show geographic search results with your Saera port on Sailfish OS like back then with Saera on the N900? :)

I would like to, yes. How can I communicate with modRana on SailfishOS?

MartinK 2015-03-22 18:38

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by taixzo (Post 1464667)
I would like to, yes. How can I communicate with modRana on SailfishOS?

CLI argument passing is kinda borked at the moment as sailfish-qml, the "official" Sailfish OS QML application launcher does not forward command line arguments. So maybe chip-in that this missing functionality would be useful for Saera ? ;)

Alternatively some other way could be used until this is fixed, such as environmental variables or DBUS. :)

nodevel 2015-03-22 18:55

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1464678)
CLI argument passing is kinda borked at the moment as sailfish-qml, the "official" Sailfish OS QML application launcher does not forward command line arguments. So maybe chip-in that this missing functionality would be useful for Saera ? ;)

That's weird, I am pretty sure (I don't have Jolla right now to test it) LL's videoPlayer can take filename as an argument and the source code suggests you can pass different arguments, not just the filename:
https://github.com/llelectronics/vid...ideoPlayer.cpp

MartinK 2015-03-23 08:19

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by nodevel (Post 1464681)
That's weird, I am pretty sure (I don't have Jolla right now to test it) LL's videoPlayer can take filename as an argument and the source code suggests you can pass different arguments, not just the filename:
https://github.com/llelectronics/vid...ideoPlayer.cpp

Sure, that's possible if you use your own C++ "launcher" but I'm using the sailfish-qml utility to do the lunching and it does not forward command line arguments (unlike qmlscene, which does forward command line arguments).

I could use a custom C++ launcher, but that would mean another language in the mix (on top of Python and QML) and another platform specific thing to maintain, so I would like to avoid that if possible.

nodevel 2015-03-23 09:18

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 1464711)
Sure, that's possible if you use your own C++ "launcher" but I'm using the sailfish-qml utility to do the lunching and it does not forward command line arguments (unlike qmlscene, which does forward command line arguments).

I could use a custom C++ launcher, but that would mean another language in the mix (on top of Python and QML) and another platform specific thing to maintain, so I would like to avoid that if possible.

I see, I didn't know about sailfish-qml. I have used qmlscene-qt5 on desktop before, but I assumed that Sailfish allowed only C++ launchers in harbour.

Is there any difference in performance? Some of my apps are pure QML (or QML+pyotherside), so I'd consider switching if it means better startup times.

MartinK 2015-03-23 10:03

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by nodevel (Post 1464712)
I see, I didn't know about sailfish-qml. I have used qmlscene-qt5 on desktop before, but I assumed that Sailfish allowed only C++ launchers in harbour.

Is there any difference in performance? Some of my apps are pure QML (or QML+pyotherside), so I'd consider switching if it means better startup times.

I think there shoudn't be much of a difference in startup speed between a custom C++ launcher that uses libsailfishapp and using the sailfish-qml launcher. BTW, this should be the source code of the launcher:

https://github.com/sailfish-sdk/libs...r/launcher.cpp


All times are GMT. The time now is 10:08.

vBulletin® Version 3.8.8