Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 21:37
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Psync Time Synchroniser Version 2.9 & 2.7-64bit
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 8 Posts_count   Goto page: 1, 2, 3, ..., 6, 7, 8 Next
Author Message
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Fri 29 May 2009, 10:19    Post_subject:  Psync Time Synchroniser Version 2.9 & 2.7-64bit
Sub_title: A small app to synchronise your PC time to a time server
 

Version 2.9
New version of hwclock meant the time was set incorrectly in new versions of Puppy if Psync was run first.
Norm Pierce wrote a small patch to cure this so I've added his version here.



Version 2.8

Added conditional check to the autostart to check whether wifi is in use.
Checks for wifi or wired, waits for wifi to 'up' then runs autostart if so selected.

====================

Version 2.7 Bug fix

Thanks to Burunduk.

Bugfix for change in clock file I missed when testing.

=====================


Version 2.6-64

Only for 64bit Puppys.

Compiled the used ntpdate in 64bit as well as the app. Works ok in Fatdog 64

============================

Version 2.6

I'm hoping this will once and for all trap the text errors in the final offset time report window when the server text changes length.

This means no interim releases when server text changes length.

(Sorry if it came a bit quick after 2.4. It's just this issue has annoyed me long enough.)

Version 2.5


Added DST dates display when time changes apply, if applicable to timezone.

Small change in code, it now recognises if there is no DST applicable.


==============================


Posted notes:-

You need to set your Timezone geographically for DST to work. i.e Europe/London - Europe/Madrid etc to match your nearest location to allow DST to apply to the time clock.

Scroll through the Puppy menu Desktop/Timezone list to set it to nearest location.

If you use GMT offset, Psync will still work but without DST changes. (You must reboot to make setting take)



Psync now checks from the internet which region servers are currently 'active' to set the time and uses those. This ensures a constant pool of servers, so no user intervention is required
.


======

And I thought it was a joke Laughing

Quote:
----- Time and time zones on Mars -----

Some people have adjusted their work schedules to fit Mars time.
Dozens of special Mars watches were built for Jet Propulsion
Laboratory workers who kept Mars time during the Mars Exploration
Rovers mission (2004). These timepieces look like normal Seikos and
Citizens but use Mars seconds rather than terrestrial seconds.

A Mars solar day is called a "sol" and has a mean period equal to
about 24 hours 39 minutes 35.244 seconds in terrestrial time. It is
divided into a conventional 24-hour clock, so each Mars second equals
about 1.02749125 terrestrial seconds.

The prime meridian of Mars goes through the center of the crater
Airy-0, named in honor of the British astronomer who built the
Greenwich telescope that defines Earth's prime meridian. Mean solar
time on the Mars prime meridian is called Mars Coordinated Time (MTC).

Each landed mission on Mars has adopted a different reference for
solar time keeping, so there is no real standard for Mars time zones.
For example, the Mars Exploration Rover project (2004) defined two
time zones "Local Solar Time A" and "Local Solar Time B" for its two
missions, each zone designed so that its time equals local true solar
time at approximately the middle of the nominal mission. Such a "time
zone" is not particularly suited for any application other than the
mission itself.

Many calendars have been proposed for Mars, but none have achieved
wide acceptance. Astronomers often use Mars Sol Date (MSD) which is a
sequential count of Mars solar days elapsed since about 1873-12-29
12:00 GMT.

The tz database does not currently support Mars time.
psync-2.9.pet
Description  hwclock patch version
pet

 Download 
Filename  psync-2.9.pet 
Filesize  6.25 KB 
Downloaded  448 Time(s) 
meridian2.jpg
 Description   Greenwich meridian line, not far from me.
 Filesize   17.16 KB
 Viewed   2148 Time(s)

meridian2.jpg

Psync-2.7-64.pet
Description  64 bit version
pet

 Download 
Filename  Psync-2.7-64.pet 
Filesize  124.79 KB 
Downloaded  870 Time(s) 
psync24.jpg
 Description   
 Filesize   42.05 KB
 Viewed   2092 Time(s)

psync24.jpg


_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
Sylvander

Joined: 15 Dec 2008
Posts: 3462
Location: West Lothian, Scotland, UK

PostPosted: Fri 29 May 2009, 12:37    Post_subject:  

Installed the program OK.
It ran OK.

When I synchronized the time it set my clock forward from about 17:30 on Fri 29th May to Sat 30th May some minutes after midnight.
I'm near Edinburgh, Scotland, UK.

Have now manually reset my time to correct it.

How do I configure the prog to make it do what it aught?

My clock [in BoxPup 4.1.3] is showing 17:32 at the moment...
Any idea how I should configure it to display seconds too?
00.jpg
 Description   
 Filesize   7.89 KB
 Viewed   5806 Time(s)

00.jpg

Back to top
View user's profile Send_private_message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Fri 29 May 2009, 12:57    Post_subject:  

What did the timezone report ?

Sounds like you haven't set a timezone.

For seconds, change %R to %X

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send_private_message Visit_website 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Fri 29 May 2009, 13:02    Post_subject:  

You will need to reboot if you change timezone to make it set.

I've posted it as Psync, it just has minor changes to the view.

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send_private_message Visit_website 
Sylvander

Joined: 15 Dec 2008
Posts: 3462
Location: West Lothian, Scotland, UK

PostPosted: Fri 29 May 2009, 15:10    Post_subject:  

Time zone was/is set to GMT+0 = London etc.

See screenshot before using "Time synchronizer" and then after.

Setting %R to %X added seconds but changed from 24hr clock to 12hr. Sad
00.jpg
 Description   
 Filesize   38 KB
 Viewed   5886 Time(s)

00.jpg

01.jpg
 Description   
 Filesize   38.42 KB
 Viewed   5444 Time(s)

01.jpg

Back to top
View user's profile Send_private_message 
dawnsboy


Joined: 03 Dec 2008
Posts: 248
Location: Indiana - Republic of New Canada

PostPosted: Fri 29 May 2009, 19:30    Post_subject:  

I downloaded and installed this program, set the time zone, rebooted and then synchronized the clock. It worked just fine. Thanks.
Back to top
View user's profile Send_private_message 
tlchost

Joined: 05 Aug 2007
Posts: 1727
Location: Baltimore, Maryland USA

PostPosted: Fri 29 May 2009, 22:19    Post_subject: Re: Psync Time Synchroniser gui
Sub_title: A small app to synchronise your PC time to a time server
 

tasmod wrote:
This is not entirely original but it's at least graphical.

Error....no attachment

No there is one....false alarm
Back to top
View user's profile Send_private_message Visit_website 
Bruce B


Joined: 18 May 2005
Posts: 11130
Location: The Peoples Republic of California

PostPosted: Fri 29 May 2009, 22:52    Post_subject:  

tasmod wrote:
What did the timezone report ?
Sounds like you haven't set a timezone.


Yes, I think (we) will need to give users some support with the TZ.

The work and interface looks superb! Well done!

The CLI generated these two lines:

[~] psync
/usr/bin/psync: line 55: rdate:: command not found
/usr/bin/psync: line 56: Use: command not found

[~]

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send_private_message 
Bruce B


Joined: 18 May 2005
Posts: 11130
Location: The Peoples Republic of California

PostPosted: Fri 29 May 2009, 23:07    Post_subject:  

Sylvander,

I can't tell by your posting. Do things show right in terms of
TZ and date+time after reboot?

If not, please detail.

Bruce

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7836
Location: qld

PostPosted: Sat 30 May 2009, 04:11    Post_subject:  

Hey Rob

Nice little app!

As it turns out, my system time was only 11 seconds fast, so your Psync corrected it instantly. Thanks,

(and it seems quite compatible with Upup Wink )

Mick

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
Sylvander

Joined: 15 Dec 2008
Posts: 3462
Location: West Lothian, Scotland, UK

PostPosted: Sat 30 May 2009, 04:47    Post_subject:  

Bruce B
Just now boot my PC.

Timezone reads GMT+0 (London etc)...
[Our timezone is London etc, but clocks here and now are set forward 1hr for summertime]
Day, date, time all correct.
Run Psync...
"NTP Time Server Synchronizer" shows the time as it is on my clock and GMT -0.3 seconds.
[Is this the amount my clock differs from the server time or what?]
Hit the synchronize button...
It moves the time back by 1 hour exactly.
The ntptime command makes no correction! Sad
So I manually reset it forward 1 hour.
Back to top
View user's profile Send_private_message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Sat 30 May 2009, 06:45    Post_subject:  

OK, now I know the problem.

You must set your Timezone geographically. i.e Europe/London Europe/Madrid etc to match your nearest location.

Scroll through the list to set it to nearest location.

NOT by GMT offset.

This is because the built in commands use the locale settings.

Locale contains information on offset plus DST etc. allowing psync to set according to location.
It also allows the desktop clock to auto change for DST.

GMT file is just a numerical offset etc. which means psync ignores it and sets your clock according to server location (USA)

Rob

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send_private_message Visit_website 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Sat 30 May 2009, 07:00    Post_subject:  

The offset shown is the time difference between the 'motherboard' hardware clock, also known as RTC (Real Time Clock) and the 'system' clock.
RTC is kept going by a small battery when PC is powered off. Also known as CMOS battery.

The 'system' clock is set by the Puppy kernel on bootup and is then kept running by software.

Depending on accuracy of the software 'ticks' the system clock will drift from the RTC clock time. Especially if system is not powered down for some time.

Psync reads your RTC and your 'system clocks' and shows the difference, usually a fraction of a second, unless you have never synchronised it before.

Psync will read the clocks and then when clicked will synchronise all clocks to a public time server.

If the display blanks, just move your mouse etc.


Psync uses NTP servers to obtain a network server time. I'm working on an update to provide a list of servers around the world so choice can be made nearer to your location.

Depending on location of server, ISP connection speed, your PC, etc then your time will always be out by a few milliseconds or so to 'atomic time'.

That is known as 'time' latency.

Rob

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: Sat 30 May 2009, 07:17    Post_subject:  

Sylvander,

Use %T for hrs min secs in 24hr format.

Rob

_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool
Back to top
View user's profile Send_private_message Visit_website 
Sylvander

Joined: 15 Dec 2008
Posts: 3462
Location: West Lothian, Scotland, UK

PostPosted: Sat 30 May 2009, 09:03    Post_subject:  

1. "You must set your Timezone geographically"
OK, it's now set to "London" and all is looking good. Very Happy
My little travel clock here is only 6 seconds slower [not bad eh?]
That because it took my wife 6 seconds delay to set it when the TV clock changed to the next minute.
Hence I have [imprecise] confirmation that Psync is setting the time correctly.

2. "Use %T for hrs min secs in 24hr format"
That did the trick!
How easy is that?
When you know how that is.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 8 Posts_count   Goto page: 1, 2, 3, ..., 6, 7, 8 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0890s ][ Queries: 12 (0.0051s) ][ GZIP on ]