![]() |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Thanks! Very nice! Maybe I should search all qml files in /usr/lib for "// TODO" :).
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
Seems like they had a lot todo. :D |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Hey, what about speed cameras? Any chance that this is also hidden in the files somewhere as its in the other platforms Drive Apps??
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Wow thanks a lot it works!
Hopefully they'll bring that feature that lets you reroute based on traffic congestion to really put some good use to this mod. Also like to say that we really have the best community here at TMO. Always can find just about anyone here willing to help. Well appreciated by us all! |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
Also as stated before, proper speed camera alerts instead of the useless speed alerts implemented atm. |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
What about Argentina?
Google provides traffic information for Buenos Aires. It would be great if Nokia does too. |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [PR1.3 MOD] How to enable Traffic in Drive
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
By the way, any idea *why* the functionality is hidden?
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Thank you guys! It also worked for me, very happy about that.
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
However, colour doesn't change Perhaps we can find the plug in and actually locate the problem :) |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [PR1.3 MOD] How to enable Traffic in Drive
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
Button needs to be enabled in /usr/lib/drive-qml/views/settings/mapModeSettingsPage.qml Comments needs to be removed from /usr/lib/drive-qml/models/MapSettingsModel.qml |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
I could change them and test them here too :) |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
There are only 2 lines in the first file /* + */ that encapsulated the button And likewise in the second file, but 2 places EDIT In MapSettingsModel.qml If you out comment function isNight at the button it seems to actually work |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
in /usr/lib/drive-qml/models/MapSettingsModel.qml There is a line: /* if (newvalue === "auto") { setNightMode(isNight()); } else*/ { setNightMode(newvalue === "night"); Should be changed to: if (newvalue === "auto") { setNightMode(isNight()); } else { setNightMode(newvalue === "night"); It will start up in night mode, then choose automatic, it will set itself up and run as it should :) |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Works great, thansk for this discover!
Maybe this can be add to N9 QTweak for people that doesn't have xterm experience at all |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
console.log("Sunrise:" + sunrise); var t = today.getHours() + today.getMinutes()/60; console.log("NOW: "+t); if (t >= sunrise && t < sunset) { return false; } return true; } function onDayNightSwitch() { console.log("onDayNightSwitch"); if (dayNightMode === "auto") { console.log("Change map mode to: "+!nightMode); setNightMode(isNight()); } } Are you referring to the bold? Edit: and why? |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
Edit: for those that don't want to do the changes nieldk and I did (includes traffic changes in Drive and Auto mode for day/night: http://talk.maemo.org/showpost.php?p...2&postcount=18 Follow that :) |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
That's good team work! |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Could you do a second diff patch to add this functionality? I don't feel like adding Aries files, as they seem to be from PR1.2s Drive.
Or at least do a summary what to do. Thanks! |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
If Arie can beat me to it as I am not near a computer hehe it's slow to do that on the device |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Thanks again Arie and especially props to nieldk. Great team work for the both of you for figuring it out so quickly. Now lets see if i understood all of it and try to outcomment them myself.
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
Now lets see what else we can uncover from Nokia's lazy management errors! |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Would you guys mind posting all the changes you've made in one post, I'll get another diff patch on the go and incorporate it with the shell script from earlier, unless either of you two are on the job.
Oh, and thanks. Another nice find. :) |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Last missing item would be the ability to touch the "distance left" to switch it to "time left". Symbians drive had that.
And traffic rerouting of course, but I doubt this is hidden in there.... |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
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. |
All times are GMT. The time now is 04:57. |
vBulletin® Version 3.8.8