![]() |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Cool. confirming my previous post. It works and looks great!!
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Thanks guys for confirming that automatic day/night work. I saw the comments and took the non-working status for granted....
Updated first post to include automatic mod as well, will include new patch when it's available. |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
I took a look at the source code, it should be in components/Dashboard.qml. The speed and distance blocks are wrapped under AssistanceItem {}. We have speed and distance variables available so distance/speed + some decoration to beautify the output and alas we have the minutes left to destination. However, I think in GPS they do something extra to avoid erratic jumping of the value, for example smooth the speed over a certain period. Any idea on how to do the smoothing? Traffic re-route might be tricky, I haven't looked deeper but I would think we need get info from traffic and routing models to know there is traffic event along the original route. Unless there are some ready-to-use signals to trigger re-route event.... |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
I get
Quote:
Am seeing APT problems - related? Aegis will not let me upgrade fennec, and " cannot be authenticated! libgpg-error0 libpcap0.8 libpixman-1-0". I tried to use the zip file linked above, but no unzip on the N9. So why use zip instead of tar? |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Patch for day/night mode has been added:
http://talk.maemo.org/showpost.php?p...1&postcount=27 |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Thanks for that!
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
I applied the patch and switched to auto, but now it's at night mode and it's definately not night atm :)
Any idea? |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Same here, only night mode.
|
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...
|
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
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Could it measure ambient light, not time?
|
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. |
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..
|
Re: [PR1.3 MOD] How to enable Traffic in Drive
Quote:
|
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...
|
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.
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
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 |
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??
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
my local weather tells me sunrise: 7.29am & sunset 8.24pm Quote:
|
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.
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
|
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.... |
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. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
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. |
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() { |
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 |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
So I took a look at http://en.wikipedia.org/wiki/Sunrise_equation and http://users.electromagnetic.net/bu/...unrise-set.php
The drive-qml approximation for the declination is legit, it is equation 3 from http://solardat.uoregon.edu/SolarRadiationBasics.html What seems to be missing is probably a better approximation of the sun transit, i.e. the true sun noon. Otherwise, just some signs were apparently wrong in the sunrise/sunset calculation, with that fixed, it works well enough for me. This is the patch: http://paste.debian.net/download/178685 Or inline: Code:
--- /usr/lib/drive-qml/models/MapSettingsModel.qml.orig |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
my output while patching:
patching file MapSettingsMode.qml Hunk #1 FAILED at 135. 1 out of 1 hunk FAILED -- saving rejects to file MapSettingsModel.qml.rej Could someone help? |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Now, what seems to be missing is that it will actually refresh the daylight settings on a scheduled basis, or at least at app start. ATM it seems to only change if you enter settings and press auto :0 |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
mbanck
Good job, man. It's seems to work. thedead1440 Edit it manually. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
When you click on the toggle item for the traffic mode in the main settings screen, you can see that the label changes to "Hide traffic" for a fraction of a second before the screen is closed - But when the settings screen is opened again, the label is still set to "Show traffic". So I found out this small UI improvement:
In assistanceModeSettingsPage.qml, line 207 (inside the block "onBeforeShow:"), you can add the following line: buttonModel.updateTraffic(); This will show the label "Hide traffic" and the corresponding icon if traffic has been activated. |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
i think, the better way to switch day/night is to use the lightsensor... itīs more helpfull in tunnel...
is there a possibility to realice so? |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
I would also prefer a solution in help of the light sensor. I think this is a better way to switch between day and night.
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Quote:
|
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Until we find a way to sort of loop the isNght function so it checks every so often, the Light Sensor won't work efficiently as it will only check the light sensor on start-up and then set the map colours accordingly and then stop checking light sensor.
We need a way of it to keep checking either light sensor or comparing the current time to the Sunset/Sunrise to make it truly automatic switching. Probably what the plugin they were missing was meant to do! |
Re: [MOD] How to enable Traffic/Automatic day-night in Drive for PR1.2/1.3
Quote:
Now, the button to switch traffic on/off be refreshed properly ... Also, I have reread all the thread, but not be able to find how to add the "auto" tick option, there is only the 2 original options "day" & "night" tick options. If someone have the modification, feel free to put it here ... A++ |
All times are GMT. The time now is 04:57. |
vBulletin® Version 3.8.8