WiFi time provider with NTP support.

More
1 year 3 months ago - 1 year 3 months ago #10074 by MikeS

jonboy wrote: So you might make the changes for it to be invalid in the Uk!!

It doesn't work like that. If the UK gets rid of summertime changes, their TZ string will simply change from "GMT0BST,M3.5.0/1,M10.5.0" to "GMT0" (or "GMT-1" if they're idiots and go on year-round "summertime").

That's an advantage of POSIX TZ strings over Olsen names - they're under a user's direct control and are self-contained, they don't rely on externalities like a server somewhere needing an update or a newly compiled tz database.
Last edit: 1 year 3 months ago by MikeS.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #10076 by Stackerlee
ezTime library is now updated to v. 0.7.10.
A few changes apart from the one mentioned.
github.com/ropg/ezTime

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #10117 by TexasPenguin
I've been playing with this and I can get everything to work except:

When a DST change occurs, i.e. the current time goes past the hour at which DST starts, the time does not automatically update to the new DST time.
But, if you simply go into the "Configure Time Servers" page and click the "Set" button (making no changes to the Posix TZ), the time updates correctly.
I've pored over the code and can't see any reason for this.
Unfortunately my ESP modules are soldered onto the main board so hooking up for Serial link debug isn't so easy!
Any ideas?

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago - 1 year 3 months ago #10123 by MikeS
Works here, entering or leaving DST. Note that the clock only gets updated once a minute, and that update isn't sync'd with anything. So, it can take up to a minute after a DST change before the clock gets updated with the new time.

"Current time" on the Status page should always be correct. "Next clock update in" is how long before the next update gets sent to the clock.

Edit: I uploaded a new version which sends a clock update immediately when there's a change to DST. Same link/filename as previously posted.
Last edit: 1 year 3 months ago by MikeS.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #10124 by Stackerlee
Is there an easy way to "simulate" a NTP server to test these conditions?
A fake server that can be set to any time?

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago - 1 year 2 months ago #10125 by MikeS
No need to mess with ntp - you test by defining when DST changes. To make the change to DST occur tomorrow (3rd Saturday in April) at 2 PM EST (which is 3PM EDT, 7PM UTC), and then change back to standard time 2 minutes later:

EST5EDT,M4.3.6/14:00,M4.3.6/15:02

EST5EDT - names and negative offset from UTC for standard time
M4.3.6 - Month 4, week 3, day 6 (0=Sunday)
14:00 - time to change

Or, similar at 2 PM CET (3PM CEST, 1PM UTC):

CET-1CEST,M4.3.6/14:00,M4.3.6/15:02
Last edit: 1 year 2 months ago by MikeS.

Please Log in or Create an account to join the conversation.

Moderators: AccutronTy_EeberfestIan
Time to create page: 0.189 seconds

Search

Tube Suppliers

Go to top
JSN Boot template designed by JoomlaShine.com