Comments (12)
OK, I don't think it checks straight away, it looks like it pops the message up and then checks some seconds after, it may not, but that is what it looks like.
(sulaco was unresolvable :-) )
from onairscreen.
It is +1 second.
I am also getting the Clock NTP status unknown error
message at start up.
I saw a reference to an issue:
The "Clock not NTP syncronized" error shows when your local clock differs too much from the ptbtime1.ptb.de server or when no ntp server is set to compare the local clock to. You can set an NTP server in the settings. See the readme.md for keyboard shortcuts
But searching the code I don't see ptbtime1.ptb.de
mentioned
How does it check?
from onairscreen.
Hi
https://github.com/saschaludwig/OnAirScreen/blob/master/start.py#L766
There is the NTP check function, and when the local clock differs more than 300ms from one of the NTP servers from pool.ntp.org or if the check is not possible it will spit out the warning messages.
I had used ptbtime1 in the past, but changed it at some point. Sorry for the confusion.
Are you checking the display time of the OnAirScreen against the commandline "date" command?
I realized that KDE & Gnome had +/- delays all the time and are not really showing seconds in sync with the system clock.
Maybe there is a flaw in the code at some place I can not imagine right now.
But in the worst case the displayed time should only differ 100ms from system time as the self.constantUpdate timer is set to 100ms in https://github.com/saschaludwig/OnAirScreen/blob/master/start.py#L106
While developing I had thought of a PLL like loop that calibrates the timer to happen as close as possible to the changing second. But I never implemented it because it had not been an issue if the displayed time was only off by max. 100ms.
from onairscreen.
Turns out the time is correct with
while true; do date; done
The task bar is slow by 1 second.
So that just leaves the Clock NTP status unknown error
message...
So I found:
`mike@shark:~/OnAirScreen$ find . -type f -exec grep wr-fw {} ; -ls
self.NTPCheckServer.setText(settings.value('ntpcheckserver', 'wr-fw').toString())
108670675 24 -rw-r--r-- 1 mike users 23072 Jun 7 13:34 ./settings_functions.py
ntpserver = str(settings.value('ntpcheckserver', 'wr-fw').toString())
108670343 40 -rwxr-xr-x 1 mike users 40855 Jun 7 13:24 ./start.py
Binary file ./settings_functions.pyc matches
108699005 24 -rw-r--r-- 1 mike users 21425 Jun 7 13:35 ./settings_functions.pyc
``
and you can see I have changed them. wr-fw is my firewall offering ntp time which in turn is synced to am upstream server somewhere, can't remember off hand.
Since both are using the same server I would have thought the message is impossible unless it does not understand what is returned or it is not answering.
More investigation required.....
from onairscreen.
I just changed it to another host on my network, that does not offer ntp on port 123 and I am not seeing any data over the network to port 123, which is odd.
from onairscreen.
Also my ntp server only offers UDP
from onairscreen.
If you run ./start.py from a terminal, does the debug output give any clue what is happening?
The function at https://github.com/saschaludwig/OnAirScreen/blob/master/start.py#L766
has several prints which should give you a hint what is happening.
Upon start it checks every 5 seconds if the time is syncronized, once it gets a positive result (<300ms offset), the check is repeated every 60 seconds.
from onairscreen.
So using sulaco which does not offer NTP I got an error:
mike@shark:~/OnAirScreen$ ./start.py
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
error checking NTP sulaco.wolf-rock.com
But I still did not see anyting
from onairscreen.
It looks like the supplied NTP server isn't existent:
sl@dev:~$ host sulaco.wolf-rock.com
Host sulaco.wolf-rock.com not found: 3(NXDOMAIN)
from onairscreen.
Yes the check is done every 5 seconds in case of an error or an unknown state. With a 5 second initial delay after startup. And the displayed error message means exactly what it says :-D
"NTP status unknown" while not beeing checked in the first 5 seconds.
from onairscreen.
You might want to change the external NTP check server "pool.ntp.org" to a more reliable list :-)
Or if you are 100% certain that your local NTP server is always correct, just enter the IP of that local NTP server in the config dialog under "NTP Check Server"
from onairscreen.
Ah, ok, so it is just an message that happens on start up :-)
from onairscreen.
Related Issues (20)
- Trigger lights with switch HOT 2
- UDP Multicast Remote Option? HOT 3
- Can't run on RPi 4 HOT 2
- Set Font Size of LED Panels? HOT 1
- ImportError : cannot import name 'QtWebengineWidgets' HOT 1
- Crash if HTTP Port is already used HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Weather Widget Displays Wrong Temp Measurement HOT 3
- Choice of Multiple Clock Faces
- Current Version not running after building on MacOS with Pyinstaller HOT 6
- start.py: cannot connect to X server HOT 6
- Feature: Add Dutch as language for text clock and user locale for leftTextLabel HOT 1
- Couple of Questions / Maybe Enhancements ?
- Customizable Labels for left indicators HOT 1
- Set minimum width of left and right indicators HOT 1
- Auto clear NOW/NEXT after a short period of time HOT 1
- Add french localization for text-clock HOT 1
- Screen Layout
- Update Python tfor Ubuntu 22.04 HOT 7
- Question about NTP clock accuracy with RPI3 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onairscreen.