![]() |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
This is less serious on Sailfish OS due to the glorious offline routing API provided by OSM Scout Server, but much more of a problem for the N900, where OSM Scout Server is not available & the old Monav based offline routing is often far from ideal. Trying now on desktop with the Google online routing provider - and I'm getting failures. So looks like they might have already shut down the old API modRana uses & an alternative will be needed. Yay. :D Quote:
Basically the idea is to parse the command line arguments the launcher gets, and then decide what to do next. There are basically two options: 1) The command line arguments are not related to the modRana GUI (stuff like --help, adding a POI via CLI, etc.). In such a case the launcher will run modrana.py and pass it the arguments, expecting it to handle the CLI use case by itself. 2) The command influences the modRana GUI. This could be telling modRana which UI variant to launch or request to perform an action on startup (zoom on certain coordinates, serach for a POI, perform routing & start navigation, etc.). In this case the launcher would pass the arguments to the GUI and start it. At the moment I'm thinking about doing just very simple argument parsing in C++, just to tell me if some arguments have been passed or not - actually, I guess it might be enough to just check the number of arguments. If some arguments are found, the launcher would run modrana.py in some special mode which would tell it what to do next - terminate (if modRana already performed the CLI task) or to start the GUI (if the task requested is GUI related). If this works out, I should be able to avoid duplicating the option parsing logic in C++ in the launcher, even partially. Nothing of the above should really be relevant for the user, they would just type (once implemented): Code:
harbour-modrana --help Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
@MartinK: you could add Stadia Maps as an online router. It's the same Valhalla router as in OSM Scout Server and was free for a decent amount of calls and they probably will not get exceeded. Since router is the same, you would probably not need much to code to use it.
|
Re: [Announce] modRana: a flexible GPS navigation system
Martink, is there a file that I could python scrape out turn by turn instruction events from?
I am hoping to add some GPS navigation event transfers for Maebble(Pebble watch daemon) for an easy to see turn by turn and maybe distance countdown or speedometer that cyclists and automobile drivers could use. If possible I will make it like an SMS or email event push so I dont need to figure out how to write a special watch app(probably will never happen). I was also thinking of an approximate boundary near arrival to be used for bus and train travellers to know the correct stop or station. Be aware I am looking for the lazyest way to do this I am not a real dev and have only minimal debuggind skills. If this works I will add it to the garage and maybe even try to get it into the repos. Maebble http://talk.maemo.org/showthread.php?p=1559017 |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
I'm afraid the routing situation @ modRana is currently less than ideal, as online routing is currently broken & I have not yet got to fixing it (as rinigus suggests a post above). For offline routing, the OSM Scout Server using code might be usable but that's of course Sailfish OS only, so likely not usable for your Maemo 5 app. |
Re: [Announce] modRana: a flexible GPS navigation system
I am just looking for an easy way to get the turn by turn instructions out into a parseable format.
An intermediate script might work but I am a cut-paste-tweak-pray kinda non-dev. I am just trying to cobble a crappy but simple hack similar to parsing the dbus event stream. By similar I am meaning almost identical so I can reuse edited lines of code from the currently working maebbled.py |
Re: [Announce] modRana: a flexible GPS navigation system
HI MartinK,
I tried modrana offline mode on N900 as descripted in maemo-wiki. I unzipped tile-file on my linux-laptop, then copied via usb cable to correct folder on N900. But it works only in N900-ONLINE-Mode. Switch to offline, "tile download failed" displayed on map... Turned to online mode it works... Network-Settings in modrana are on "unlimited use of network". How to enable correct offline-mode? Thanks! |
Re: [Announce] modRana: a flexible GPS navigation system
For anyone interested support for N900 has ended.
https://github.com/M4rtinK/modrana/pull/287 I believe there will still be a fair few N900 users that should be made aware of this here. It's a shame but I can understand this especially with python and GTK2 support disappearing. One request i would have would be to get the last version into extra-devel if possible. I think we spoke in the past about updates and that less devs have a build environment available but at least N900's would have a more upto date version in the repo if this was done. |
Re: [Announce] modRana: a flexible GPS navigation system
Well with Leste coming along well maybe the dev will change their mind or maybe it will be easier to port?
Always sad when software support ends on Maemo. But like you said it understandable. x |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
The situation is much better on Sailfish OS devices & on desktop Linux. There modRana can talk to OSM Scout Server, which provides offline tile rendering, routing and PoI search. |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
BTW, I really wonder how many users are actually affected - the version in Extras has really not been updated in a while, mainly do to most of the recent work & fixes not really affecting the parts of modRana in use on Maemo. I guess that also kinda implies the code duplication that has been in place up till now. :P Quote:
Still I don't think supporting Python 2, especially the ancient Python 2.5 needed for the N900 is viable anymore, with Sailfish OS upgrading to 3.7 a while ago, Python 2 going EOL this January & Fedora and other distros getting ridd of Python 2 software where possible. Another issue is also the original GTK2/Cairo GUI - back then it really was the best option given the environment (first the Neo FreeRunner & early N900), but things changed quite a bit since then. Newer GUI technologies, such as Qt 5/QML make achieving what modRana needs in it's interface much easier, nice, faster and more responsive with far lesser amount of custom code & hacks needed to achieve the desired end result. Also let's say I can write much better code now than I did 10 years ago + not all design decisions I did back then turned out to be good. ;-) So this really had to be done & would likely be done much sooner in another project - but at least we can celebrate the 10th modRana aniversary with a bang! :-) (I started working on modRana for my bachelors thesis at the end of Janury 2010.) Hopefully this change will make the source code of modRana much more readable, fully Python 3 compatible & more unit-testable. Also potentiall contributors will be much less likely to run away screaming when they no longer see modules full of Python 2/3 compatible code mixed together with direct drawing of screen content via Cairo vector commands. ;-) Quote:
https://github.com/M4rtinK/modrana/tree/n900-branch That could be a good starting point for such an update effort. Still, I'm not sure I will still be able to generate the needed source-deb file, not to mention being able to talk to autobuilder in the correct manner. Assistance of someone who still has the necessary tools available would be definitely welcome. :) |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
AFAICS Qt can work on Fremantle, python updates are possible too... I have only recently installed ModRana on N900 (Maemo Fremantle), so I am one of the users still interested. |
Re: [Announce] modRana: a flexible GPS navigation system
I am also still interested.
Btw a question, a bit on the side: I can't use online routing any more on n900's modrana. I guess it is normal, but in the doubt... thanks |
Re: [Announce] modRana: a flexible GPS navigation system
Using. N900 main device.
|
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
- an intepretter is not enough as you also need various Python libraries to be rebuilt against the new interpretter, such as those used to get GPS data or to control display blanking - a reasonably modern Qt 5 version would be needed, say 5.9 - not sure how far efforts around this are on Maemo 5 - then you also need PyOtherSide to be built against the Python 3 intepreter and Qt 5 (this should be relatively trivial if you managed to build Python 3 and Qt 5) Then modRana should be able to run as well as it runs on Linux desktop or on Sailfish OS devices. But this is theory, I wonder how doable this actually is in practice - AFAIK none of these Python 3 or Qt 5 efforts are available from Extras and have to be downloaded and installed manually. Its also an open question if recent Qt 5 version will even build with the ancient Maemo 5 compilers. Also another issue could be all the extra software actually fitting to the limitted storage space on the N900, as it pretty much duplicates a lot of the existing Python and GUI stack. So all in all quite a daunting task, but imho still worthy if someone if someone has the resources, hardware and time to attempt it. I am unfortunatelly almost certain to not have enough time to attempt it myself, but could certainly help from upstream modRana development side (eq. adding fixes to make modern modRana codebase run on updated Maemo). :-) |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
I guess this could also be a suitable thing to backport to the n900 branch, especially as offline routing options are limitted to nonexistent on the N900 due to no OSM Scout Server being available. |
Re: [Announce] modRana: a flexible GPS navigation system
I was downloading the source from github to run on N900 and Ubuntu, since we last spoke here.
As for Leste I suppose if it where to find it's way on to Debian repos it would be available to a lot more people, not only Leste. |
Re: [Announce] modRana: a flexible GPS navigation system
Thanks for replying, MartinK.
I guess I am happy using whatever version is available for the N900; I'd actually like to use it fully offline, offline routing is still possible with some server running locally? But even so, routing is not my main concern, I mostly just need the maps & metadata (POIs, public transport etc.). |
Re: [Announce] modRana: a flexible GPS navigation system
So just a heads up for those already on Sailfish OS 3.3 EA - modRana is currently not starting on SFOS 3.3 due to Python 3 being upgraded (to 3.8.1) and modRana using some functionality that has been deprecated in Python 3.8.
The fix does not look hard & there should be a fixed version in the next day or two. :) (First reported: https://together.jolla.com/question/...-not-starting/ & in Jolla store comment) |
Re: [Announce] modRana: a flexible GPS navigation system
So in the end it was a week or two, but the fixed modRana release is here - now syncing to both Open Repos and Jolla Store. :)
Nothing that interesting just yet (other than modRana actually starting on SFOS 3.3+ :P) but I have been doing a lot of clean-ups related to and enabled by Python 2 & GTK2 support being dropped. Anyone interested can check the recent commit history for all the horrendous compatibility hacks I have been cleaning up. ;-) This combined should make fixing bugs & implementation of new features easier, not to mention enabling a reasonable test coverage & outside contributions without driving anyone insane. :) |
Re: [Announce] modRana: a flexible GPS navigation system
Hi MartinK,
Thanks for the update. Following your link, I found a download link pointing to a zip file: https://github.com/M4rtinK/modrana/a...25bfd1ff01.zip Do I just have to uncompress the zip into /home/opt/modrana/ to test it? Sorry for a so basic questions and thanks again, |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
https://github.com/M4rtinK/modrana/a...4e0f779383.zip So far there is nothing new on the n900-branch branch since it was branched from master before the GTK2 GUI and Python 2 support was dropped. If someone has some N900 specific fixes, this branch is where the pull request should go. :) As for unpacking the archive to /home/opt/modrana/ - I'm not sure from top of my head, but if you backup your existing /home/opt/modrana/ it should be safe. Also just unpacking the archive in a suitable directory and running modrana.py should work as well. Quote:
|
Re: [Announce] modRana: a flexible GPS navigation system
Please, on application start, start the map in the last location scrolled-to.
Please, on application start, start the map in the last location scrolled-to. Please, on application start, start the map in the last location scrolled-to. I have to spend 5-10 minutes scrolling and downloading to get to my location to see a map (gps not working on my device, usually) |
Re: [Announce] modRana: a flexible GPS navigation system
Quote:
BTW, I've added a aarch64 build of modRana to OpenRepos a while ago, so Sailfish X users on Xperia 10 II should be covered. :) I have not yet submitted an aarch64 build to Jolla Store as I plan to do it together with an actual new build. :) |
Re: [Announce] modRana: a flexible GPS navigation system
Thanks man, love the program otherwise. But I can't use it to take a quick look at my map.
|
Re: [Announce] modRana: a flexible GPS navigation system
Is there any chance you have looked at making a modrana port to Mobian, I am currently running this on a Pinephone but it is still not quite ready for an everyday phone.
I appreciate your work over the years and think your work is better than the standard app that is included in Mobian now. Maybe a linux flatpak? |
All times are GMT. The time now is 14:54. |
vBulletin® Version 3.8.8