![]() |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
http://talk.maemo.org/showpost.php?p...1&postcount=27 |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Quote:
The changes for auto night switch are in this post. Quote:
Quote:
|
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 |
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.
|
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
|
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: |
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.
|
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
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 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 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 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 - 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++ |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Thank you for making it super simple to apply this mod. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Anyway, yeah, thanks colin.stephane for providing a unified patch! |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
How do I apply this patch?
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Code:
TODO: change back when management makes up their mind |
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
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?
|
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. |
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
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.
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
(Yes, I allowed the installations outside the Store). |
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 |
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 |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Great work, I have updated my full patch to reflect your changes ... A++ |
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:
using terminal, goto the folder containing .deb file and type dpkg -i patchfilename |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Ok, reverting back to the stable patch right now ... A++ |
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. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
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++ |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
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... |
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/ |
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:
Code:
for (var member in <object>) { console.log(member); } Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
I have added this one to my full patch, in stable and unstable, since it doesn't hurt anything ... A++ |
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
You should have wait for Sony123s additional UI fix.
|
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
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