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)

jd4200 2012-07-09 14:26

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

Originally Posted by Morpog (Post 1234489)
It can't find package patch when trying to apt-get install patch........

Ah, I forgot I added the SDK repository.

Either download and install
http://harmattan-dev.nokia.com/pool/...+0m6_armel.deb

Or, add the following to: /etc/apt/sources.list.d/sdk.list
Code:

deb http://harmattan-dev.nokia.com/ harmattan/sdk free non-free
And run apt-get update, apt-get install patch

Morpog 2012-07-09 14:59

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
Your patch works great!
Couldn't install the deb, so I added the SDK repository via MeeCatalog (easier to add and remove in there).

solstice88 2012-07-09 15:01

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
Great work to sony123 for the discovery and Arie for the assistance to others.

billranton 2012-07-09 17:36

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
It's funny how we've all got used to this intentional crippling by nokia management. Just imagine what these guys will be able to deliver now they're free of it.

sony123 2012-07-09 18:45

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

Originally Posted by colin.stephane (Post 1234335)
I continue thinking a unified diff patch file was the best to keep modifications safe with easy possibility to reverse ...

A++

Thanks for the suggestion. Sorry that I don't know anything about patch so I misunderstood what you suggested. I have edited the first post to include the patch provided by jd4200.

biatch0 2012-07-10 03:08

Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
 
Made the changes to my files with the patch... No errors...

Unfortunately, it appears that Nokia Maps doesn't have Live Traffic for Kuala Lumpur, Malaysia yet.

Possibly I'm doing something wrong since all the traffic options appear but the traffic itself just doesn't load!!!

EDIT: Confirmed. No traffic info for Malaysia at this point. Traffic for Netherlands and USA load perfectly.

drvar 2012-07-10 07:29

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

Originally Posted by biatch0 (Post 1234958)
Made the changes to my files with the patch... No errors...

Unfortunately, it appears that Nokia Maps doesn't have Live Traffic for Kuala Lumpur, Malaysia yet.

Possibly I'm doing something wrong since all the traffic options appear but the traffic itself just doesn't load!!!

EDIT: Confirmed. No traffic info for Malaysia at this point. Traffic for Netherlands and USA load perfectly.

Can you check for Slovenia if possible?
(I like to know if it's worth the trouble..)

ceroberts75 2012-07-10 08:10

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

Originally Posted by jd4200 (Post 1234481)
Thanks sony123, a real nice find.

Anyway, here's a patch to take away the tedious work. Tested and works fine.

Automatic method:
Download this shell script, rename it to maps.sh
Download this patch, rename it to traffic.patch

Place them both in the same directory on the N9 and, as root, cd to where you copied them and run
Code:

sh ./maps.sh
Manual method:
*Download this patch, rename it to traffic.patch

*Install the patch program:
Code:

apt-get install patch
If it tells you it can't find the file, you don't have Nokia's SDK repository enabled, so either:
use the app. MeeCatalog to enable the SDK repository, or add the following to: /etc/apt/sources.list.d/sdk.list
Code:

deb http://harmattan-dev.nokia.com/ harmattan/sdk free non-free
After either, run apt-get update && apt-get install patch

*Make a backup of the original files.
Code:

cp -r /usr/lib/drive-qml/ /home/user/
*Do a test run first with:
Code:

patch --dry-run -p0 -i traffic.patch
*Only if no errors are displayed then you can safely modify the files with:
Code:

patch -p0 -i traffic.patch

I Seem to get can't open patch, permission denied.


Any ideas?

soryuuha 2012-07-10 08:37

Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
 
nice finding OP, wil try this out!

jd4200 2012-07-10 09:34

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

Originally Posted by ceroberts75 (Post 1235052)
I Seem to get can't open patch, permission denied.
Any ideas?

Try "chmod 777 traffic.patch" as both a normal user and root. (Granting permissions on the N9 are a bit dodgy, from a root perspective).
Then, as root, re-running "sh traffic.sh"


All times are GMT. The time now is 04:16.

vBulletin® Version 3.8.8