From fb02f462f00c7aa7a82acdd99c8693f2bd345b3d Mon Sep 17 00:00:00 2001 From: Christian Zufferey Date: Sat, 18 Jan 2020 18:17:36 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=C3=A9=20la=20page=20WEB=20pour=20afficher?= =?UTF-8?q?=20la=20temp=C3=A9rature=20et=20l'humidit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mesures/humidity/bolo-thingspeak/README.md | 4 ++- .../humidity/bolo-thingspeak/api_sonoff.html | 7 ++++- .../humidity/bolo-thingspeak/disp_temp.html | 23 ++++++++++++++ .../bolo-thingspeak/goodies/disp_temp.html | 30 ------------------- Mesures/humidity/bolo-thingspeak/z_index.html | 11 ++----- 5 files changed, 35 insertions(+), 40 deletions(-) create mode 100644 Mesures/humidity/bolo-thingspeak/disp_temp.html delete mode 100644 Mesures/humidity/bolo-thingspeak/goodies/disp_temp.html diff --git a/Mesures/humidity/bolo-thingspeak/README.md b/Mesures/humidity/bolo-thingspeak/README.md index bafaa9c..809d1dd 100644 --- a/Mesures/humidity/bolo-thingspeak/README.md +++ b/Mesures/humidity/bolo-thingspeak/README.md @@ -252,6 +252,8 @@ Exemple de sortie sur ThingSpeak On peut facilement modifier l'affichage des graphiques au moyen du petit *crayon* en haut à droite de chaque graphique +Très vite on va s'apercevoir qu'il faudra augmenter le temps entre chaque mesures, passer à 300 secondes au lieu de 20 secondes par exemple. + ### Exportation des données en CSV depuis ThingSpeak @@ -312,4 +314,4 @@ C'est aussi depuis ce moyen que l'on peut mettre, à distance, à jour le code L -zf200118.1635 +zf200118.1639 diff --git a/Mesures/humidity/bolo-thingspeak/api_sonoff.html b/Mesures/humidity/bolo-thingspeak/api_sonoff.html index bd5203a..969d2f6 100644 --- a/Mesures/humidity/bolo-thingspeak/api_sonoff.html +++ b/Mesures/humidity/bolo-thingspeak/api_sonoff.html @@ -8,26 +8,31 @@ API SonOff -

API SonOff zf200112.1706

+

API SonOff zf200118.1812

Home...

<% if _GET.LED == "on" then gpio.write(zLED, gpio.LOW) gpio.mode(zLED, gpio.OUTPUT) zout("LED=".._GET.LED.."
") + zout(' Off
') + end if _GET.LED == "off" then gpio.write(zLED, gpio.HIGH) gpio.mode(zLED, gpio.OUTPUT) zout("LED=".._GET.LED.."
") + zout(' On') end %> <% if _GET.RELAY == "on" then gpio.mode(zRELAY, gpio.OUTPUT) gpio.write(zRELAY, gpio.HIGH) zout("RELAY=".._GET.RELAY.."
") + zout(' Off
') end if _GET.RELAY == "off" then gpio.mode(zRELAY, gpio.OUTPUT) gpio.write(zRELAY, gpio.LOW) zout("RELAY=".._GET.RELAY.."
") + zout(' On') end %> diff --git a/Mesures/humidity/bolo-thingspeak/disp_temp.html b/Mesures/humidity/bolo-thingspeak/disp_temp.html new file mode 100644 index 0000000..87fe6b5 --- /dev/null +++ b/Mesures/humidity/bolo-thingspeak/disp_temp.html @@ -0,0 +1,23 @@ + + + + + + Affichage de la température et humidité + + + +

Affichage de la température et humidité 200118.1800

+ Home...
+ <% + zout("

"..node_id.."    200112.1919

") + %> +
+ <% + zout("Température: "..readTemp().." °C
") + zout("Humidité: "..readHumi().." %
") + + zout("

RAM: "..node.heap().."
") + %> + + diff --git a/Mesures/humidity/bolo-thingspeak/goodies/disp_temp.html b/Mesures/humidity/bolo-thingspeak/goodies/disp_temp.html deleted file mode 100644 index ffd491c..0000000 --- a/Mesures/humidity/bolo-thingspeak/goodies/disp_temp.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - Affichage des températures - - - -

Affichage des températures 190727.1349

-
- Les températures mesurées sont:
- - - <% - if (ztemp1 ~= nil) then - zout("
Température intérieure chambre à coucher "..ztemp1.."°C") - end - if (ztemp2 ~= nil) then - zout("
Température extérieure sud (nodemcu 29) "..ztemp2.."°C") - end - if (ztemp3 ~= nil) then - zout("
Température extérieure nord (nodemcu 30) "..ztemp3.."°C") - end - - zout("

RAM: "..node.heap().."
") - %> - - - diff --git a/Mesures/humidity/bolo-thingspeak/z_index.html b/Mesures/humidity/bolo-thingspeak/z_index.html index 629b395..724061f 100644 --- a/Mesures/humidity/bolo-thingspeak/z_index.html +++ b/Mesures/humidity/bolo-thingspeak/z_index.html @@ -11,23 +11,18 @@ <% - zout("

"..node_id.."    200112.1919

") + zout("

"..node_id.."    200118.1804

") %> Home...

Menu:

- SonOff API LED + LED On Off
- SonOff API RELAY - On - Off
+ Affichage de la température et humidité

- - Affichage des températures, affiche les températures mesurées
- Wifi setup