{"repo":"geerlingguy/time-pi","free":true,"listed":false,"github":"https://github.com/geerlingguy/time-pi","clone":"git clone https://github.com/geerlingguy/time-pi.git","description":"Raspberry Pi stratum 1 PTP and NTP timeserver configuration.","language":"Python","stars":273,"topics":["gps","ntp","ptp","raspberry-pi","time","time-server"],"license":"GPL-3.0","category":"self-hosted-apps","readme_excerpt":"Time Pi A Raspberry Pi stratum 1 time server. Takes in GPS (or potentially other stratum 0 time sources), spits out NTP, PTP, etc. Setup - Grandmaster Hardware To run a decent time server (with high accuracy), you need a few things: - A computer running Linux (all the nice tooling for network time is available here) - A high quality time source (GPS is most commonly used these days) - A network adapter capable of hardware timestamping (Intel and ASIX make some good NICs for time-related applications) There are many options for each of the above items—for example, many use Adafruit's Ultimate GPS HAT or its USB equivalent for GPS acquisition, and for PTP, you can use a Compute Module 4 or 5's built-in NIC (with PPS in or out), or add on a compatible NIC on the Pi 5 with something like the uPCIty Lite. My own hardware configuration—which is the basis for the code in this repository, consists of: - Computer: Raspberry Pi 5 model B - Time source: u-blox ZED-F9T-00B-01 (installed on TimeHAT V4) - NIC: Intel i226-LM (installed on TimeHAT V4) A precise GPS signal for nanosecond-accurate time requires a decent antenna with as clear a view of the sky as possible. Some GPS receivers are better than others, but even USB receivers will do better than NTP! I use a small active GPS antenna for testing, but for permanent installation it is best to mount a higher-quality GPS antenna outside, clear of obstructions. Software Make sure you have Ansible installed. Copy the following example file","default_branch":null,"files":null,"tree":[],"storefront":"/r/geerlingguy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/geerlingguy/time-pi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}