# New Pi Stratum 1 Check

**URL:** <https://community.ntppool.org/t/new-pi-stratum-1-check/761>\
**Category:** Server operators\
**Created:** [April 11, 2018, 4:06pm UTC](https://community.ntppool.org/t/new-pi-stratum-1-check/761 "2018-04-11T16:06:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arihancc](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@arihancc](https://community.ntppool.org/u/arihancc)\
**Post date:** [April 11, 2018, 4:06pm UTC](https://community.ntppool.org/t/new-pi-stratum-1-check/761/1 "2018-04-11T16:06:27Z")

</div>

Hi all setup a pi stratum 1 server following the guide here  
[https://www.ntpsec.org/white-papers/stratum-1-microserver-howto/](https://www.ntpsec.org/white-papers/stratum-1-microserver-howto/)

Using the adafruit ultimate HAT board. Just checking my stats if everything is working as it should as i am new to this. Thanks

 ![](https://us1.discourse-cdn.com/flex016/uploads/ntppool/original/1X/e6a32b5e10df22acc5e780102f28077d6056a9d2.png)

Wondering if this looks right? Concerned it seems the GPS has been flagged as a false ticker however the PPS seems to be working.

If you could also check the ntpviz info at [time.arihanc.com](http://time.arihanc.com) and see if it looks reasonable that would be appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![tychotithonus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/tychotithonus/32/163_2.png) [@tychotithonus](https://community.ntppool.org/u/tychotithonus)\
**Post date:** [April 12, 2018, 2:24am UTC](https://community.ntppool.org/t/new-pi-stratum-1-check/761/2 "2018-04-12T02:24:11Z")

</div>

Looks like you still need a round of calibration - to calculate the value to use to adjust your ‘time1’ parameter for the latency in the connection to your refclock.

See [http://www.catb.org/gpsd/gpsd-time-service-howto.html#\_ntp\_performance\_tuning](http://www.catb.org/gpsd/gpsd-time-service-howto.html#_ntp_performance_tuning)

In a nutshell:

- Set your SHM0 and SHM1 to be ignored for sync purposes (‘noselect’ clause)
- Set some high-quality time sources as servers
- Enable peerstats and/or loopstats logging
- Run for a few hours (probably at least four?)
- Calculate the average of the offset between your SHM0 and the time from those high-quality sources
- Update the ‘time1’ parameter for SHM0 to the negative of that average

---

<div class="post-metadata">

**Author:** ![alica](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/alica/32/337_2.png) [@alica](https://community.ntppool.org/u/alica)\
**Post date:** [April 12, 2018, 11:39am UTC](https://community.ntppool.org/t/new-pi-stratum-1-check/761/3 "2018-04-12T11:39:25Z")

</div>

Many GPS devices have the same problem of delayed GPS time output, including my Garmin 18x OEM. I am too lazy to calculate the offset of `SHM(0)`, so I disable it and get second data from network then calibrate it by `SHM(1)` PPS data. Of course this configuration cannot work in isolated network, but should not be a problem for NTP pool servers.

My current `ntpq -p` output:

```
     remote refid st t when poll reach delay offset jitter
*SHM(1) .PPS. 0 l 33 64 377 0.000 0.000 0.004
-118-163-81-62.H 192.168.0.3 2 u 17 64 377 4.036 1.621 0.361
-211-22-103-157. 192.168.0.3 2 u 58 64 377 4.240 1.612 0.111
-118-163-81-61.H 192.168.0.2 2 u 23 64 377 4.163 1.539 0.164
+211-22-103-158. 192.168.0.2 2 u 56 64 377 4.468 0.947 0.625
-118-163-81-63.H 192.168.0.2 2 u 61 64 377 4.044 1.918 0.385
-223.255.185.2 .192.. 1 u 20 64 357 54.009 -17.774 0.526
+ntp-a3.nict.go. .NICT. 1 u 16 64 257 33.138 0.017 0.161
```

---

<div class="post-metadata">

**Author:** ![arihancc](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@arihancc](https://community.ntppool.org/u/arihancc)\
**Post date:** [April 12, 2018, 1:13pm UTC](https://community.ntppool.org/t/new-pi-stratum-1-check/761/4 "2018-04-12T13:13:52Z")

</div>

Hi thanks for the replies.  
@tychotithonus Am i correct in saying i can use the offset generated by ntpviz?  
[http://time.arihanc.com/week/index.html](http://time.arihanc.com/week/index.html)  
looking at the weekly stats for SHM(0) it seems to be median = -0.515241 so id put it as a positive correct?

@alica Thats handy to know thanks, although id like to get the GPS working if i can its not the end of the world just to use PPS.

---

<div class="post-metadata">

**Author:** ![tychotithonus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/tychotithonus/32/163_2.png) [@tychotithonus](https://community.ntppool.org/u/tychotithonus)\
**Post date:** [April 12, 2018, 2:47pm UTC](https://community.ntppool.org/t/new-pi-stratum-1-check/761/5 "2018-04-12T14:47:00Z")

</div>

@arihancc Yep, that looks about right. If you want to be extra precise, you might look at the actual peerstats file data to see if there are any major outliers that should be discarded, create a cleaned up copy of the peerstats, and calculate the average on that clean copy using the awk snippet.
