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)

thedead1440 2012-09-07 16:03

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

Originally Posted by Schturman (Post 1262673)
colin.stephane, do you added only to full or also to unstable?


Schturman,

If you are asking about the latest patch from tenchman; its added to unstable as per colin.stephane's edits:

Quote:

Edit #11 : Added latest patch from tenchman on post #327 to transform the 2 state button "TTD, Distance" into a 3 state button "TTD, Distance and ETA" in the Unstable patch

Schturman 2012-09-07 16:09

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Thanks, i will add this to the next release of N9QT ;)

Win7Mac 2012-09-13 23:34

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Following the instructions from post #1+#130, I did in this order
- installed 'wget' in 'settings' -> 'security' -> 'developer mode' -> 'utilities'
- installed 'patch' utility
- Saved the unstable patch.diff with Win-editor in ANSI code.
- Used this console command line to install the Unstable patch:
Code:

clear && ID=$(id -un) ; if [ ${ID} != "root" ] ; then echo "You are not 'root', please use this command line as 'root' (devel-su) ..." ; else rm /root/*.diff 2>/dev/null ; wget http://bigbob.fun.free.fr/N9/Patch-t...-UNSTABLE.diff -O /root/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff && apt-get install -y --reinstall nokia-drive-qml maps && sync && patch -p0 -i /root/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff && sync ; fi
and got this Error:
Code:

miss https://downloads.maemo.nokia.com ./ maps 4.2.55+0m8
Resolving host timed out: downloads.maemo.nokia.com
miss https://downloads.maemo.nokia.com ./ nokia-drive-qml 2.0.8+0m8
Resolving host timed out: downloads.maemo.nokia.com
Error trying to catch from https://qa9recEP:Pat2UGuP@downloads....+0m8_armel.deb Resolving host timed out: downloads.maemo.nokia.com
Error trying to catch from https://qa9recEP:Pat2UGuP@downloads....+0m8_armel.deb Resolving host timed out: downloads.maemo.nokia.com
E: Some archives could not be downloaded, probly wanna try »apt-get update« or »--fix-missing«?

Words in red letters are my translations, originally it's in german.
As these version actually are installed, I didn't really care and
- went to the folder where the downloaded patch resided (name of the folder is "Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE") and typed:
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+ETA-UNSTABLE.diff
and I get:
Code:

BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user/MyDocs/Downloads/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE # 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+ETA-UNSTABLE.diff

cp: can't stat 'Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff/drive-qml': Not a directory
cp: can't stat '/usr/lib/drive-qml-original': No such file or directory
cp: can't stat 'patch': No such file or directory

/home/user/MyDocs/Downloads/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE #

What do I have to check, what went wrong here? :confused:
I'm kinda lost...

zszabo 2012-09-14 02:31

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
You left out a semicolon, newline, or && between the cp command and the patch command. If you put a ; before "patch -p0 ..." that will fix it (assuming nothing else was overwritten).

kfahoo 2012-09-14 08:40

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

Resolving host timed out: downloads.maemo.nokia.com
check whether your dns works with nslookup or/and internet connection

and like above

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+ETA-UNSTABLE.diff

Win7Mac 2012-09-14 10:29

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Thank you guys.

Quote:

Originally Posted by kfahoo (Post 1266175)
check whether your dns works with nslookup or/and internet connection

internet + mail works fine, but when it comes to "downloads.maemo.nokia.com" I have problems. Already posted here andhere, but no solution so far.

And indeed I missed newline before "patch -p0 -i..."

Here's what came out after correcting that:
Code:

~ # cd /home/user/MyDocs/Downloads/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3\+ETA-UNSTABLE/

/home/user/MyDocs/Downloads/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE # cp -r /usr/lib/drive-qml /usr/lib/drive-qml-original

/home/user/MyDocs/Downloads/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE # patch -p0 -i Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff

(Stripping trailing CRs from patch.)

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

(Stripping trailing CRs from patch.)

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

(Stripping trailing CRs from patch.)

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

(Stripping trailing CRs from patch.)

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

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/components/qmldir

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/components/styles.js

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/components/InfoDistance.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/components/TrafficEventHeader.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/components/Dashboard.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/assistancePage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/trafficDetailsPage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/guidancePage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/settings/mapModeSettingsPage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/settings/assistanceModeSettingsPage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/settings/settingsPage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/guidanceMenuPage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/models/AppSettingsModel.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/models/TrafficModel.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/models/RoutingModel.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/models/MapSettingsModel.qml

patch unexpectedly ends in middle of line

Hunk #5 FAILED at 158.

1 out of 5 hunks FAILED -- saving rejects to file /usr/lib/drive-qml/models/MapSettingsModel.qml.rej

/home/user/MyDocs/Downloads/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE #

Damn!
What can I do?

thedead1440 2012-09-14 15:06

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

My advice to you would be to use N9QTweak instead...It has the same patch that colin.stephane posts on here...

colin.stephane 2012-09-14 20:37

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

Originally Posted by Win7Mac (Post 1266219)
Thank you guys.


internet + mail works fine, but when it comes to "downloads.maemo.nokia.com" I have problems. Already posted here andhere, but no solution so far.

And indeed I missed newline before "patch -p0 -i..."

Here's what came out after correcting that:
Code:

~ # cd /home/user/MyDocs/Downloads/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3\+ETA-UNSTABLE/

/home/user/MyDocs/Downloads/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE # cp -r /usr/lib/drive-qml /usr/lib/drive-qml-original

/home/user/MyDocs/Downloads/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE # patch -p0 -i Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE.diff

(Stripping trailing CRs from patch.)

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

(Stripping trailing CRs from patch.)

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

(Stripping trailing CRs from patch.)

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

(Stripping trailing CRs from patch.)

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

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/components/qmldir

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/components/styles.js

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/components/InfoDistance.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/components/TrafficEventHeader.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/components/Dashboard.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/assistancePage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/trafficDetailsPage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/guidancePage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/settings/mapModeSettingsPage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/settings/assistanceModeSettingsPage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/settings/settingsPage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/views/guidanceMenuPage.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/models/AppSettingsModel.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/models/TrafficModel.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/models/RoutingModel.qml

(Stripping trailing CRs from patch.)

patching file /usr/lib/drive-qml/models/MapSettingsModel.qml

patch unexpectedly ends in middle of line

Hunk #5 FAILED at 158.

1 out of 5 hunks FAILED -- saving rejects to file /usr/lib/drive-qml/models/MapSettingsModel.qml.rej

/home/user/MyDocs/Downloads/Patch-to-enable-traffic-and-day-night-autoswitch-in-drive-for-N9-PR1.3+ETA-UNSTABLE #

Damn!
What can I do?

Damn why trying to apply manually step by step things where I have made an automatic installation at post #130 ??? !!! ...

If you can't resolve 'downloads.maemo.nokia.com' FIRST FIX your dns resolution ...

Since I do not think you have manually edited name resolution on your device, then you are using a bad connection.

PLEASE FIX FIRST DNS RESOLUTION, then the automatic solution work fine ...

A++

Win7Mac 2012-09-14 21:18

Re: [MOD] Enable Traffic/Automatic day-night in Drive & Traffic in Maps
 
Damn, just got your patch through at a friend using his WLAN! Everything loaded from ext. servers without issues.:)

So no need for this code anymore, I assume?:
Quote:

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
Will try tomorrow, if every thing works fine with drive.

Quote:

If you can't resolve 'downloads.maemo.nokia.com' FIRST FIX your dns resolution ...
Must be my router at home. If I use other WLANs, sometimes it works, sometimes it doesn't. Really don't understand this crap, but will observe further.
Thanks a lot!

colin.stephane 2012-09-15 06:32

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

Originally Posted by Win7Mac (Post 1266581)
Damn, just got your patch through at a friend using his WLAN! Everything loaded from ext. servers without issues.:)

So no need for this code anymore, I assume?:

Will try tomorrow, if every thing works fine with drive.


Must be my router at home. If I use other WLANs, sometimes it works, sometimes it doesn't. Really don't understand this crap, but will observe further.
Thanks a lot!

Hi,

Glad to see you find a reliable WLAN access properly configured to let your device connect correctly to Internet and install the patch ...

Obviously, you don't need to use these "cp -r blah ... blah ... etc ..." anymore.

I have put many time to check an re-check my full patch to maximize end user installation to the simple way, taking care of users remarks post after post ...

Anyhow, since it look like it's not obvious for everyone, I have edited another time my procedure and added :

Quote:

- Mandatory, your device need to be connected to Internet !!!.
Since you have the prerequisite, now you can play with commands to install and revert modifications as long as you have a CORRECT connection to Internet.

Good playing with your Drive application !!!

A++


All times are GMT. The time now is 07:30.

vBulletin® Version 3.8.8