Chat freely about anything...

User avatar
By Sirquil
#75525 Removed all occurrences of "\r\n" from lines with "client.println." Implemented your suggestion to use formatted strftime, added %Z for timezone. Works perfectly, thank you schufti! Eliminated most of the timeStamp function except the formatting of "strftime."

File name was changed from "NTP_Web_Interface.zip" to reflect; faster, client connections under one second consistently .

ESP8266 Server web site: https://tinyurl.com/Treyburnweather New link!

Hosted web site: https://tinyurl.com/Indpls-weather

William
Attachments
Serial monitor capture shows "Client connect" and "Client close" date-time stamps.
(6.02 KiB) Downloaded 512 times
Updated 04/20/2018 Faster client connections/disconnects --under a second for the ESP8266 Server web site.
(10.87 KiB) Downloaded 207 times
Last edited by Sirquil on Fri Jun 08, 2018 2:43 pm, edited 2 times in total.
User avatar
By jankop
#75526 By me your HTML head is incorrect:
Code: Select all<!DOCTYPE HTML>
<html>
<head><h3><title>Weather Observations</title><h3>
<h2>Treyburn Lakes<br>
Indianapolis, IN 46239</h2></head><br>
<body>


It should be better:
Code: Select all<!DOCTYPE HTML>
<html>
<head><title>Weather Observations</title></head>
<body>
<h2>Treyburn Lakes<br>
Indianapolis, IN 46239</h2><br>


I would recommend using the real Content-Length parameter
in HTTP header.
User avatar
By Sirquil
#77464 Update 7/29/2018

Defective sensor replaced. New SB400 sensor board built with a 6 pin, female header for mounting BME280 sensor (future use to test other BME280 sensors with male header pins.)

Robotdyn WiFi D1 Projec-smallert.jpg
Image of server and sensor board


Some minor changes to code for better client request response.

http://weather-1.ddns.net/Weather ESP8266 Server web site --new

https://observations-weather.000webhostapp.com/index.php Domain hosted web site

William
Attachments
Current version; corrected HTML
(16.72 KiB) Downloaded 217 times
Last edited by Sirquil on Mon Jan 24, 2022 4:41 pm, edited 4 times in total.