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)

Win7Mac 2012-10-07 16:10

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
I'd like to request a mod for landscape mode in MAPS.
If DRIVE can do it, MAPS could do it too I guess?

tenchman 2012-10-08 21:31

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by Win7Mac (Post 1266984)
To make this mod even more valuable, let's try to bring speedcam warnings to it.

A short "grep -ri speedcam /usr/lib/qt4 /usr/lib/nokia-drive" brought to us: Nothing....

But "grep -ri safetyspot /usr/lib/qt4 /usr/lib/nokia-drive" gives a lot of useful symbols. It seems that the requested feature is already there, but disabled. Or, to be more correct, it is in the qt4 API, but not used in "drive-qml".

Unfortunately i'm currently busy with a project @work. I'm an experienced but old "plain ansi C" hacker, so, C++ and JS is a pain for me.

If some QML-Hero can have a look at this, it would be really helpful. :D

knobtviker 2012-10-08 22:34

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by tenchman (Post 1278164)
A short "grep -ri speedcam /usr/lib/qt4 /usr/lib/nokia-drive" brought to us: Nothing....

But "grep -ri safetyspot /usr/lib/qt4 /usr/lib/nokia-drive" gives a lot of useful symbols. It seems that the requested feature is already there, but disabled. Or, to be more correct, it is in the qt4 API, but not used in "drive-qml".

Unfortunately i'm currently busy with a project @work. I'm an experienced but old "plain ansi C" hacker, so, C++ and JS is a pain for me.

If some QML-Hero can have a look at this, it would be really helpful. :D

When grep-ed:
/usr/lib/qt4 shows you a .so library, however, it only means that there are means for 3rd party devs to hook on the safetyspot data - if the data exists.
/usr/lib/nokia-drive doesn't exist on my phone, but that could be my problem to start with :)
/usr/lib/drive-qml exists but doesn't output anything, sorry.

tenchman 2012-10-09 17:52

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by knobtviker (Post 1278181)
/usr/lib/nokia-drive doesn't exist on my phone, but that could be my problem to start with :)

Sorry, my bad. I meen nokia-maps, not nokia-drive.

tenchman 2012-10-18 22:41

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Hi,

not much at this time on the safetyspot front, but i came up with the following patch for the speedwarner:

http://www.tenchio.de/patches/N9-PR1...ner_mute.patch

It adds an additional Button "MUTE" in the speedwarner setting screen. And, surprise, surprise, it disables the annoying beep when driving to fast but keeps the display flashing.

http://www.tenchio.de/patches/2012-10-19_00-00-58.png

Sorry, screenshot is in German. ;)

balisingh 2012-10-19 06:51

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
i applied the unstable patch to pr1.3, nothin happened, no traffic or anything in either app.

thedead1440 2012-10-19 07:00

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Quote:

Originally Posted by balisingh (Post 1282430)
i applied the unstable patch to pr1.3, nothin happened, no traffic or anything in either app.

Then you did it wrong, plain simple :p

Anyway use N9QTweak Tweak G instead for doing the same thing...Schturman updates his tweak to reflect the latest unstable patch here...

balisingh 2012-10-19 17:13

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
It seems like some failed patch code. Do you need developer mode enabbles? I have that turned off.

edit: i retried the unstable patch with developer mode enabled and it still didn't work, same errors as below.
i was however able to use the stable version, so now i have working traffic inside Drive. Thanks for your work guys.

Code:

