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)

rash.m2k 2012-07-09 09:51

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

Originally Posted by aShtk (Post 1234292)
models/AppSettingsModel.qml: 3 lines, line 23/165/180

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

Nope they are ALL set to false, he is setting to true, if yours are true then you must have changed it.

aShtk 2012-07-09 09:59

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
That's what I said, read again xD

colin.stephane 2012-07-09 10:09

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

Originally Posted by aShtk (Post 1234292)
models/AppSettingsModel.qml: 3 lines, line 23/165/180

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

Thanks you to pointing out the modifications explanations are not clear at all ...

A++

rash.m2k 2012-07-09 10:13

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
ALRIGHT brilliant!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!

This is definitely the BEST surprise I have had since owning the Nokia N9.

Thank you so much!

nieldk 2012-07-09 10:14

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
modified the files (pr1.3) - a few differences from OP.
Seems traffic is working, but navigation stopped working (stuck after choosing destination)

EDIT: my mistake, works absolutely great on pr1.3

nieldk 2012-07-09 10:16

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
on pr1.3 as root in terminal

apt-get update
apt-get install --reinstall nokia-drive-qml

will restore app, in case you f... up ;)

aShtk 2012-07-09 10:17

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
If you have never coded anything in your life, it can be tricky to know how to uncomment lines.


A comment line begins by //
But you can comment several line of codes using /* then */ or something like that.


Example : models/AppSettingsModel.qml: 3 lines, line 23/165/180

Line 23 :

traffic: true

Line 166 :
trafficOn = get('traffic');

Line 180 :
trafficOn = get('allowConnections') && get('mapSensor') && get('traffic') && device.online;



Example 2 : views/settings/settingsPage.qml: line 72, un-comment the whole ButtomItem {}.


/** TODO: uncomment when management makes up their minds
ButtonItem {
id: traffic
itemId: "traffic"
title: qsTrId("qtn_drive_traffic_settings_item")
subtitle: trafficSettingsSubtitle();
iconUrl: "../../resources/traffic/list_item/traffic_on.png"
}
*/

HAS TO BECOME :

ButtonItem {
id: traffic
itemId: "traffic"
title: qsTrId("qtn_drive_traffic_settings_item")
subtitle: trafficSettingsSubtitle();
iconUrl: "../../resources/traffic/list_item/traffic_on.png"
}

Arie 2012-07-09 10:23

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
Retested again... Works on PR1.2

I'll upload this for anyone that's using PR1.2 and PR1.3 :)

drop this in MyDocs
devel-su
rootme
cp -R drive-qml /usr/lib/

https://www.dropbox.com/s/27zgzbxyqqyktpf/drive-qml.zip

File edited to include automatic night/day setting :)

colin.stephane 2012-07-09 10:38

Re: [PR1.3 MOD] How to enable Traffic in Drive
 
I continue thinking a unified diff patch file was the best to keep modifications safe with easy possibility to reverse ...

A++

Arie 2012-07-09 10:39

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++

It couldn't be easier than this...

Use my file to modify it, and to revert back to stock in terminal:
apt-get --reinstall install nokia-drive-qml


All times are GMT. The time now is 08:17.

vBulletin® Version 3.8.8