by Frost1x · 4mo ago · 0 comments
There’s a time zone setting offset slider and a DST slider. I basically touch it twice a year, maybe another if I move time zones. I’ve only had to touch it for DST (never switched time zones). Takes me conservatively 10 seconds to find and flip, so it’s taken me 460 seconds or a little under 8 minutes in the past 23 years to do time adjustments.
While these efforts are definitely fun hobby projects, there are cheap reliable solutions out there with minimal intervention that consume the NIST radio signal for time.
Just for anyone interested who wasn’t aware there’s some “old school” time broadcast solutions out there too besides NTP: https://www.nist.gov/pml/time-and-frequency-division/time-di...
Pity they don't seem to make them any more, the newer ones use GPS and don't look quite as nice (in my opinion at least).
https://www.rigbyjewellers.co.uk/products/radio-controlled-r...
Edit: It exists! https://www.walmart.com/ip/Atomic-Radio-Controlled-Clock-Mov...
Might be doing some retrofitting soon!
https://news.ycombinator.com/item?id=46952384
https://github.com/tanvach/clocksync
https://github.com/kangtastic/timestation
https://github.com/hzeller/txtempus
WVB: A Tiny WWVB Station - https://news.ycombinator.com/item?id=13258631 - December 2016 (49 comments)
https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...
I have a few raspberry pis on my lan that serve NTP time. (you need more than one)
Over the years I've experimented with various flavors.
Right now I have a mix:
1) a pi3 with a gps hat and a battery backup for the pi itself. It uses ntp 127.127.20.20 for gps time, and 127.127.20.28 for PPS. The SMA antenna goes to receiver at the window
2) a pi3 with USB gps on a cable going to the window
3) a pi4 same as above, but with a tiny battery backup rtc attachment
4) a pi5 with usb gps + the new RTC with an added rechargable battery backup
usually, when power goes out, a few reboot, but #1 stays up if <1hr without power. If power outlasts the pi with battery backup, the RTC battery backups take over. strangely #1 doesn't reboot when it has power, some artifact of the battery backup hat - I have to manually reset it.
I've also kind of wondered if GPS might be able to give you a time less accurately but quicker. Sometimes I look at the NMEA GPS output, and it sometimes doesn't have a position fix, but it does give out a time + week number
(this is all for no good reason, just yak shaving.)
No. Accurate time is one of the prerequisites for acquiring a position fix, and it's the one that's the easiest and fastest to obtain from the sky. Typically a receiver should be able to get time within seconds from cold start if there's enough sky visibility, and once it does it is as accurate as it gets regardless of position fix status (unless you care about sub-nanosecond precision, but you need to be able to somehow consume that anyway and you won't with a Pi).
That said, NMEA output will usually contain the time from the module's internal clock that gets synchronized with GPS time when available rather than GPS time directly. Some modules can be configured to report when they have synced their time though, and you could pay attention to the time jumping to infer it too.
It'll be good to far better than seconds when it first gets a signal and will get more accurate (microseconds to nanoseconds) once it has a position fix because it can then compensate for the delays in the signal propagation (you can think of a gps fix as a 4d fix because it also needs to solve for time). You will probably need to use the PPS output to resolve this, though.
have a driver at 127.127.20.20 -> nmea time
make it normal stratum ntp, like stratum 1 or 2
doesn't give out the time unless there is a position fix (normal behavior)
and make another driver 127.127.20.99 -> nmea time without position fix
at the start, there is no time given at all
then you might get a time without a position fix
then you get a time with a position fix
then you might lose the position fix, but still give out a time.
make it a stratum 14 ntp server
Which is a thing we shouldn't be requiring here. Picking up a single satellite without any position data is enough to drive a clock.
Though I didn't want a digital clock--my goal was an analog-style clock that never needed any maintenance. And it ends up there are some reasonably priced ones on Amazon that just connect to WiFi once a day and adjust if necessary, including to account for DST. I have it set to run at 4am each day, so any DST adjustment happens while I'm still sleeping.
The only final step is to run hardwired power to it so I don't need to change batteries, but I haven't pulled that trigger yet. Often with projects like this, it's more fun to prove out the difficult parts and I lose interest once only the easy parts remain.
I'd love to buy an off-the-shelf WiFi+NTP clock, but everything I've seen is very expensive, intended for commercial timing applications or synchronizing clocks across a campus.
It's really clever! It uses the speaker as the low frequency transmitter. It doesn't sound right, but it only needs the coil to radiate EM waves.
https://www.amazon.com/OCEST-Wall-Clock-12Inch-Auto/dp/B0DJS...
I have two of them. One project on my list is to see if I can modify the face of it to a different style without breaking it.
> Because it works by exploiting this leakage, Time Station Emulator works best with a built-in speaker of a phone or tablet.
> In some cases, wired headphones or earbuds may also be suitable.
> Higher-frequency harmonics are considered artifacts beyond the range of human hearing, so they are routinely suppressed by audio compression algorithms and better equipment.
> Bluetooth devices and audiophile-grade equipment are therefore less likely to work.
Then I thought about the new digital power meters which display time and date and other info in a loop ... and ok I concluded, that's probably down to the mobile link for timing ... until I recalled where I live around the time when the telco's upgraded, the meter lost it's link for a few months - since the power drops out nearly every week the meter once power was restored still had time down to minutes correct.
This has nothing to do with the fact that I still haven't figured out how to set the time on my microwave. :D
In Europe, and the UK particularly, every socket has a switch so the microwave is turned off after each use.