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)

nieldk 2012-07-12 12:03

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

Originally Posted by colin.stephane (Post 1236526)
Thanks for this perspicuous Fix, I like guys verifying behavior of modifications.

Now, the button to switch traffic on/off be refreshed properly ...

Also, I have reread all the thread, but not be able to find how to add the "auto" tick option, there is only the 2 original options "day" & "night" tick options.

If someone have the modification, feel free to put it here ...

A++

you didnt search hard enough, look in OP or here
http://talk.maemo.org/showpost.php?p...1&postcount=27

godofwar424 2012-07-12 12:07

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

Originally Posted by colin.stephane (Post 1236526)
Thanks for this perspicuous Fix, I like guys verifying behavior of modifications.

Now, the button to switch traffic on/off be refreshed properly ...

Also, I have reread all the thread, but not be able to find how to add the "auto" tick option, there is only the 2 original options "day" & "night" tick options.

If someone have the modification, feel free to put it here ...

A++

The traffic button refresh is a few posts above yours!


Quote:

Originally Posted by nailwood (Post 1236462)
When you click on the toggle item for the traffic mode in the main settings screen, you can see that the label changes to "Hide traffic" for a fraction of a second before the screen is closed - But when the settings screen is opened again, the label is still set to "Show traffic". So I found out this small UI improvement:

In assistanceModeSettingsPage.qml, line 207 (inside the block "onBeforeShow:"), you can add the following line:

buttonModel.updateTraffic();

This will show the label "Hide traffic" and the corresponding icon if traffic has been activated.


The changes for auto night switch are in this post.


Quote:

Originally Posted by solstice88 (Post 1235629)
Here is what i understood:

views\settings\mapModeSettingsPage.qml


uncomment the lines between 38 - 47

models\MapSettingsModel.qml


uncomment the lines between 88 - 91 and 129 - 163

views\assistancePage.qml

uncomment the lines between 100 - 105

sections of code that should have the /*, */ syntax removed.

And the changes to the isNight function to make auto switch work correctly is here.


Quote:

Originally Posted by mbanck (Post 1236332)
So I took a look at http://en.wikipedia.org/wiki/Sunrise_equation and http://users.electromagnetic.net/bu/...unrise-set.php

The drive-qml approximation for the declination is legit, it is equation 3 from http://solardat.uoregon.edu/SolarRadiationBasics.html

What seems to be missing is probably a better approximation of the sun transit, i.e. the true sun noon.

Otherwise, just some signs were apparently wrong in the sunrise/sunset calculation, with that fixed, it works well enough for me.

This is the patch: http://paste.debian.net/download/178685

Or inline:

Code:

--- /usr/lib/drive-qml/models/MapSettingsModel.qml.orig
+++ /usr/lib/drive-qml/models/MapSettingsModel.qml
@@ -135,8 +135,8 @@
        var lat_rad = pos.latitude * (Math.PI/180);
        var declination = (23.4*Math.PI)/180 * Math.sin(2*Math.PI * (284+dayOfTheYear)/365);
        var omega = Math.acos(-Math.tan(declination) * Math.tan(lat_rad));
-        var sunset = 12 - (1/15) * omega * (180/Math.PI) - pos.longitude/15 + today.getTimezoneOffset()/60;
-        var sunrise = 24  - sunset; //(1/15) * omega * (180/Math.PI) - pos.longitude/15 + today.getTimezoneOffset()/60;
+        var sunset = 12 + (1/15) * omega * (180/Math.PI) - pos.longitude/15 - today.getTimezoneOffset()/60;
+        var sunrise = 12  - (1/15) * omega * (180/Math.PI) - pos.longitude/15 - today.getTimezoneOffset()/60;
 
        console.log("Sunset:" + sunset);
        console.log("Sunrise:" + sunrise);



nokiac 2012-07-13 05:44

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
I can confirm that Auto Day/Night and traffic works very well for me. I did the uncommenting of the four files shown by solstice88 and applied patch for correct sunrise/sunset calculation.

At the terminal, it showed me sunrise time as 5.44 and sunset as 19.48 correctly !! .

I am so glad to be a part of this wonderful community. I missed the traffic functionality most when driving around on the weekends. A big thanks to all involved here :D

