Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 18-07-2017, 10:24   #16
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,487
Re: Dashboard time

Quote:
Originally Posted by Aart K. View Post
@Dan,



For me (Amsterdam, the Netherlands) it would be UTC minus 1 or 2 hours. (daylight saving time in summer). So, not only added hours but also negative.



LCL, I think it is LoCaL? For most of the users in the Netherlands that will not be a problem.



Aart

from the Netherlands

Offset can range between +/-12 hours. Adding the offset to UTC produces local time. East of UTC requires negative offsets + 1 for DST optionally.
__________________

transmitterdan is offline   Reply With Quote
Old 18-07-2017, 10:25   #17
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,487
Re: Dashboard time

Quote:
Originally Posted by bcn View Post
the TZ offset list:

https://en.wikipedia.org/wiki/List_o...ase_time_zones



There are few place with a :45 min offset listed.

Kathmandu - not relevant

Chatham Islands/NZ

Western Australia (Eucla) - "The total population of that area is estimated at 200 people" (Source: Wikipedia, Time in Australia)


So will integer hour offsets be "good enough"?
__________________

transmitterdan is offline   Reply With Quote
Old 18-07-2017, 11:08   #18
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 3,064
Re: Dashboard time

The Australian might struggle with this....

Jon should know.
bcn is offline   Reply With Quote
Old 18-07-2017, 11:19   #19
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,487
Re: Dashboard time

Ok. I'll look at fractional offsets. Hour offsets is done and tested.
transmitterdan is offline   Reply With Quote
Old 18-07-2017, 11:22   #20
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 364
Re: Dashboard time

Newfoundland (Canada) has 3 1/2 hrs off UTC
__________________
Navigation is know where you are and what to do to get where you want.
But also: Know where you don't want to be and what to do to don't get there.
rooiedirk is online now   Reply With Quote
Old 18-07-2017, 18:46   #21
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,487
Re: Dashboard time

I have created a branch (DB_Clock) on my fork of OpenCPN. This branch is current as of today with the official OpenCPN master branch. Lots of updates were made by Dave, et. al. today. If anyone wants to build and check if this clock offset system is acceptable please feel free to make any critique.

https://github.com/transmitterdan/Op...mmits/DB_Clock

This should allow time offsets from UTC in 30 minute increments. The offset affects Clock and Sunrise/Sunset gadgets. A new appearance parameter has been added to the Dashboard to let the user adjust the offset from UTC.
transmitterdan is offline   Reply With Quote
Old 18-07-2017, 21:54   #22
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 364
Re: Dashboard time

Didn't build (poor internet) it, only had a look ad the diff in code.
A question. You did add an extra setting for the time offset. This is a fixed offset to UTC.
Wouldn't it be easyer, from the user point of view, to use the OS time offset. This would save the user from doing an extra setting if changing timezone and also no need to change it twice a year at the shift of daylight saving time.
The setting in the dashboard config could than be a simple checkbox, use systemtime or localtime.
Dirk
__________________
Navigation is know where you are and what to do to get where you want.
But also: Know where you don't want to be and what to do to don't get there.
rooiedirk is online now   Reply With Quote
Old 18-07-2017, 22:12   #23
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 3,064
Re: Dashboard time

Dan, Dirk...

considering Dirk's idea:

why not just add a category "local time" or "System Time" as an instrument? Copying UTC.

One can have then even UTC and Local displayed in parallel.

Hubert
bcn is offline   Reply With Quote
Old 19-07-2017, 04:38   #24
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,487
Re: Dashboard time

Ideally the TZ would be computed from the ships GPS location but that's a lot of work. My opinion is that OpenCPN is more like a chart plotter than a computer. All chart plotters and other onboard instruments that get UTC time from GPS have a user adjustable offset. Thus I think that is the right model for OpenCPN.
Also, when replaying VDR files the date and time embedded within those files will not match the TZ of the computer. That will lead to nonsensical time displays during playback. With a user controlled offset the displayed time can match the local date and time when the voyage was made. Thus local sunrise/sunset will display correctly too. That won't work if we blindly use the TZ of the computer.
transmitterdan is offline   Reply With Quote
Old 19-07-2017, 04:42   #25
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,487
Dashboard time

I think it is a good idea to have a local and UTC Dashboard gadget. There are many times when one needs to know both of these for different tasks. Having 2 displays is a good idea. I will do that.
transmitterdan is offline   Reply With Quote
Old 19-07-2017, 15:54   #26
Registered User

Join Date: Sep 2010
Location: Florida
Boat: Pearson 35
Posts: 62
Re: Dashboard time

Not seeing a lot of votes on Flyspray. Ping it up!
waterman480 is offline   Reply With Quote
Old 19-07-2017, 17:12   #27
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,487
Re: Dashboard time

Quote:
Originally Posted by waterman480 View Post
Not seeing a lot of votes on Flyspray. Ping it up!

People may not know how to vote on flyspray. I will have something ready to beta test in a few days.
transmitterdan is offline   Reply With Quote
Old 20-07-2017, 03:35   #28
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,487
Re: Dashboard time

Ok, I think I have created something that has what everyone wanted. I have a beta version of Dashboard with new clocks for anyone to test. Here are the available clocks:

GPS clock - same as old Clock
Local GPS clock - GPS clock with offset (see more below)
Local CPU clock - Local CPU clock obtained from operating system

Local GPS clock has 2 options for time zone. On the appearance tab of the Dashboard preferences there is a new setting for "Local offset from UTC". The default is 00:00. When the 00:00 is selected then Local GPS clock will display time in the time zone of the computer running OpenCPN. If that is not what you want then you can selected any other offset in 30 minute increments up to +/- 12 hours. That offset will be added to the GPS UTC time and the local computer time zone will be ignored.

You can build the beta version from my github fork: https://github.com/transmitterdan/OpenCPN/tree/DB_Clock

If you are not a builder then send me a PM and I can build a Windows version of OpenCPN with the beta Dashboard clocks for testing.
transmitterdan is offline   Reply With Quote
Old 20-07-2017, 04:37   #29
Registered User

Join Date: Feb 2011
Posts: 555
Re: Dashboard time

Why not just make a new version with it, I would be interested.
Best Regards and Thanks.
P_Dub
P_Dub is offline   Reply With Quote
Old 20-07-2017, 05:56   #30
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,487
Re: Dashboard time

There is only one official version of OpenCPN. I am not trying to get a different one out in the wild. If testers will use the beta and give feedback then I will finalize the clocks and submit for inclusion in the official version of OpenCPN.
__________________

transmitterdan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: DashBoard SethDart OpenCPN 470 24-08-2016 20:34
UTC vs Local Time - Dashboard Windjammr Spirt OpenCPN 7 29-08-2012 17:52



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 07:03.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.