Skip to content

Question regarding Time Sync #235

Answered by sfeakes
rpourzia asked this question in Q&A
Discussion options

You must be logged in to vote

There are two constants in aqualink.h that control this. By default checks time every 3200 seconds (1 hour), and will re-adjust if more than 120 seconds (2 mins) off. Obviously you can change these are re-compile.

#define TIME_CHECK_INTERVAL  3600
#define ACCEPTABLE_TIME_DIFF 120

It uses systemtime for the check, so if you want ntp simply set systemtime from ntpd. (or your preferred method)

There is an API (not documented) that will force the time set. (this will bypasses the check, so time could be out by 10 seconds and it would still set time)

http://aqualinkd-ip/api/set_date_time

One thing to note, it takes a long time to set the time on the panel, and the panel has no seconds. So it…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rpourzia
Comment options

You must be logged in to vote
1 reply
@rpourzia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants