04/24/2018
“NTP_Time_synced_Web_Interface.ino" has obtained faster performance using "ESP8266 sys/time.h" and "ESP8266 time.h" libraries suggested by schufti of the ESP8266 Forum. Schufti provided example code for using the two libraries. Removed some code related to earlier libraries and three functions related to NTP, UDP, and and the old Time keeping code. Everything is complete: time related functions, web pages, file listing, file downloading, and graphing! ESP8266 server website is averaging less than one second response times from client connect, serving the webpage, and client closes! Response time can be monitored with Serial Monitor from time stamping.
More than a Data Logger; also allows fast, remote downloading of files, stored onboard in the SPIFFS memory. Files are listed and selectable for download. Both ESP8266, local server and hosted, web server receives uploaded data from the same sketch. Commented out are two features; a LCD display function and an experimental, audio beep function to alert for a predetermined difference in a 15-minute interval of barometric pressure. Have read of past references of serve weather associated with a sudden drop in barometric pressure.
RobotDyn WiFi D1 board that is online has been used for development of project coding; therefore, there may be gaps in the data logs! The 15-minute interval has been "spot on" every 15 minutes; awesome, since project has no RTC module! All time related requirements are provided by NTP time server; even has a second time server coded!
ESP8266 hosted, website and Domain, hosted website One sketch dynamically, updating data to both websites.
Restrictions of free, domain hosting service is why there is no file browser or file downloading on the domain hosted website.. Graphing of four, weather parameters is available on both websites.
Thank you, “Arduino,cc Forum,” “ESP8266 Community Forum,” and “Adafruit Forum” for all the help received with this Open-Source project!
05/05/2018 updated with current project file.
William
Serial Monitor --no Client IP.txt (8.54 KB)
yourOwnFilename.zip (1.09 KB)
NTP_Time_synced_Web_Interface.zip (11.1 KB)