-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to use sk time only if there is no other sources available. #6
Comments
FTR poorman internet time :
This could be an other approach that does not depend on having chrony installed and running. |
I think it would be useful! For example my setup usually gets ntp time via 4G net connection, but sometimes there is no coverage, like rebooting the system offshore, and then set-system-time is the only feasible option on an N2K system afaik. It would have to be robust, so that it works even on a minimal system with no chronyc. Naturally then it would not detect other time sources in use, but even then it should work. How did you end up with 1-2 seconds for sk time? It is just using GPS time, I'd be surprised to get that long delay between GPS sentence and setting the time. |
It's more of an estimation then a benchtest. And you can't be under one cuz at T = +0.0000 But if there is no internet connection available. 1 second accuracy Is wayc enough for a sextant :p |
You mean that datetime is being polled once per second? No, the whole process is driven by incoming data: when your server receives RMC NMEA0183 sentence via USB, it is converted to Signal K and the resulting datetime is passed on to the set-system-time. So there is certainly processing delay, but nothing else. |
ah ok, understood. |
PR have been accepted and changes are now in production :D |
I am afraid this is not working. After booting chrony sets the correct time from NTP and everything works ok. When SK sets the time chrony detects a forward time jump: "System clock wrong by -2419199.119810 seconds" and this makes some applications like apt not work well. When set-system-time plugin is disabled everything works ok again. |
Open a new issue with more details if you think there is something to fix here. |
done: #12 |
In a near future I would like to work on a pull-request witch would add a checkbox option prevent sk from setting the date if
chrony
have some valid time source.The point is, sk time seem to be the loosest approch to set time on a *nix machine :
But it's often the only time source available. So I want to use it as fallback option.
This would be the command that check chrony have valid time input from NTP or GPS PPS :
Would it fit in the
set-system-time
plugin ?The text was updated successfully, but these errors were encountered: