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)

sony123 2012-07-09 06:32

[MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
[ WARNINGS ]
This isn't a difficult mod, but do need basic linux/programming knowledge. So if you don't know what the following steps mean, please don't attempt it or ask around for help. I don't provide modified files because I think distributing them are illegal.
The mod is pretty safe. If you break your device (unlikely) or break Drive app (more likely), it's your own responsibility. In the worst case, you can go to terminal and become root, use "apt-get install --reinstall nokia-drive-qml " to restore Drive app.

[ What is this? ]
- So far, there are three hidden features revealed and three community fixes/add-on
  • Hidden Features
    • Live traffic for Drive
    • Live traffic for Maps
    • Automatic day/night (Thanks to nieldk and Arie)
    • Beta Testing: Traffic detail page showing events' starting location and causes.
  • Community Fixes
    • Fix erratic auto day/night switching for some users. (Thanks to mbanck)
    • Fix sticky 'Show Traffic' state. (Thanks to nailwood)
    • Distance/Time-to-arrival toggle button in guidance view. (Thanks to mbanck)
- UPDATE 08/07: Traffic detail page for Drive is in beta testing.
- UPDATE 08/07: Maps traffic patch has been integrated into colin.stephane's unstable patch.
- UPDATE 07/17: There is now all-in-one patches prepared by colin.stephane. There are two versions, stable and unstable. Stable currently doesn't contain community fixes. Unstable contains community fixes, sometimes still under development. They can be downloaded from here.
- Tried on PR1.3. Thanks to Arie, he confirmed that this works on PR1.2 as well.

[ Traffic ]

Thanks to jd4200 and colin.stephane for the initiative of using patch to apply the mods. The easiest and recommended way is to apply the all-in-one patch by colin.stephane:

http://talk.maemo.org/showpost.php?p...&postcount=130

jd4200's patch can be found here. It is traffic + auto day/night without the community fixes.

[ Automatic Day/Night ]

I. Used the all-in-one patch above (Recommend)


[ Community Fixes/Add-on ]

[ Possible features for community to implement ]

[ FAQ ]
Q. How do I apply a patch?
A. Download http://harmattan-dev.nokia.com/pool/...+0m6_armel.deb to install the patch utility. (If the clicking on the deb file doesn't install, go to terminal in root then type 'dpkg -i [path_to_your_patch_deb]/patch_2.6-2+maemo7+0m6_armel.deb' to install it.)
If you use the all-in-one patch, first download it and save it in a folder of your choice. Launch terminal, login as root , go to the folder where the downloaded patch resides, type:
Code:

cp -r /usr/lib/drive-qml /usr/lib/drive-qml-original
patch -p0 -i Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3.diff

For jd4200's patches, please follow the step in his post.

Q. I applied the patch/modified the codes, but no traffic overlay shows up?
A. Go to San Francisco and see if traffic shows up. If it does, then most likely traffic data re not available at your area. Go to desktop Nokia Map site and see if there is live traffic. No traffic in desktop site = no traffic in Drive.

Q. I totally messed up and Drive doesn't launch. What should I do?
Launch terminal, log in as root (type 'devel-su', then default password is 'rootme')
rm -rf /usr/lib/drive-qml apt-get install --reinstall nokia-drive-qml
[ Credits ]

Thanks to whoever worked on the Drive app, without him/her leaving well-organized traces in the codes we would never know!
Thanks to everyone contributing to this thread!

[ Traffic Screenshot ]

Drive
https://dl.dropbox.com/u/54692247/20...8_23-29-04.png

Maps
https://dl.dropbox.com/u/54692247/20...9_01-50-50.png

Morpog 2012-07-09 07:10

Re: [MOD] Traffic working in Drive!!!
 
Great find! I'm excited about it and wonder if there could be more stuff hidden?

nieldk 2012-07-09 07:19

Re: [MOD] Traffic working in Drive!!!
 
nice finding, probably preparing an update to our device like symbian and Lumia drive app

http://www.youtube.com/watch?v=VbINz5ZhcNU

Arie 2012-07-09 07:22

Re: [MOD] Traffic working in Drive!!!
 
Quote:

Originally Posted by Morpog (Post 1234218)
Great find! I'm excited about it and wonder if there could be more stuff hidden?

There's a lot of unfinished stuff/secrets hidden in Harmattan, we just have to find it :)

Edit: modified files here...

http://talk.maemo.org/showpost.php?p...2&postcount=18

I know that sony123 is against this, but some people aren't comfortable making changes like this :)

Nad 2012-07-09 07:24

Re: [MOD] Traffic working in Drive!!!
 
Quote:

Originally Posted by nieldk (Post 1234220)
nice finding, probably preparing an update to our device like symbian and Lumia drive app

http://www.youtube.com/watch?v=VbINz5ZhcNU

hopefully so, it was the final missing feature in drive from symbian ! I think it will be coming in because store may be getting an update as reviews are not working!

sony123 2012-07-09 08:12

Re: [MOD] Traffic working in Drive!!!
 
Add steps to first post. Please give it a try and enjoy!

colin.stephane 2012-07-09 09:15

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
sony123,

Please do a backup of your modified files and attach it to the 1st post.

Then I can do a diff file to patch easily ...

A++

sony123 2012-07-09 09:23

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
Quote:

Originally Posted by colin.stephane (Post 1234275)
sony123,

Please do a backup of your modified files and attach it to the 1st post.

Then I can do a diff file to patch easily ...

A++

Sorry as I said I don't feel comfortable distributing the modified files, I believe it is illegal from Nokia's term. Maybe someone else will do it eventually.

Arie 2012-07-09 09:25

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
Checked 15 times now, it doesn't work on PR1.2 at all.


If someone sends me their files, from PR1.3 I can mod them and post them...

Someone else will have to test them, but I can modify them as was written here.

aShtk 2012-07-09 09:41

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
models/AppSettingsModel.qml: 3 lines, line 23/165/180

You uncomment true and you comment false ?
This is not clear.


All times are GMT. The time now is 11:50.

vBulletin® Version 3.8.8