-->
Page 5 of 9

Re: simple graphic clock

PostPosted: Wed Dec 09, 2015 2:42 pm
by cwilt
Question for the developer...

Am I correct that every time the time function is called that an NTP request is sent?

Re: simple graphic clock

PostPosted: Wed Dec 09, 2015 3:09 pm
by TassyJim
cwilt wrote:Question for the developer...

Am I correct that every time the time function is called that an NTP request is sent?


Not the developer but "Yes". That is why I did call to time() and saved the result into a variable to be sure the time doesn't change between calls to hour and minute.

For those having problems with the time not updating, add a serialprint statement in the [drawClock] routine and monitor the serial port.

I expect that the problem is with your browser caching the page. Try a page refresh.

Jim

Re: simple graphic clock

PostPosted: Wed Dec 09, 2015 5:56 pm
by Mmiscool
When you connect to any wifi network it attempts to get the current time. After that I believe it relights on the internal clock unless the time zone is changed.

Re: simple graphic clock

PostPosted: Wed Dec 09, 2015 8:42 pm
by TassyJim
Mmiscool wrote:When you connect to any wifi network it attempts to get the current time. After that I believe it relights on the internal clock unless the time zone is changed.


You are correct. It sets the time on powerup/connection then uses it's internal clock.
It will, I assume, use NTP on a regular basis to correct the time.

Jim