TURN A RASPBERRY PI INTO A TIME SERVER FOR THE INTERNET
A Raspberry Pi locked to GPS satellites can serve microsecond-accurate time to the whole internet through the NTP Pool.
Built withRaspberry Pi
- difficulty
- ●●●○○
- time
- an afternoon of setup, then letting GPS lock settle
- license
- GPL-3.0
- repo
- repo ACTIVE320 stars
●●●○○ · an afternoon of setup, then letting GPS lock settle · GPL-3.0 · 320 stars · repo ACTIVE
WHAT YOU’LL NEED
Jump to section
COMPAREE VERDICT
Jeff Geerling's Time Pi is a Raspberry Pi that takes its time from GPS and serves it to other computers. He says GPS gets it down to about 20 to 50 nanoseconds, and he can guarantee it stays within 1 microsecond of UTC. He compares it with NIST's time servers in Boulder, Colorado, and he has added it to the public NTP Pool, so computers using the pool can now set their clocks from it. The repo is an Ansible playbook plus a chrony dashboard, fan control, an NTP proxy setup and a small Pico GPS clock, not a hardware kit, so you pick your own GPS timing board with PPS output and an antenna. The rubidium clocks in his rack are separate gear. To join the NTP Pool you don't even need GPS, just a stable server and a stable address.
IN THE REPO
GOOD TO KNOW
- —The repository is an Ansible playbook that configures chrony NTP on a Raspberry Pi, plus a small Pico-based rack clock.
- —No hardware BOM is provided — you need to source a GPS HAT separately.
- —The repo includes a small Python chrony dashboard for watching time accuracy.
- —Licence is GPL-3.0, which permits commercial use but requires derivative work to remain GPL-3.0.
- —Jeff Geerling's rubidium clocks are not part of this project — they are separate rack equipment.
- —You can join the NTP Pool without GPS; the GPS requirement is only if you want microsecond accuracy.
Parts to buy
6 itemsFrom our check of the build. Exact quantities and part numbers are in the creator’s BOM.
Can I build this?
Build at your own risk. Projects involve tools, electronics and sometimes mains voltage — follow the creator’s safety notes.
Videos
I'm giving the whole Internet a good time11:35
Jeff shows the rack, the GPS lock screen, the NIST comparison, and the NTP Pool stats page. He explains that the rubidium clocks are separate gear and that you do not need GPS to join the pool, just a stable server.
More builds like this
All projectsGallery
Start here
Navigation into the creator’s own docs — we don’t rewrite the guide, we route you to the source.
- 1.Get the time-pi repository (Ansible playbook, the chrony dashboard, fan control, an NTP proxy setup and a small Pico GPS clock for a mini rack.)
- 2.Check the repository README for the GPS HAT models Jeff has tested(The playbook assumes a HAT with PPS output — not all GPS modules provide this.)
- 3.Set up your Raspberry Pi with a static IP or dynamic DNS(The NTP Pool requires a stable address. If your ISP changes your IP, your entry will be removed.)
- 4.Run the Ansible playbook from another machine(The playbook installs chrony, configures the GPS as a reference clock, and sets up monitoring.)
- 5.Wait for GPS lock and check the dashboard(GPS needs a view of the sky. Jeff's antenna is mounted outside.)
Resources
Documentation, files and community threads for this build — we link straight to the original sources and never rehost the creator’s files.
KNOWN ISSUES
- Buying a GPS module without PPS (pulse-per-second) output — chrony needs this for microsecond accuracy, and not all cheap GPS boards provide it.
- Trying to run this indoors without a clear sky view — GPS lock can be flaky or impossible through walls and roofs.
- Not setting up a static IP or dynamic DNS — if your address changes, the NTP Pool will remove your server and you will have to reapply.
- Expecting the rubidium clocks from Jeff's video to be part of this project — they are separate rack equipment.
Do I need an atomic clock or rubidium oscillator to do this?
No. Jeff's rubidium clocks are extra gear in his rack, not part of the Time Pi project. A GPS HAT is enough to reach microsecond accuracy.
Can I join the NTP Pool without GPS?
Yes. The pool only requires a stable server with a reliable internet connection. GPS gives you microsecond accuracy, but you can join with any accurate time source.
What is PPS and why does it matter?
Pulse-per-second is a hardware signal from the GPS module that ticks exactly once per second. Chrony uses it to discipline the Pi's clock much more precisely than time over the network.
Community builds
No community builds yet — be the first, we feature the best ones.
Discussion1
FROM THE COMPAREE TEAM
Jeff's Pi has been running for three years and now serves time to computers around the world — within a microsecond of UTC. If you set one up, would you aim for the microsecond accuracy, or just join the pool with a simpler stratum-2 setup?
Jeff Geerling
Jeff Geerling makes YouTube videos about Raspberry Pi and homelab projects and publishes the automation behind them on GitHub. The Time Pi has been running in his studio for about three years.
DISCLAIMER
- Comparee is not the author of the projects featured here. All rights to each project belong to its creator — every page links to the original source, and we never host creators’ files.
- Information is provided without warranty and may become outdated as projects evolve. Prices are indicative bands only — always check the creator’s parts list for current costs.
- Building and operating any project is at your own responsibility. Protective equipment, safe workshop practice and compliance with local regulations are the builder’s responsibility.
CompareeTEAM14h ago
Practical notes from our verification: the time-pi repo (GPL-3.0) is software and automation, not a parts list, so you choose the GPS board yourself; PPS output matters for precise time. The rubidium clocks in the video are not part of this build. The dashboard in the repo is a small Python chrony dashboard, and his live stats page shows GPS lock and the comparison with NIST.