-
Notifications
You must be signed in to change notification settings - Fork 41
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
Timezone broken? #39
Comments
@TheGroundZero it's not obvious in Clockwise's documentation but it uses the eztime library which needs port 2342 (UDP) open to determine your timezone. "timezoned.rop.nl is ezTime's own timezone service that it connects to. It is a simple UDP service that gets a packet on UDP port 2342 with the request, and responds with a packet that holds the POSIX information for that timezone (after OK ) or the error (after ERR ). It will only respond to the same IP-number once every three seconds to prevent being used in DDoS attacks." |
Sorry for the delay in this I will get my displays on the bench and download today. I cannot understand that the tetras clock programmed by @witnessmenow is rock solid at getting the time. I have no problem getting the Internet but the displays currently hang on getting the time. |
Thanks for the info @JeffWDH. I'll check it out when I'm back home. Does this mean that when you use your own NTP server, you also need to make it available on udp/2342 or would need to run a different service on said port? (#29) The docs of ezTime mention using
|
Thank you for researching this. |
I 100% agree. |
@JeffWDH Would you know if it excpects anything specifically from the EZTime server? |
jnthas provided this information above but essentially it maps a timezone to a POSIX timezone string. Example: You could run your own server by grabbing the code here: You could then use NAT, redirect the DNS or even modify the code to point to your own server. Alternatively (this is untested), if you only care about your own timezone you could run something like this on your own network which would output the string: This is pretty dumb and just waits a second and echoes that string whenever a new connection is made so I'm not sure if it will work. |
Will look into turning that into a podman container so I can run it next to Home Assistant. |
Got something put together but doesn't seem to fully function yet |
Looks like I got it to work :) I also added a DNS override that points Will monitor a few days to check if it actually stays online. |
@TheGroundZero would you be interested in testing a patch? I've added a manual Posix string option and it works for me. When set you no longer need the eztime server to set a timezone. https:/JeffWDH/clockwise/tree/manual_posix https:/JeffWDH/clockwise/commit/360b579d94a2f30c59c055fe834602abb5827d39 |
Sure thing But you'll have to run me through doing this, I'm afraid. |
Watching with interest. New pc built great speed but clocks still are an hour behind. Missed the posix timestring posts so will be interesting to try. |
I hacked together a copy of the web flasher here: Only the Pacman clockface is available. If this test build works for you guys I can submit a PR to hopefully get this added to the project. |
A list of the Posix timezone strings can be found here: |
Flashing went smooth and the device booted with immediately the correct time 👍 |
Hey folks, that's an excellent job! This parameter will help many other users I think. I've tested here and it worked great. Merging on master right now. |
@Lofty73 could you test it flashing from the URL @JeffWDH provided -> https://www.jhdc.ca/posixtest/
|
Now with 1.3.0 installed, my Clockwise still doesn't show the correct time.
At first I blamed it being on a non-internet network, as it did work on my 1 installation on an internet-connected network.
However, it still appears to be stuck on UTC, thus being 2 hours off.
I tried configuring my own NTP server as well as reverting back to pool.ntp.org and opening up the firewall for NTP requests comming from my Clockwise.
The text was updated successfully, but these errors were encountered: