OpenMarine
Synchronising time, with GPS, between servers when off grid(NTP) - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How I did it (https://forum.openmarine.net/forumdisplay.php?fid=6)
+--- Thread: Synchronising time, with GPS, between servers when off grid(NTP) (/showthread.php?tid=3506)



Synchronising time, with GPS, between servers when off grid(NTP) - MatsA - 2021-06-15

The use case, creating an offline NTP, was that I'm on our boat sometimes don't have an Internet connection but always have a connected GPS. The GPS updates time on a Raspberry(RPi) running OpenPlotter/Signal K.

The actual issue is that there are other devices on the LAN that needs to be updated and then you have to set up an NTP server.
Of course this setup is also valid for a RPi/server, with a RTC, acting as a NTP server in an isolated LAN.

Did a post handling the subject https://pysselilivet.blogspot.com/2021/05/ntp-server-on-raspberry-linuxoffline.html

/Mats


RE: Synchronising time, with GPS, between servers when off grid(NTP) - SCarns - 2021-06-15

That is interesting. I have wondered about this issue and you have a solution. I'll be sure to check this out later...

Thanks for sharing!


RE: Synchronising time, with GPS, between servers when off grid(NTP) - seandepagnier - 2021-06-17

tinypilot does this as well

https://github.com/pypilot/pypilot/tree/master/scripts

there are both bash and python scripts for setting time and date from gps