-->
Page 2 of 13

Re: Wemos D1 R2 Project: Weather Observations with four gra

PostPosted: Mon Apr 02, 2018 6:58 pm
by Sirquil
jankop wrote:Because it's a simple barometer only, it's tragically slow.

Thank you jankop.

BME280 Senor readings are only updated every fifteen minutes; this is by design.

Other uses of the sketch could easily be created; as the sketch makes use of reusable functions

William

Re: Wemos D1 R2 Project: Weather Observations with four gra

PostPosted: Tue Apr 03, 2018 2:00 am
by jankop
Hi William,
I meant the speed of the website. The basic data was loaded a full minute. Normally, the page loading time should be hundreds of milliseconds.

Re: Wemos D1 R2 Project: Weather Observations with four gra

PostPosted: Tue Apr 03, 2018 3:02 am
by Sirquil
All time requirements use Network Time Protocol; it communicates with a time server on the Internet by sending a request packet, then waits for a "good" return packet. If it is not a "good" packet; then process starts over --all of this takes more than microseconds, otherwise, date and time would be incorrect.

Advantage of NTP is there is no Real Time Clock required for time requirements! Earlier versions of the code use a DS3231 Real Time Clock. Using NTP allows adjusting the time automatically for Daylight Saving Time.

William

Re: Wemos D1 R2 Project: Weather Observations with four gra

PostPosted: Tue Apr 03, 2018 5:51 am
by schufti
If you use the ntp functions from the esp core together with the new functionality of the newlibc, you have accurate local time (with automatic dst) synced every hour in the background; returning requests for time almost instantly.