From 5ed7e3afdcced6d055fc548c83c9aa59a6cc702d Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 12 Oct 2025 10:33:32 +0200 Subject: [PATCH] debug --- pws2mqtt.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pws2mqtt.cpp b/pws2mqtt.cpp index 9eef17b..7a76b61 100644 --- a/pws2mqtt.cpp +++ b/pws2mqtt.cpp @@ -278,7 +278,7 @@ void Pws2mqtt::parseData(QList> queryList) if (priority > 3) { notify(msgNotif, priorityList[priority], attachment); - }else if (timeWind < QDateTime::currentDateTime()) + }else if (timeWind < QDateTime::currentDateTime() or propertyValue > 20) { timeWind = timeWind.currentDateTime().addSecs(300); changed = true; @@ -517,7 +517,7 @@ QString pressureVariation(double currentPressure, quint8 &priority) // Calcul de la variation sur 3h si on a assez de mesures if (historiquePressions.size() == NB_MESURES_3H) { - double pressionInitiale = historiquePressions.front(); + double pressionInitiale = historiquePressions.front();) * 30 double pressionFinale = historiquePressions.back(); double variation = pressionFinale - pressionInitiale; @@ -534,8 +534,8 @@ QString pressureVariation(double currentPressure, quint8 &priority) return prevision; }else { - static QTime time = QTime::currentTime(); - return "Première prévision à " + time.addSecs((NB_MESURES_3H - historiquePressions.size()) * 30).toString(); + static QTime time = QTime::currentTime().addSecs(NB_MESURES_3H * 30); + return "Première prévision à " + time.toString(); } debug(DEBUGMACRO, "ending pressureVariation no result", DEBUG); return "";