Giter Club home page Giter Club logo

Comments (12)

st1nga avatar st1nga commented on July 22, 2024 1

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.

st1nga avatar st1nga commented on July 22, 2024

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.

saschaludwig avatar saschaludwig commented on July 22, 2024

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.

st1nga avatar st1nga commented on July 22, 2024

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.

st1nga avatar st1nga commented on July 22, 2024

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.

st1nga avatar st1nga commented on July 22, 2024

Also my ntp server only offers UDP

from onairscreen.

saschaludwig avatar saschaludwig commented on July 22, 2024

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.

st1nga avatar st1nga commented on July 22, 2024

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.

saschaludwig avatar saschaludwig commented on July 22, 2024

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.

saschaludwig avatar saschaludwig commented on July 22, 2024

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.

saschaludwig avatar saschaludwig commented on July 22, 2024

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"

Config Dialog

from onairscreen.

st1nga avatar st1nga commented on July 22, 2024

Ah, ok, so it is just an message that happens on start up :-)

from onairscreen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.