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)

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.


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

vBulletin® Version 3.8.8