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-07-11 08:14

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
its currently 4pm here and also in night mode after switching to automatic...

godofwar424 2012-07-11 12:08

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Yeah mine stays in Night Mode and its 1:08PM here :s

slarti 2012-07-11 12:11

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Could it measure ambient light, not time?

mbanck 2012-07-11 12:16

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
The calculation of sunrise and sunset seems to be wrong.

If I start drive with "drive-qml -output-level debug" on the console, I get:


Sunset:1.4444082226241228
Sunrise:22.555591777375877
NOW: 14.2

NOW is correct (2PM here), but I am in Munich, so Sunset, Sunrise are way off.

I don't have time to debug this further for now.

Schturman 2012-07-11 12:44

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
i also already added this tweak to N9QT, to the next version..

kb61 2012-07-11 12:56

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

Originally Posted by jd4200 (Post 1234481)
Thanks sony123, a real nice find.
Here's an automated method (completely safe and reversable) to take away the tedious work.

Download this shell script, rename it to maps.sh
Download one, or both, of these patches:
traffic patch, rename it to traffic.patch
day patch, rename it to day.patch

Place maps.sh and both/either of the patches into the same directory on the N9 and, as root, cd to where you copied them and run
Code:

sh ./maps.sh
If you are told a patch has already been applied and asked about a reversal, just anser "n" (no) to all the questions.

If you want to restore the original files then, as root, run:
Code:

rm -rf /usr/lib/drive-qml
apt-get install --reinstall nokia-drive-qml


doesnt work for me, it says "line 1: syntax error: unexpected new line"

thedead1440 2012-07-11 14:21

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
did you modify the file after downloading it? it could be you've pressed the enter key on the first line of the file hence the error...this is what is my knowledge...

jd4200 2012-07-11 14:42

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Confirmed that day/night does not seem to be automatically switching; the changes for the patch where taken directly from what Nieldk and Arie discovered, so unless I've made a mistake with the patch, I'll need to wait for either of them to re-confirm it is working for them.

solstice88 2012-07-11 15:33

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

Originally Posted by mbanck (Post 1235980)
The calculation of sunrise and sunset seems to be wrong.

If I start drive with "drive-qml -output-level debug" on the console, I get:

The numbers i seem to be getting in TX, US

Sunrise = 7.5236543734
Sunset = 16.4763456265
NOW 10.4

looks to be really close. quite possibly an hr or two off. NOW is about 10am

mbanck 2012-07-11 15:37

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Huh, the sun is setting at 4PM in Texas right now??


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

vBulletin® Version 3.8.8