This commit is contained in:
2025-10-12 10:33:32 +02:00
parent c3a4188406
commit 5ed7e3afdc

View File

@@ -278,7 +278,7 @@ void Pws2mqtt::parseData(QList<std::pair<QString, QString>> 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 "";