dicksonleong8 2012-07-13 07:23

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
I wonder why they (Maps app developer teams) comment out the useful features before publish publicly.

thedead1440 2012-07-13 09:15

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
^ maybe because the features are not fully developed and elop doesnt wamt a dead os to have features wp7 is just getting

kb61 2012-07-13 10:14

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
i finally managed to get the patch working by using arie's solution....but now all of the pictures used in the drive application (arrows, stop signs etc) are shown in the gallery application?!
anyone else experiencing this?:confused:

thedead1440 2012-07-13 10:37

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
^ the pictures must be showing up as you haven't deleted the folder drive-qml from MyDocs.

kb61 2012-07-13 12:27

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

Originally Posted by thedead1440 (Post 1236958)
^ the pictures must be showing up as you haven't deleted the folder drive-qml from MyDocs.

thx a lot :)

alex25 2012-07-13 13:45

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

Originally Posted by dicksonleong8 (Post 1236902)
I wonder why they (Maps app developer teams) comment out the useful features before publish publicly.

Have a look into the qml files and you know the reason. :-)

colin.stephane 2012-07-13 20:47

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

After clarifications, here is a patch taking care of all remarks I found in this thread (auto Day/Night Mode, Traffic option enabled and properly refreshed button) :

Stable (Enable Traffic + Auto Switch Day/Night mode) :

- Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3.diff

Unstable (Enable Traffic + Auto Switch Day/Night mode + Time To Destination + Show traffic on map) :

- Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff

How to apply patch :

- First, switch to 'root' user with 'devel-su' command (enter your password if changed, default to 'rootme').

- Mandatory, verify you have installed 'wget' in 'settings' -> 'security' -> 'developer mode' -> click on install icon for 'utilities'.

- Mandatory, your device need to be connected to Internet !!!.

- Mandatory, verify you have installed 'patch' utility using this command line :

Code:

clear && ID=$(id -un) ; if [ ${ID} != "root" ] ; then echo "You are not 'root', please use this command line as 'root' (devel-su) ..." ; else echo "Ok, you are 'root' ..." ; if dpkg -l patch 2>/dev/null | grep -q ii ; then echo "Patch utility is already installed, you can continue with the procedure ..." ; else echo "Patch utility is not present, installing now ..." ; wget http://harmattan-dev.nokia.com/pool/harmattan/free/p/patch/patch_2.6-2+maemo7+0m6_armel.deb -O /root/patch_2.6-2+maemo7+0m6_armel.deb && dpkg -i /root/patch_2.6-2+maemo7+0m6_armel.deb && sync && echo "Done, you can continue with the procedure ..." ; fi ; fi
- Use this console command line to install the Stable patch :

Code:

