navit-project.org

forum for navit navigation tool
It is currently 18 Aug 2017, 01:05
View unanswered posts | View active topics


All times are UTC


Forum rules


Feel free to ask anything here related to the installation and configuration of Navit.

Some notes before your first post:

Please provide as much informations as possible:



Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: ETA is terribly wrong
PostPosted: 23 Nov 2015, 17:15 
Offline

Joined: 23 Nov 2015, 16:46
Posts: 6
Heyho, (deutsche Version unten)
last week i installed Navit on my Raspberry Pi 2 and everything just works fine.
I did the "manual" setup, so it should be the newest Version.

My Problem: The ETA is terribly wrong. But i asked myself how it is calculated, the trip-duration time is pretty accurate. So if it's added up with the current daytime it should be correct.
Does somebody know what's going wrong with my version? The Picture i added to this post shows the Problem.
I didn't change the Line within the navit.xml except for the enabled boolean of course.
Code:
<!-- ETA  -->
<osd enabled="yes" type="text" label="ETA: ${navigation.item.destination_time[arrival]}" x="-210" y="50" font_size="600" w="210" h="50" align="8" background_color="#00000099"  osd_configuration="8192"/>

Any ideas?

Thank you in advance :)


Heyho,
ich habe letzte Woche Navit auf meinem Raspberry Pi 2 installiert und soweit läuft alles super.
Es war die "manuelle" Installation, müsste also das aktuellste sein.

Jetzt zu meinem Problem: Die geschätzte Ankunftszeit stimmt überhaupt nicht. Allerdings frage ich mich, wie diese berechnet wird, denn die geschätzte Fahrzeit stimmt ziemlich genau. Wenn diese also einfach auf die aktuelle Uhrzeit addiert werden würde, wäre alles richtig. Weiß jemand was da falsch läuft? Das Bild im Anhang zeigt das Problem noch mal.
In der entsprechenden Zeile habe ich nichts verändert, die ist genau wie bei der Installation von Navit. Bis auf die Tatsache, dass ich ETA enabled habe.
Code:
<!-- ETA  -->
<osd enabled="yes" type="text" label="ETA: ${navigation.item.destination_time[arrival]}" x="-210" y="50" font_size="600" w="210" h="50" align="8" background_color="#00000099"  osd_configuration="8192"/>


Hat jemand eine Idee?
Danke im Voraus :)


Attachments:
12285866_10205952895637001_1473123407_n.jpg
12285866_10205952895637001_1473123407_n.jpg [ 54.9 KiB | Viewed 3321 times ]
 Profile  
 
 Post subject: Re: ETA is terribly wrong
PostPosted: 23 Nov 2015, 22:12 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
Is the ETA off by an integer number of hours? If so, it might be that Navit does not use the correct time zone. You could try to set the TZ environment variable to the correct value for your timezone before running Navit. I had the same problem on TomTom.


 Profile  
 
 Post subject: Re: ETA is terribly wrong
PostPosted: 23 Nov 2015, 22:40 
Offline

Joined: 23 Nov 2015, 16:46
Posts: 6
Thank you for your answer.

Unfortunately it's not off by an integer, i should have explained the picture, i'm sorry.

