From 2d88947830a508df294ad40abb727bc1f7452747 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Fri, 16 Oct 2020 14:24:12 +0200 Subject: [PATCH] Added TITLE for HTML page. Change minimum cinstrain for fitting temperature range oft DHT22. --- WLAN_Thermometer.ino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/WLAN_Thermometer.ino b/WLAN_Thermometer.ino index 42ac36c..b3b80f5 100644 --- a/WLAN_Thermometer.ino +++ b/WLAN_Thermometer.ino @@ -184,7 +184,10 @@ void loop() client.println(); client.println("\n"); client.println("\n"); + client.println("\n"); + client.println("Temperatur KircheGratenstadt Staaken\n"); client.println("\n"); + client.println("\n"); client.println("\n"); client.println("
\n"); client.println("

Temperatur Kirche

\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])