On Sun, Nov 27, 2016 at 3:53 AM, gustl319 <gustl.ba...@hotmail.de> wrote:

> I've done some code searching. Please tell me if I'm right:
>
>    - on startup do_sync() is called
>    - in do_sync() is a call to getTime()
>    - getTime() returns the GETTIME answer
>    - if the difference to system time is greater than max_drift (5sec)
>    then a setTime() -> SETTIME sequence is started
>
> ​This is exactly right.



> So a datetime library for ardunio/feather which is set by SETTIME should
> do the trick.
>
>
​Yes, so long as getTime() always returns the correct time.
​


> Please tell me: Is do_sync() after every conection loss between weewx and
> the console?
>
>
​No. Only when weewx starts up, and thereafter, every 4 hours. ​


​-tk​

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to