The numbers on the left side of the screen, show the distance and the time to the destination.
on the top right side (where it's a little dark) you can see the regular clock, beyond the ETA.

So the clock says: 15:28 o'clock (3:28 pm)
the distance (time): 00:27 hrs
the ETA: 02:28 o'clock (2:28 am)

so in fact the ETA is off by an integer, but from the regular time and i think it's just by accident. On another Photo the Clock says 12:01 (pm) and ETA 10:52 am.

I looked through the configuration options but i can't find one that seems to adjust the time-zone, so could you please telle me where/how i can do that? :)


 Profile  
 
 Post subject: Re: ETA is terribly wrong
PostPosted: 24 Nov 2015, 08:41 
Offline
User avatar

Joined: 07 Jun 2013, 17:13
Posts: 146
Location: Tartu, Estonia
These links should help you:

http://www.gnu.org/software/libc/manual ... iable.html
http://en.wikipedia.org/wiki/List_of_tz ... time_zones
http://www.cyberciti.biz/faq/linux-unix ... -variable/


 Profile  
 
 Post subject: Re: ETA is terribly wrong
PostPosted: 02 Dec 2015, 20:07 
Offline

Joined: 23 Jun 2013, 20:15
Posts: 65
Location: Essen, Germany
Please post the OSD settings from your navit.xml, at least those that
display the current time and ETA.

I just tested with my Navit installation (on Linux). If I use
Code:
<osd enabled="yes" type="text"
label="ETA: ${navigation.item.destination_time[arrival]}" x="100" y="-300" />
I get an ETA display. The time looks correct, and is shown in the system timezone.
On Linux, Navit uses the standard user timezone, as explained in the links in xenos1984's answer.

Also see the Wiki docs under http://wiki.navit-project.org/index.php/OSD for more details.


 Profile  
 
 Post subject: Re: ETA is terribly wrong
PostPosted: 04 Dec 2015, 22:38 
Offline

Joined: 23 Nov 2015, 16:46
Posts: 6
I had a lot to do the last few days, so i didn't have time to check on the time zone within raspbian, but i indeed had trouble changing it via the gui of raspbian so i'll try it via terminal. But this will take a few more days i assume, because the raspberry pi is build in the car right now for some tests (temperature-sensors, rading OBD-Data of the car, mulitmedia, etc).

But if the time-zone is wrong, why is it showing the correct time ? And shouldn't be off some whole hours and not also serveral minutes?

@sleske

Code:
<!-- ETA  -->
<osd enabled="yes" type="text" label="ETA: ${navigation.item.destination_time[arrival]}" x="-210" y="50" font_size="600" w="210" h="50" align="8" background_color="#00000099"  osd_configuration="8192"/>
<!-- Distance to and type of the next turn -->
<osd enabled="yes" type="text" label="In ${navigation.item[1].length[named]}" x="-210" y="100" font_size="600" w="210" h="50" align="8" background_color="#00000099" osd_configuration="8192"/>
<osd enabled="yes" type="navigation_next_turn" x="-140" y="150" font_size="500" w="140" h="100" background_color="#00000099" icon_src="$NAVIT_SHAREDIR/xpm/%s_wh_96_96.png" osd_configuration="8192"/>
<!-- Distance to destination -->
<osd enabled="yes" type="text" label="${navigation.item.destination_length[named]}" x="0" y="250" font_size="600" w="160" h="50" align="4" background_color="#00000099"  osd_configuration="8192"/>
<!-- Time to destination -->
<osd enabled="yes" type="text" label="${navigation.item.destination_time[remaining]}" x="0" y="300" font_size="600" w="110" h="50" align="4" background_color="#00000099"  osd_configuration="8192"/>


Here's the Code from my navit.xml it seems there is no difference to your line of ETA-Code.

I hope i'll find some time tomorrow for changing the time zone.

Thank you for your suggestions :)


 Profile  
 
 Post subject: Re: ETA is terribly wrong
PostPosted: 05 Dec 2015, 19:22 
Offline

Joined: 23 Nov 2015, 16:46
Posts: 6
The time zone seems to be correct:

Code:
Current default time zone: 'Europe/Berlin'


 Profile  
 
 Post subject: Re: ETA is terribly wrong
PostPosted: 10 Dec 2015, 10:48 
Offline

Joined: 23 Jun 2013, 20:15
Posts: 65
Location: Essen, Germany
MerlinL wrote:
Here's the Code from my navit.xml it seems there is no difference to your line of ETA-Code.

That looks correct. I tested it with my Navit installation, and it seems to work as expected.

However, the crucial part is missing - the part which displays the current time.
Could you add that, too?

Also, I have a suspicion about the cause of the problem:

If I read the code correctly, Navit internally uses two different notions of "now": The current system (OS) time, and the time from the last GPS report. If you have a good GPS fix, and your OS clock is set correctly, the two should be the same, but if not - not.

I think the ETA display uses the OS time (plus travel time), while the clock display uses GPS time. That may explain the discrepancy. Try checking your system clock and see which display in Navit agrees with it.


 Profile  
 
 Post subject: Re: ETA is terribly wrong
PostPosted: 21 Dec 2015, 13:41 
Offline

Joined: 23 Nov 2015, 16:46
Posts: 6
I'm sorry for my late response, but i had a lot of stuff going on ...

This should be the Time:
Code:
<!-- Current time -->
<osd enabled="yes" type="text" label="${vehicle.position_time_iso8601[local;%H:%M:%S]}" x="-180" y="0" font_size="600" w="180" h="50" align="8" background_color="#00000099"/>


I shoud also mention that i splitted the navit xml in different xmls for a better overview.

Your idea with the different times (gps and system) seems to be a good one.
I've checked the systemtime:
via
Code:
date '+%A %Y %X'

which returns:
Code:
Montag 2015 14:38:12

But it seems to be correct, too.

Maybe the GPS is off but somehow i doubt that.


 Profile  
 
 Post subject: Re: ETA is terribly wrong
PostPosted: 21 Dec 2015, 23:02 
Offline

Joined: 27 Sep 2013, 21:10
Posts: 44
GPS is clock-based, so if the gps time is off you'll have bigger issues than the erroneous ETA :)

Can you please share your locales too?


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Silver Orange 2.0.6 for IPB Designed by Skins and Hosting
Converted for phpBB3, based on Royal Blue template by BigB © 2007 2008 AEON KINGS