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)

colin.stephane 2012-07-16 11:06

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

Originally Posted by Morpog (Post 1238164)
Nevermind, I didn't follow your link and assumed you added it to both :D

The last patch of mbanck was applied to Stable and Unstable, because if you look closely, you can see it's only the refresh subroutine for Day/Night auto-switch added to some well chose location to force the refresh.

That why I stated "since it doesn't hurt anything ..." in my message ...

A++

mbanck 2012-07-16 12:15

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Cosmetic change for the time-to-destination MOD:

- now rounds seconds to nearest 5 seconds, i.e. 23 -> 25, otherwise it updates ridiculously often

- never print spaces around "/" to make it fit better in the widget

- indentation fix

Patch (on top of the last one): http://paste.debian.net/download/179330

I tested the feature this morning and the reported time-to-destination values look correct and update smoothly.

colin.stephane 2012-07-16 12:54

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

Originally Posted by mbanck (Post 1238199)
Cosmetic change for the time-to-destination MOD:

- now rounds seconds to nearest 5 seconds, i.e. 23 -> 25, otherwise it updates ridiculously often

- never print spaces around "/" to make it fit better in the widget

- indentation fix

Patch (on top of the last one): http://paste.debian.net/download/179330

I tested the feature this morning and the reported time-to-destination values look correct and update smoothly.

Hi mbanck,

As usual, thanks for your investigations !!!

I also tested the feature this morning to came at work, and it was already accurate even without this last patch.

Anyhow, I updated my full patch in section Unstable for this one ...

A++

jimthefly 2012-07-16 13:26

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Hi mbanck,

great work, but it is possible to reduce the font size of the distance and the time. Because it is not possible to see both.

Morpog 2012-07-16 13:36

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
No need to, Sony123 is working on a solution to switch both by touching it. Just like on Symbian (and I assume on WP).

taviman 2012-07-16 14:26

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

Originally Posted by praveenchand (Post 1237888)
using terminal, goto the folder containing .deb file and type dpkg -i patchfilename


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.

~ # cd /home/user
/home/user # dpkg -i patch_2.6-2+maemo7+0m6_arm
el.deb
Aegis rejecting patch_2.6-2+maemo7+0m6_armel.deb: Could not open debian archive
aegis aborting dpkg -- all listed package files rejected
Compilation failed in require.
/home/user #


I still cannot install the .deb.

colin.stephane 2012-07-16 14:33

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

Originally Posted by taviman (Post 1238238)
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.

~ # cd /home/user
/home/user # dpkg -i patch_2.6-2+maemo7+0m6_arm
el.deb
Aegis rejecting patch_2.6-2+maemo7+0m6_armel.deb: Could not open debian archive
aegis aborting dpkg -- all listed package files rejected
Compilation failed in require.
/home/user #

I still cannot install the .deb.

Don't connect directly as root, connect as user then switch to root with devel-su and finally dpkg -i /where_you_put_your/package.deb

A++

taviman 2012-07-16 14:52

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Got it. It was not my command sting but the place where the package was.
Aegis just didn't want to open the .deb from home/user.
I moved it to MyDocs and it went fine (so far).

My N9 helps me learn something new every day...

nbedford 2012-07-16 14:57

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
If I have already applied one .diff file using patch -p0 -i patch.diff, what is the correct way to go about updating to a new diff file.

Is there patch syntax to undo the previous .diff file, or does patch magically know what has already been changed and just apply the new additions in a later .diff file?

mbanck 2012-07-16 15:46

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

Originally Posted by nbedford (Post 1238249)
Is there patch syntax to undo the previous .diff file, or does patch magically know what has already been changed and just apply the new additions in a later .diff file?

patch -R will unapply a patch.


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

vBulletin® Version 3.8.8