![]() |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
That why I stated "since it doesn't hurt anything ..." in my message ... A++ |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Cosmetic change for the time-to-destination MOD:
- now rounds seconds to nearest 5 seconds, i.e. 23 -> 25, otherwise it updates ridiculously often - never print spaces around "/" to make it fit better in the widget - indentation fix Patch (on top of the last one): http://paste.debian.net/download/179330 I tested the feature this morning and the reported time-to-destination values look correct and update smoothly. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
As usual, thanks for your investigations !!! I also tested the feature this morning to came at work, and it was already accurate even without this last patch. Anyhow, I updated my full patch in section Unstable for this one ... A++ |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Hi mbanck,
great work, but it is possible to reduce the font size of the distance and the time. Because it is not possible to see both. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
No need to, Sony123 is working on a solution to switch both by touching it. Just like on Symbian (and I assume on WP).
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ # cd /home/user /home/user # dpkg -i patch_2.6-2+maemo7+0m6_arm el.deb Aegis rejecting patch_2.6-2+maemo7+0m6_armel.deb: Could not open debian archive aegis aborting dpkg -- all listed package files rejected Compilation failed in require. /home/user # I still cannot install the .deb. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
A++ |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Got it. It was not my command sting but the place where the package was.
Aegis just didn't want to open the .deb from home/user. I moved it to MyDocs and it went fine (so far). My N9 helps me learn something new every day... |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
If I have already applied one .diff file using patch -p0 -i patch.diff, what is the correct way to go about updating to a new diff file.
Is there patch syntax to undo the previous .diff file, or does patch magically know what has already been changed and just apply the new additions in a later .diff file? |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Hi mbanck
how does the toggle button for Distance/Time-to-arrival work. If I'm push this, there are no effect for me. Only the time and distance is showing. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
mbanck have already made al the TTD calculation logic working fine. Now I'm in touch with sony123 for the toggle button TTD/Distance switch. It would be better to wait until we tested the functionnality with sony123 before release any patch that can prevent the drive app to start (we are actually in this bad step ...). So please wait and don't forget we all do the work in our free time ... A++ |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Hi colin.stephane,
excuse my impatience. I've read about the role and was thrilled. This feature I miss most in Drive. And all of you do a great work. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
By the way I have made a big mistake, thinking I have updated the unstable full patch where it was not ... I have corrected my mistake now. To quickly apply : - copy the patch (stable or unstable) to the device. then devel-su and use this one line installation (modify the bold part to reflect your location) : Code:
apt-get install -y --reinstall nokia-drive-qml && sync && patch -p0 -i /where_you_transfered_the/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
By the way, I think it would be neat to also calculate the ETA (estimated time of arrival, should be fairly easy), and have a three-way cycle DIST, TTD, ETA. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Surely ETA is just current time + TTD
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
look at the first thread and you find this command: patch -p0 -i Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3.diff |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
it don't works how install these .diff or mbanck's patch please. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
-sh: patch: Operation not permitted etc etc in root user
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
I found how to do that thank you for these patches colin.stephane :D
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Hi all,
Glad to see you have been patient, so, sony123 ask me to give you the most awaited patch to be able to switch from Distance to Time To Destination ... I have tested successfully during mid time to go restaurant, it worked like expected. As usual, I have updated my full patch in section Unstable ... Please report it worked properly on your device then I can remove the Unstable section to keep only one full patch as Stable. Also, don't forget to thanks : - sony123. - nieldk. - Arie. - mbanck. - nailwood. - jd4200. Because nothing can be done without all these guys working on there free time to debug, fix & enhance Nokia Drive application for our precious ... A++ |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Or just make a patch that ONLY contains this TTD fix. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
He sent me the full tree of '/usr/lib/drive-qml/' then I made a script to automatically track change between his work and the original files, and generate the unified diff file ... So, I have no differential patch to provide. By the way even reviewing the full patch by yourself doesn't require more than 5 minutes ... A++ |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
i'll be able to test during the weekend long and hard. Thanks at all for the hard and good work. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
So about traffic and taking it into account for routing:
in models/RoutingModel.qml, line 44 reads: routeType: RouteOptions.TYPE_FASTEST RouteOptions.TYPE_FASTEST translates to "1" if you print it out on the console. If I change that to routeType: RouteOptions.TYPE_SHORTEST that translates to "2", and I actually get the shortest route (will dismiss highways etc.). Now I bet that the underlying code actually allows for traffic to be taken into account, my old Symbian Ovi Maps routing has an option "optimal", however RouteOptions.TYPE_OPTIMAL or RouteOptions.TYPE_OPTIMIZED does not seem to work (you get an error like "unable to assign [undefined] to int routeType" on the console). However, when I set it to "3" manually via a property, I do not get an error. On the other hand, on some initial tests, traffic jams do not seem to get evaded either, so I am not sure what it means. But if people want to test around, here is a patch: http://paste.debian.net/download/179798 (Setting routeOptionType to 2 instead of 3 clearly selects the shortest route for me) |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
I reinstalled drive-qml and applied your full unstable patch.
When I choose automatic for day/night mode, it shows only a blank ui without map data. Was working well with latest full stable patch. http://www.abload.de/img/2012-07-19_17-35-457zktw.png |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Wow, I take that back - I just tried again, and it gave me a crazy route which is clearly neither the shortest nor the (previously) fastest...
Obviously, you need to have traffic enabled, and maybe wait a bit for it to be processed or something. Fastest: http://i49.tinypic.com/ma8d1x.png Shortest: http://i50.tinypic.com/2nvtctk.png Presumably optimal: http://i49.tinypic.com/rcja02.png Note that traffic shows that there is indeed a traffic jams on the roads picked for fastest and (the last part of) shortest |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
mbanck - nice work!
I assume you're editing the files by hand? The ability to select this in the routing menu would be excellent! |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Temporary workaround is to toggle traffic for maps to be re-drawn. :p |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Are you guys secretly working as the Nokia Drive team at Nokia? haha! Keep up the great work! :cool: Also thanks to colin.stephane once again for putting together and updating a patch. It provided me great learning experience in reading and editing qml code. :) |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
As funny as this sounds it can all be done, it just has to have work done to make it work, the good news is that ovi maps/drive is not closed source on our N9's :) |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
If you revert that one, do you still get that issue? |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Back to square one... |
All times are GMT. The time now is 08:11. |
vBulletin® Version 3.8.8