Terence Dowling wrote:
> I'm observing that the timestamp in the data stream is gradually
> drifting so that the timestamp in my data stream is about 700 seconds
> behind real time.
>
> I've tried using a python program derived from the sample as well as a
> C program. Results (the discrepancy) are identical.
Just as another POR.
This station (RC98F) is okay, it's running better than the local train
timetable (but then what doesn't?)
This is a 1D running version 0.12
Using tcpdump and getting the result as the TS string rolls over gives
these 2 entries.
sudo tcpdump -vvnnXs 0 'port 55555' | grep -B8 0x0060
05:35:11.744033 IP (tos 0x0, ttl 63, id 25732, offset 0, flags [DF], proto TCP (6), length 428)
[...]
0x0050: 2c0a 2022 5453 223a 2031 3532 3837 3831 ,.."TS":.1528781
0x0060: 3731 312c 0a20 2244 5322 3a20 5b0a 2020 711,.."DS":.[...
converting the epoch (TS) to formatted...
date -d @1528781711
Tue 12 Jun 05:35:11 UTC 2018
05:35:12.645052 IP (tos 0x0, ttl 63, id 25735, offset 0, flags [DF], proto TCP (6), length 428)
[...]
0x0050: 2c0a 2022 5453 223a 2031 3532 3837 3831 ,.."TS":.1528781
0x0060: 3731 322c 0a20 2244 5322 3a20 5b0a 2020 712,.."DS":.[...
again, converting the epoch to formatted...
date -d @1528781712
Tue 12 Jun 05:35:12 UTC 2018
ntp is configured as...
cat /etc/ntp.conf
[...]
server 192.168.1.60
pool
1.debian.pool.ntp.org iburst
pool
2.debian.pool.ntp.org iburst
pool
3.debian.pool.ntp.org iburst
[...]
# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
*192.168.1.60 .GPS. 1 u 567 1024 377 1.495 -0.265 0.046
-144.48.166.166 126.11.196.147 2 u 241 1024 377 48.849 3.413 2.755
+129.250.35.251 249.224.99.213 2 u 355 1024 377 39.770 1.387 1.918
-27.124.125.252 27.124.125.250 3 u 722 1024 377 80.920 3.157 2.069
-116.206.80.123 223.252.32.9 2 u 1077 1024 377 38.783 2.922 0.586
-121.0.0.42 3.99.249.66 3 u 383 1024 377 53.795 -6.666 11.430
+150.101.178.79 172.22.254.53 2 u 655 1024 377 69.749 2.023 0.480
#52.65.237.49 133.243.238.164 2 u 230 1024 177 38.689 -12.542 2.852
2406:da1c:b32:4 .INIT. 16 - - 1024 0 0.000 0.000 0.000
2001:44b8:60:12 .INIT. 16 - - 1024 0 0.000 0.000 0.000
2402:1f00:8100: .INIT. 16 - - 1024 0 0.000 0.000 0.000
2a00:fd80:aaaa: .INIT. 16 - - 1024 0 0.000 0.000 0.000
-52.64.149.91 103.239.8.22 2 u 227 1024 377 38.682 3.332 2.314
-180.150.58.164 192.168.1.5 2 u 246 1024 377 66.280 2.064 1.997
-13.55.50.68 203.206.142.65 3 u 316 1024 377 38.788 1.864 0.614
#116.206.83.243 203.35.83.242 2 u 621 1024 377 38.793 -0.609 2.243
--
Cheers
Glenn
rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie
Sorry, no fortune this time.