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)

solstice88 2012-07-11 15:57

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

Originally Posted by mbanck (Post 1236085)
Huh, the sun is setting at 4PM in Texas right now??

actually no sun right now nothing but rain. haha but not quite, its more like 8 pm.

my local weather tells me sunrise: 7.29am & sunset 8.24pm

Quote:

Originally Posted by jd4200 (Post 1236057)
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.

I think i might have caused a little confusion. My drive qml files codes lines has difference of 3 lines from Arie or nieldk probably from when i edit the traffic functions? I left some minor comments for reference. So its probably affecting your patch. Sorry

Arie 2012-07-11 16:10

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Automatic switching works for me. Tested last night and this morning.

jd4200 2012-07-11 16:38

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

Originally Posted by Arie (Post 1236110)
Automatic switching works for me. Tested last night and this morning.

If you get chance would you mind posting the changes you've made. It's a bit conufsing for me going through two or so pages of testing :) thanks.

gasilva 2012-07-11 17:07

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
The traffic is available for Costa Rica:confused:

Or I'm wrong:confused:

I'm enable Traffic but the map in Drive don't showme color or indications....

godofwar424 2012-07-11 17:31

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Well using drive-qml -output-level-debug

The app starts in Night mode and the only terminal output is "setBacklightDimming(1)"

Nothing about nightmode pops up and it is set to automatic.

Using Aries files and trying to just outcomment myself.

jd4200 2012-07-11 17:33

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

Originally Posted by godofware424
Using Aries files and trying to just outcomment myself.

Same.
I've tried using the files posted earlier, even with this it does not work for me.
I've tried switching from day/night to automatic multiple times, changing the times and reopening the application, but to no avail.

I wondering if it could be a firmware variant specific issue, or something similar.

jflatt 2012-07-11 17:50

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
I'm not getting auto switchover either, but here is how you can use the ALS, it seems to work on startup (note, forum mangled, the QML should be all one line, and the OR statement looks wrapped):
Code:

function isNight() {
    var als;
    als = Qt.createQmlObject('import QtMobility.sensors 1.2; AmbientLightSensor { }', this, null);
    als.start();
    if (als.reading.lightLevel == 1 || als.reading.lightLevel == 2) {
        als.destroy(1000);
        return true;
    }
    als.destroy(1000);
    return false;
}


nieldk 2012-07-11 18:47

Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
 
Hmm seems like there is some errors in how sunrise /sunset is calculated. Depending perhaps on timezone and /or something more.
Probably this can be fixed relatively easy. Will have a look at the isNight () function later

Z3tor 2012-07-11 19:10

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

Originally Posted by Morpog (Post 1235622)
Last missing item would be the ability to touch the "distance left" to switch it to "time left". Symbians drive had that.

And traffic rerouting of course, but I doubt this is hidden in there....

Just wondering if speed cameras could be enabled somehow too..?

godofwar424 2012-07-11 19:34

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

Originally Posted by Z3tor (Post 1236256)
Just wondering if speed cameras could be enabled somehow too..?

Been asked by myself and another earlier on, no point to keep asking the same thing. Just Thank the posts we made and then the more Thanks shows the amount of people who want the feature :D


All times are GMT. The time now is 23:20.

vBulletin® Version 3.8.8