Active Topics

 


Reply
Thread Tools
Posts: 1,539 | Thanked: 1,604 times | Joined on Oct 2011 @ With my N9
#61
Originally Posted by nieldk View Post
Yes, it is evening here, also tried manual time setting

Button needs to be enabled in
/usr/lib/drive-qml/views/settings/mapModeSettingsPage.qml

Comments needs to be removed from
/usr/lib/drive-qml/models/MapSettingsModel.qml
Ah ok, so we're missing the plugin... Do you happen to have the lines for that?

I could change them and test them here too
__________________
Arie|www.everythingn9.com|Nokia N9 64GB x2|Nokia N950

@everythingn9

Temporary Inception Fix


Times Banned from TMO: 4
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#62
Originally Posted by Arie View Post
Ah ok, so we're missing the plugin... Do you happen to have the lines for that?

I could change them and test them here too
search for auto, Was doing the changes in phone terminal LOL so I need to reinstall the Application to give a full diff

There are only 2 lines in the first file /* + */ that encapsulated the button
And likewise in the second file, but 2 places

EDIT
In MapSettingsModel.qml

If you out comment function isNight at the button it seems to actually work

Last edited by nieldk; 2012-07-10 at 20:36.
 

The Following User Says Thank You to For This Useful Post:
Posts: 1,539 | Thanked: 1,604 times | Joined on Oct 2011 @ With my N9
#63
Originally Posted by nieldk View Post
search for auto, Was doing the changes in phone terminal LOL so I need to reinstall the Application to give a full diff

There are only 2 lines in the first file /* + */ that encapsulated the button
And likewise in the second file, but 2 places
I got it working

in /usr/lib/drive-qml/models/MapSettingsModel.qml

There is a line:

/*
if (newvalue === "auto") {
setNightMode(isNight());
}
else*/ {
setNightMode(newvalue === "night");

Should be changed to:

if (newvalue === "auto") {
setNightMode(isNight());
}
else {
setNightMode(newvalue === "night");

It will start up in night mode, then choose automatic, it will set itself up and run as it should
__________________
Arie|www.everythingn9.com|Nokia N9 64GB x2|Nokia N950

@everythingn9

Temporary Inception Fix


Times Banned from TMO: 4
 

The Following 2 Users Say Thank You to Arie For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#64
Originally Posted by Arie View Post
I got it working

in /usr/lib/drive-qml/models/MapSettingsModel.qml

There is a line:

/*
if (newvalue === "auto") {
setNightMode(isNight());
}
else*/ {
setNightMode(newvalue === "night");

Should be changed to:

if (newvalue === "auto") {
setNightMode(isNight());
}
else {
setNightMode(newvalue === "night");

It will start up in night mode, then choose automatic, it will set itself up and run as it should
Don't forget to outcomment the function isNight at the end of that file
 

The Following User Says Thank You to For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#65
Works great, thansk for this discover!

Maybe this can be add to N9 QTweak for people that doesn't have xterm experience at all
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 
Posts: 1,539 | Thanked: 1,604 times | Joined on Oct 2011 @ With my N9
#66
Originally Posted by nieldk View Post
Don't forget to outcomment the function isNight at the end of that file
console.log("Sunset:" + sunset);
console.log("Sunrise:" + sunrise);

var t = today.getHours() + today.getMinutes()/60;
console.log("NOW: "+t);
if (t >= sunrise && t < sunset) {
return false;
}
return true;
}

function onDayNightSwitch() {
console.log("onDayNightSwitch");
if (dayNightMode === "auto") {
console.log("Change map mode to: "+!nightMode);
setNightMode(isNight());
}
}

Are you referring to the bold?

Edit: and why?
__________________
Arie|www.everythingn9.com|Nokia N9 64GB x2|Nokia N950

@everythingn9

Temporary Inception Fix


Times Banned from TMO: 4
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#67
Originally Posted by Arie View Post
console.log("Sunset:" + sunset);
console.log("Sunrise:" + sunrise);

var t = today.getHours() + today.getMinutes()/60;
console.log("NOW: "+t);
if (t >= sunrise && t < sunset) {
return false;
}
return true;
}

function onDayNightSwitch() {
console.log("onDayNightSwitch");
if (dayNightMode === "auto") {
console.log("Change map mode to: "+!nightMode);
setNightMode(isNight());
}
}

Are you referring to the bold?

Edit: and why?
No, the entire function is commented out by embraced /* */
 

The Following User Says Thank You to For This Useful Post:
Posts: 1,539 | Thanked: 1,604 times | Joined on Oct 2011 @ With my N9
#68
Originally Posted by nieldk View Post
No, the entire function is commented out by embraced /* */
Oh, nvm, that's not an issue, already done

Edit: for those that don't want to do the changes nieldk and I did (includes traffic changes in Drive and Auto mode for day/night:

http://talk.maemo.org/showpost.php?p...2&postcount=18

Follow that
__________________
Arie|www.everythingn9.com|Nokia N9 64GB x2|Nokia N950

@everythingn9

Temporary Inception Fix


Times Banned from TMO: 4
 

The Following 2 Users Say Thank You to Arie For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#69
Originally Posted by Arie View Post
Oh, nvm, that's not an issue, already done

Edit: for those that don't want to do the changes nieldk and I did (includes traffic changes in Drive and Auto mode for day/night:

http://talk.maemo.org/showpost.php?p...2&postcount=18

Follow that
Thanks
That's good team work!
 

The Following 2 Users Say Thank You to For This Useful Post:
Posts: 1,539 | Thanked: 1,604 times | Joined on Oct 2011 @ With my N9
#70
Originally Posted by nieldk View Post
Thanks
That's good team work!
Yes sir, I am always willing to help keep the Harmattan Community alive
__________________
Arie|www.everythingn9.com|Nokia N9 64GB x2|Nokia N950

@everythingn9

Temporary Inception Fix


Times Banned from TMO: 4
 
Reply


 
Forum Jump


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