# apt-get install -y --reinstall nokia-drive-
qml maps
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  maps nokia-drive-qml
2 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 1 not upgraded.
Need to get 4,543kB of archives.
After this operation, 0B of additional disk space will be used.
Get:1 https://downloads.maemo.nokia.com ./ maps 4.2.55+0m8 [2,726kB]
Get:2 https://downloads.maemo.nokia.com ./ nokia-drive-qml 2.0.8+0m8 [1,817kB]
Fetched 4,543kB in 5s (854kB/s)
(Reading database ... 53685 files and directories currently installed.)
Preparing to replace maps 4.2.55+0m8 (using .../maps_4.2.55+0m8_armel.deb) ...
Closing all Maps instances...
Maps closed. Exiting...
Done
Unpacking replacement maps ...
Preparing to replace nokia-drive-qml 2.0.8+0m8(using .../nokia-drive-qml_2.0.8+0m8_armel.deb) ...
Unpacking replacement nokia-drive-qml ...
aegis-installing maps (from 'com.nokia.maemo')
aegis-installing nokia-drive-qml (from 'com.nokia.maemo')
Processing triggers for desktop-file-utils ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for applauncherd-launcher ...
Setting up maps (4.2.55+0m8) ...
Setting up nokia-drive-qml (2.0.8+0m8) ...
Updating desktop entries... Done
~ # Sync
sh: Sync: not found
~ # sync
~ # patch -p0 -i /root/Patch-to-enable-traffic-
and-day-night-autoswitch-in-drive-for-N9-PR1.3\
+ETA-UNSTABLE.diff
patching file /usr/lib/qt4/imports/ovi/connector/map/MapSettingsUI.qml
Hunk #1 FAILED at 78.
Hunk #2 FAILED at 314.
2 out of 2 hunks FAILED -- saving rejects to file /usr/lib/qt4/imports/ovi/connector/map/MapSettingsUI.qml.rej
patching file /usr/lib/qt4/imports/ovi/connector/map/MapViewer.qml
Hunk #1 FAILED at 453.
1 out of 1 hunk FAILED -- saving rejects to file /usr/lib/qt4/imports/ovi/connector/map/MapViewer.qml.rej
patching file /usr/lib/qt4/imports/ovi/connector/map/MapBehaviors.qml
Hunk #1 FAILED at 207.
Hunk #2 FAILED at 235.
2 out of 2 hunks FAILED -- saving rejects to file /usr/lib/qt4/imports/ovi/connector/map/MapBehaviors.qml.rej
patching file /usr/lib/qt4/imports/ovi/connector/map/MapApi.js
Hunk #1 FAILED at 310.
1 out of 1 hunk FAILED -- saving rejects to file /usr/lib/qt4/imports/ovi/connector/map/MapApi.js.rej
patching file /usr/lib/drive-qml/components/qmldir
patching file /usr/lib/drive-qml/components/styles.js
patching file /usr/lib/drive-qml/components/InfoDistance.qml
patching file /usr/lib/drive-qml/components/TrafficEventHeader.qml
patching file /usr/lib/drive-qml/components/Dashboard.qml
patching file /usr/lib/drive-qml/views/assistancePage.qml
patching file /usr/lib/drive-qml/views/trafficDetailsPage.qml
patching file /usr/lib/drive-qml/views/guidancePage.qml
patching file /usr/lib/drive-qml/views/settings/mapModeSettingsPage.qml
patching file /usr/lib/drive-qml/views/settings/assistanceModeSettingsPage.qml
patching file /usr/lib/drive-qml/views/settings/settingsPage.qml
patching file /usr/lib/drive-qml/views/guidanceMenuPage.qml
patching file /usr/lib/drive-qml/models/AppSettingsModel.qml
patching file /usr/lib/drive-qml/models/TrafficModel.qml
patching file /usr/lib/drive-qml/models/RoutingModel.qml
patching file /usr/lib/drive-qml/models/MapSettingsModel.qml
~ # sync


Iryus 2012-10-20 11:08

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
1 Attachment(s)
@tenchman---> Just niiiiiiiiice thanks for your great job :)

Iryus 2012-10-20 12:47

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
1 Attachment(s)
Would it be possible to add Nokia Maps weather on the N9/N950 in your opinion? ^^


All times are GMT. The time now is 12:13.

vBulletin® Version 3.8.8