Added TITLE for HTML page.

Change minimum cinstrain for fitting temperature range oft DHT22.
master
Holger Wirtz 4 years ago
parent 1202322754
commit 2d88947830
  1. 7
      WLAN_Thermometer.ino

@ -184,7 +184,10 @@ void loop()
client.println();
client.println("<!DOCTYPE html>\n");
client.println("<html>\n");
client.println("<head>\n");
client.println("<title>Temperatur KircheGratenstadt Staaken</title>\n");
client.println("<meta http-equiv=\"refresh\" content=\"5\">\n");
client.println("</head>\n");
client.println("<body>\n");
client.println("<center>\n");
client.println("<h1 style=\"color:green;\">Temperatur Kirche</h1>\n");
@ -388,7 +391,7 @@ bool is_wintertime(time_t t)
void get_sensor_data(void)
{
temp[ACT] = constrain(dht.readTemperature(), -20.0, 80.0);
temp[ACT] = constrain(dht.readTemperature(), -40.0, 80.0);
if (temp[ACT] < temp[MIN])
temp[MIN] = temp[ACT];
if (temp[ACT] > temp[MAX])
@ -400,7 +403,7 @@ void get_sensor_data(void)
if (hum[ACT] > hum[MAX])
hum[MAX] = hum[ACT];
heat[ACT] = constrain(dht.computeHeatIndex(temp[ACT], hum[ACT], false), -20.0, 80.0);
heat[ACT] = constrain(dht.computeHeatIndex(temp[ACT], hum[ACT], false), -40.0, 80.0);
if (heat[ACT] < heat[MIN])
heat[MIN] = heat[ACT];
if (heat[ACT] > heat[MAX])

Loading…
Cancel
Save