From 3a53be6c8b9911ddf626004db5d9d665be648b3a Mon Sep 17 00:00:00 2001 From: JEALG Date: Mon, 30 Dec 2024 13:00:09 +0100 Subject: [PATCH 1/2] correction lien --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3e17911..fba884c 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,6 @@ Plugin pour calculer le windchill et l'indice de température", "usage": "Indiquer des équipements température, humidité relative et vitesse du vent. Indiquer un seuil d'alerte pour l'indice de température (40°C par défaut). Si les conditions météo de température et d'humidité s'y prêtent, le plugin calcul le Windchill et l'indice de température. -_[Documentation](https://odolc.github.io/Temperature/#language#/)_ +_[Documentation](https://odolc.github.io/Temperature/fr_FR/)_ -_[changelog](https://odolc.github.io/Temperature/#language#/changelog.html)_ +_[changelog](https://odolc.github.io/Temperature/fr_FR/changelog)_ From a4b7cadb6ee3752e7bc740bb8704724d525625df Mon Sep 17 00:00:00 2001 From: JEALG Date: Tue, 14 Jan 2025 21:13:24 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Correction=20calcul=20temp=C3=A9rature=20re?= =?UTF-8?q?ssentie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/temperature.class.php | 10 +++++----- docs/fr_FR/changelog.md | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/core/class/temperature.class.php b/core/class/temperature.class.php index 1526ddb..b3a62f0 100644 --- a/core/class/temperature.class.php +++ b/core/class/temperature.class.php @@ -465,19 +465,19 @@ public static function getTemperature($wind, $temperature, $humidity, $pre_seuil if (0 < $windchill) { $td = (__('Pas de risque de gelures ni d’hypothermie (pour une exposition normale', __FILE__)); $td_num = -1; - } else if (-10 < $windchill && 0 <= $windchill) { + } else if (-10 < $windchill && $windchill <= 0) { $td = (__('Faible risque de gelures', __FILE__)); $td_num = -2; - } else if (-28 < $windchill && -10 <= $windchill) { + } else if (-28 < $windchill && $windchill <= -10) { $td = (__('Faible risque de gelures et d’hypothermie', __FILE__)); $td_num = -3; - } else if (-40 < $windchill && -28 <= $windchill) { + } else if (-40 < $windchill && $windchill <= -28) { $td = (__('Risque modéré de gelures en 10 à 30 minutes de la peau exposée et d’hypothermie', __FILE__)); $td_num = -4; - } else if (-48 < $windchill && -40 <= $windchill) { + } else if (-48 < $windchill && $windchill <= -40) { $td = (__('Risque élevé de gelures en 5 à 10 minutes (voir note) de la peau exposée et d’hypothermie', __FILE__)); $td_num = -5; - } else if (-55 < $windchill && -48 <= $windchill) { + } else if (-55 < $windchill && $windchill <= -48) { $td = (__('Risque très élevé de gelures en 2 à 5 minutes (voir note) sans protection intégrale ni activité', __FILE__)); $td_num = -6; } else if ($windchill <= -55) { diff --git a/docs/fr_FR/changelog.md b/docs/fr_FR/changelog.md index 0d952af..19a30ab 100644 --- a/docs/fr_FR/changelog.md +++ b/docs/fr_FR/changelog.md @@ -9,6 +9,12 @@ pluginId: temperature > **_Pour rappel_**, s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de corrections de bugs mineurs. +## 2025 + +### 14/01/2025 + +- Correction calcul température ressentie :https://community.jeedom.com/t/erreur-calcul-de-la-temperature-ressentie/136577?u=jag + ## 2024 ### 28/12/2024