Go Down

Topic: ESP8266 --Internet Weather Datalogger and Dynamic Web Server (Read 22167 times) previous topic - next topic

Techno500

#60
Apr 14, 2018, 09:38 pm Last Edit: Apr 15, 2018, 04:52 pm by Techno500 Reason: Correction and add links
Update 04/14/2018:

Faster performance using the two new libraries , have removed some code related to libraries no longer used.  Everything is working:  ESP8266 server website and the hosted website are both online!

Current version of the "NTP_Web_Interface.ino" has been renamed to:  "Fast_Time_Web_Interface_v5.ino."

More than a Data Logger; also allows fast, remote downloading of files stored onboard in the SPIFFS memory, files are browser enabled and selectable from files list.  Both ESP8266, local server and hosted web server are available from the same sketch.  Commented out are two useful features; a LCD display function and a Audio beep to alert for a predetermined difference in a 15 minute interval of barometric pressure (experimental).

Same 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 from the top of the hour.  Awesome, for no real time clock.   All time related requirements are provided by NTP time server.   Even has a backup time server!

Two websites;one sketch:  Web and File browser and
Hosted web site; no file browser 

Restrictions from free hosting service is why there is no file browser.  Graphing of four weather parameters are availble on both websites.

William

Techno500

#61
Apr 21, 2018, 12:48 pm Last Edit: Apr 21, 2018, 12:49 pm by Techno500 Reason: Add date
04/21/2018

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 sites: ESP8266 Server Web site and  Hosted Web site  Both web sites obtain data from "Fast_Time_Web_Interface_v7.ino".

William

Techno500

#62
Jun 06, 2018, 08:55 pm Last Edit: Jun 22, 2018, 02:01 am by Techno500 Reason: Add current project file.
Due to circumstances beyond my control; project has been offline since 05/29/2018.  Online operation was restored 06/06/2018 at 01:30 EDT.  ISP changed from Gateway -based firmware to Gateway cloud -based firmware; there were issues with port forward not working.  Gateway was swapped out for a new one in the troubleshoot process and a new public IP was attached nullifying previous links to the ESP8266 Server web site.

I apologize for any inconvenience experienced by this change.

Active project websites:

ESP8266 Server website --new link

Domain, hosted website --unchanged

William

Techno500

Experienced sensor failure; awaiting replacement sensor.  Both websites are affected; updated data is invalid!

Affected websites:  

ESP8266 Server

Domain, hosted website


William

Techno500

#64
Jul 29, 2018, 02:51 am Last Edit: Aug 04, 2018, 05:59 am by Techno500 Reason: Cable provided "refreshed" the WAN IP.r
Update 7/28/2018



Replacement BME280 installed.  Assembled new sensor board with a 6 pin, female header; so I can use the sensor board to test BME280 sensors, without needing to soldering sensor onto the SB400 prototyping board.

Project has been running the last week reliably and with valid data.  Made some tweaks to the code.  Have observed occasional delays in responding to client requests; does not happen often, when it does happen page has to be reloaded by the Client Browser.  Issue may be the ESP8266 going to default modem sleep mode.   I have added in the loop:

Code: [Select]
wifi_set_sleep_type(NONE_SLEEP_T);
  delay(100);


Trying to keep the ESP8266 from going into default modem sleep --power is not ain issue.  Being occasional and random it is making it difficult to find and to correct.

Cable provider has "refreshed" the WAN IP.  ESP8266 Server Website.

William

Techno500

#65
Aug 09, 2018, 05:52 am Last Edit: Sep 20, 2018, 06:12 am by Techno500 Reason: Corrected uploaded file.
ESP8266 Hosted web site.

There are two web sites; one hosted on the ESP8266, and one domain, hosted --both are driven by one sketch!

Domain, hosted web site.




08/08/2018 Current version of sketch is attached.

Techno500

Update 09/03/2018:  "NTP_Time-sycned_Web_Interface.ino"  has been online without resets of any kind since 08/13/2018; current code is attached in the previous message. No wireless drops or wireless interference.

Development board running web server is a "RobotDyn WiFi D1 R2 at a  low-cost, of under $5."  Board is available at RobotDyn.com; photograph of this board can be viewed in previous "Update of 07/28/2018."

William

Go Up