maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps (https://talk.maemo.org/showthread.php?t=85353)

taviman 2012-07-15 16:36

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by tebsu (Post 1237773)
didnt work at all for me. the first thing with the .diff file said something doesnt exist. the .deb file said "invalid file operation". maybe someone can make this to one working package.

I got the same error, the "patch_2.6-2+maemo7+0m6_armel.deb" can't install because the package is incorrect.
(Yes, I allowed the installations outside the Store).

Schturman 2012-07-15 17:29

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Guy, I added this tweak to N9 QTweak 8.3 (Tweak G, option 2)

I created this with SED commands, based on this posts:
1. Here: http://talk.maemo.org/showthread.php?t=85353 - explanation by the lines..
2. here: http://talk.maemo.org/showpost.php?p...&postcount=115
3. here: http://talk.maemo.org/showpost.php?p...&postcount=111
4. here: http://talk.maemo.org/showpost.php?p...9&postcount=80

Can also someone test it and report if this work like expected please ?
I don't have maps for my country and can test it.. I only saw the auto day/night work (i think)...
Thanks

mbanck 2012-07-15 17:46

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
This is work-in-progress

I now have a first patch for time-to-destination, it is here: http://paste.debian.net/download/179219

It is showing the time-to-destination (only in guidance mode), but the value is not updating unless the route gets recalculated, so it is rather useless right now.

What I did was overloading the distance field in the dashboard and additionally displaying the time-to-target as well. I enlarged the size of that widget in portrait mode a bit (landscape should be fine) and hope the speed widget does not get cropped if e.g. a speed limit is displayed and one drives in the three-digit range.

http://i45.tinypic.com/10r1zqq.png

colin.stephane 2012-07-15 18:30

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by mbanck (Post 1237856)
This is work-in-progress

I now have a first patch for time-to-destination, it is here: http://paste.debian.net/download/179219

It is showing the time-to-destination (only in guidance mode), but the value is not updating unless the route gets recalculated, so it is rather useless right now.

What I did was overloading the distance field in the dashboard and additionally displaying the time-to-target as well. I enlarged the size of that widget in portrait mode a bit (landscape should be fine) and hope the speed widget does not get cropped if e.g. a speed limit is displayed and one drives in the three-digit range.

http://i45.tinypic.com/10r1zqq.png


Great work,

I have updated my full patch to reflect your changes ...


A++

PhatApteryx 2012-07-15 18:47

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by taviman (Post 1237831)
I got the same error, the "patch_2.6-2+maemo7+0m6_armel.deb" can't install because the package is incorrect.
(Yes, I allowed the installations outside the Store).

i got that error too, no opportunity to try again or find why yet though.

mbanck 2012-07-15 18:54

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by colin.stephane (Post 1237875)
Great work,

I have updated my full patch to reflect your changes ...

Well, my changes are not optional, and as I wrote, are not working correctly, so I would advise against putting them into your patch for now.

praveenchand 2012-07-15 18:59

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by PhatApteryx (Post 1237881)
i got that error too, no opportunity to try again or find why yet though.


using terminal, goto the folder containing .deb file and type dpkg -i patchfilename

colin.stephane 2012-07-15 19:25

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by mbanck (Post 1237884)
Well, my changes are not optional, and as I wrote, are not working correctly, so I would advise against putting them into your patch for now.

OOPS !!!

Ok, reverting back to the stable patch right now ...

A++

mbanck 2012-07-15 20:13

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Hah, so I dumped the routingModel and guidanceModel structures, and it turns out that guidanceModel apparently has a member which appears to be exactly what we want and gets updated when DestinationDistance changes, namels timeToArrival (we did not find it earlier because it is not referenced in the QML source).

New patch (supersedes the other one): http://paste.debian.net/download/179234

With this patch the duration value updates, however, it is raining outside so I have not tested whether it really works correctly, feedback welcome. It could well be that timeToArrival is broken somewhat and therefore was not exposed in the user interface before.

The user interface has not changed (see last screenshot), I think it would be more elegant to make the distance/duration widget be a button which would switch between the two, but I won't have any more time to work on this, hopefully somebody else can pick it up.

colin.stephane 2012-07-15 21:03

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Quote:

Originally Posted by mbanck (Post 1237907)
Hah, so I dumped the routingModel and guidanceModel structures, and it turns out that guidanceModel apparently has a member which appears to be exactly what we want and gets updated when DestinationDistance changes, namels timeToArrival (we did not find it earlier because it is not referenced in the QML source).

New patch (supersedes the other one): http://paste.debian.net/download/179234

With this patch the duration value updates, however, it is raining outside so I have not tested whether it really works correctly, feedback welcome. It could well be that timeToArrival is broken somewhat and therefore was not exposed in the user interface before.

The user interface has not changed (see last screenshot), I think it would be more elegant to make the distance/duration widget be a button which would switch between the two, but I won't have any more time to work on this, hopefully somebody else can pick it up.


Ok, so, this time, to avoid any troubles, I have updated my full patch to reflect your changes in a new unstable patch maintained in parallel of the stable one ...

A++


All times are GMT. The time now is 07:25.

vBulletin® Version 3.8.8