clear && ID=$(id -un) ; if [ ${ID} != "root" ] ; then echo "You are not 'root', please use this command line as 'root' (devel-su) ..." ; else rm /root/*.diff 2>/dev/null ; wget http://bigbob.fun.free.fr/N9/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3.diff -O /root/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3.diff && apt-get install -y --reinstall nokia-drive-qml maps && sync && patch -p0 -i /root/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3.diff && sync ; fi
- Use this console command line to install the Unstable patch :

Code:

clear && ID=$(id -un) ; if [ ${ID} != "root" ] ; then echo "You are not 'root', please use this command line as 'root' (devel-su) ..." ; else rm /root/*.diff 2>/dev/null ; wget http://bigbob.fun.free.fr/N9/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff -O /root/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff && apt-get install -y --reinstall nokia-drive-qml maps && sync && patch -p0 -i /root/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff && sync ; fi
Can someone apply it and report if all goes well ?


How to revert patch :

- It's always the same procedure for Stable & Unstable, just use this console command line to revert back to default files :

Code:

clear && ID=$(id -un) ; if [ ${ID} != "root" ] ; then echo "You are not 'root', please use this command line as 'root' (devel-su) ..." ; else rm /root/*.diff 2>/dev/null ; apt-get install -y --reinstall nokia-drive-qml maps && sync ; fi
A++

- Edit #1 : Commit changes from mbanck on post #143 ...
- Edit #2 : Like mbanck stated on post #146, reverting back, the time he can propose something more usable (correct refreshing of Distance/ETA).
- Edit #3 : Ok, to avoid troubles, managing a new full patch containing lasts changes about Estimated Arrival Time support from mbank on post #149.
- Edit #4 : Commit latest patch from mbanck on post #152 to Stable & Unstable since it doesn't hurt ...
- Edit #5 : Commit latest patch from mbanck on post #162 to Unstable (Refreshing & Cosmetic for TTD Time To Destination) ...
- Edit #6 : Commit to Unstable, latest patch from sony123 from IRC live session to keep users clean of questions and add the most awaited functionality, the switching option from Distance to Time To Destination when guidance is active.
- Edit #7 : Commit to Unstable, latest correction from sony123 on post #221 to properly show TTD whenever the time showed in h:min ...
- Edit #8 : MY mistake !!! Commit to Unstable, mbanck patch revert on post #198 and added also the fix he provided on post #226.
- Edit #9 : Look like there is many good feedback about last treasure found by sony123 with patch on post #273, so I commit this one to Unstable and also updated the commands to install & revert the whole thing without troubles.
- Edit #10 : Commit latest patch from sony123 on post #293 to enable the traffic details page in the Unstable patch.
- Edit #11 : Commit latest patch from tenchman on post #327 to transform the 2 state button "TTD, Distance" into a 3 state button "TTD, Distance and ETA" in the Unstable patch.
- Edit #12 : Commit latest patch from tenchman on post #355 to add an additional Button MUTE into the speedwarner setting screen in the Unstable patch.


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.
- thedead1440.
- tenchman.

Because nothing can be done without all these guys working on their free time to debug, fix & enhance Nokia Drive application for our precious ...

A++

SteveYoungs 2012-07-14 02:52

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

Originally Posted by colin.stephane (Post 1237183)
Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3.diff

Can someone apply it and report if all goes well ?

Yes. Appears to apply cleanly and all is working well (PR1.3). Need to wait for sunset here to see if the auto day/night works, but I'm sure it will. :)

Thank you for making it super simple to apply this mod.

mbanck 2012-07-14 12:33

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

Originally Posted by SteveYoungs (Post 1237275)
Need to wait for sunset here to see if the auto day/night works, but I'm sure it will. :)

Unfortunately, there appears to be no support in Drive to periodically check whether day has turned into night or vice-versa, so you will only see the display switch states if you restart the application. This was probably the main reason this feature had been deactivated. Maybe somebody will come up with a periodic timer to check or so.

Anyway, yeah, thanks colin.stephane for providing a unified patch!

dagee04 2012-07-14 14:37

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
How do I apply this patch?

dicksonleong8 2012-07-14 17:37

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

Originally Posted by alex25 (Post 1237012)
Have a look into the qml files and you know the reason. :-)

LOL you are right! In one of the qml file saw the following comment

Code:

TODO: change back when management makes up their mind

praveenchand 2012-07-14 18:20

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

Originally Posted by colin.stephane (Post 1237183)
Hi all,

After clarifications, here is a patch taking care of all remarks I found in this thread (auto Day/Night Mode, Traffic option enabled and properly refreshed button) :

- Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3.diff

Can someone apply it and report if all goes well ?

A++

How to apply this patch, please explain :)

godofwar424 2012-07-14 20:16

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

Originally Posted by praveenchand (Post 1237500)
How to apply this patch, please explain :)

Read the first post about patching!

sony123 2012-07-15 05:23

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
At this point I think a wiki page is probably the better way to summarize the information. But I cannot find how to create a wiki on TMO..... can someone create one?

sony123 2012-07-15 05:42

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
The past week I spent some time studying the codes. Mainly, I want to see how to make the distance block display remaining time (TTD, time-to-destination). Also, there is another obvious hidden feature, detailed traffic page, that has been largely coded, but just didn't get called.


For TTD, I first tried calculating it from speed/distance. But obviously this is flawed by nature.... digging deeper I see that TTD has been calculated in the source code. It is shown in the InfoBanner (the one with a "Start Navigation" button) that appears after you select the destination. However, TTD comes from routeModel and is only derived when calculating the route. That means to update the value, we need to periodically re-calculate the route. Also flawed to me. I try searching for other variables that resemble TTD, but there are nothing explicit. I am guessing there might be hidden TTD variable in C++ side, but for the QML objects defined in C++, I have no visibility into the source code so really couldn't verify. Maybe Symbian's QML code will be useful to reveal that.

In short, I don't have a definite solution for this feature.

However, I do think the community can try uncovering the traffic detail page. I don't see the page loaded anywhere in the source code, the easiest way is probably to add an option in the setting menu, and onClicked open the traffic detail page.

Unfortunately I don't have time to look into these further, I hope someone can pick them up from here. If anyone is interested, let me know I can share more detailed info.

mbanck 2012-07-15 10:35

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

Originally Posted by sony123 (Post 1237667)
However, I do think the community can try uncovering the traffic detail page. I don't see the page loaded anywhere in the source code, the easiest way is probably to add an option in the setting menu, and onClicked open the traffic detail page.

I noticed that unfinished feature while browsing the code as well. I guess a button next to the show/hide traffic button in the "main menu" (the one you get to when you hit the menu button in guidance-mode) is more appropriate than adding it to preferences menu, as it is not really a setting. But maybe I just misunderstood you.

tebsu 2012-07-15 12:25

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
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.

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++

sony123 2012-07-15 23:52

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.

Excellent job, mbanck! How to you dump the structures btw??

For the UI, actually I did modify the InfoDistance.qml so it has states to selectively display distance or TTD info. Basically just make the behaviors consistent with Symbian. I will check your code and see how to do the patching...

mbanck 2012-07-16 01:40

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
I did have another look at the day-to-night mode switch. The following patch at least ensures the map mode is updating everytime one returns to the map from the settings (main) menu or the preferences menu (in map browser mode). Same goes for navigation mode, and for starting/ending navigation. WIthout it, I believe one has to restart the application (or change the day/night settings specifically) to get the map changed.

Still no update during navigation.

Patch: http://paste.debian.net/179280/

taviman 2012-07-16 04:39

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

Originally Posted by praveenchand (Post 1237888)
using terminal, goto the folder containing .deb file and type dpkg -i patchfilename

already tried this, doesn't work.

PhatApteryx 2012-07-16 09:14

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

Originally Posted by praveenchand (Post 1237888)
using terminal, goto the folder containing .deb file and type dpkg -i patchfilename

Thanks, worked for me

mbanck 2012-07-16 09:35

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

Originally Posted by sony123 (Post 1237992)
Excellent job, mbanck! How to you dump the structures btw??

Something like
Code:

for (var member in <object>) { console.log(member); }
This prints out the members of the object on the console if you start Drive in debug mode.

Quote:

Originally Posted by sony123 (Post 1237992)
For the UI, actually I did modify the InfoDistance.qml so it has states to selectively display distance or TTD info. Basically just make the behaviors consistent with Symbian. I will check your code and see how to do the patching...

That would be awesome!

colin.stephane 2012-07-16 09:44

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

Originally Posted by mbanck (Post 1238020)
I did have another look at the day-to-night mode switch. The following patch at least ensures the map mode is updating everytime one returns to the map from the settings (main) menu or the preferences menu (in map browser mode). Same goes for navigation mode, and for starting/ending navigation. WIthout it, I believe one has to restart the application (or change the day/night settings specifically) to get the map changed.

Still no update during navigation.

Patch: http://paste.debian.net/179280/

Hi,

I have added this one to my full patch, in stable and unstable, since it doesn't hurt anything ...

A++

colin.stephane 2012-07-16 10:18

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

Originally Posted by sony123 (Post 1237992)
Excellent job, mbanck! How to you dump the structures btw??

For the UI, actually I did modify the InfoDistance.qml so it has states to selectively display distance or TTD info. Basically just make the behaviors consistent with Symbian. I will check your code and see how to do the patching...

May I suggest you to provide unified patch file of your modifications, then, I can include your work in my full patch ...

A++

Morpog 2012-07-16 10:33

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
You should have wait for Sony123s additional UI fix.

colin.stephane 2012-07-16 10:54

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

Originally Posted by Morpog (Post 1238158)
You should have wait for Sony123s additional UI fix.

This is why there is 2 different patches Stable and Unstable ...

A++

Morpog 2012-07-16 10:59

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Nevermind, I didn't follow your link and assumed you added it to both :D


All times are GMT. The time now is 13:47.

vBulletin® Version 3.8.8