Merge branch 'main' of git.labolyon.fr:DTux/pws2mqtt-qt

This commit is contained in:
DTux committed 2026-05-13 15:25:03 +02:00
commit 2f7f72d9b4
1 file changed
+7 -5
+7 -5
View File
@@ -369,9 +369,11 @@ void Pws2mqtt::parseData(QList<std::pair<QString, QString>> queryList)
propertyValue = round(pair.second.toFloat()*100)/100.0; propertyValue = round(pair.second.toFloat()*100)/100.0;
if (propertyValue <= 0.01) if (propertyValue <= 0.01)
{ {
ecart = 0.0001; raininPriority = 1;
ecart = 0.0001;
}else }else
{ {
raininPriority = 3;
ecart = 0.01; ecart = 0.01;
} }
debug (DEBUGMACRO, name + " : " + QByteArray::number(propertyValue), DEBUG); debug (DEBUGMACRO, name + " : " + QByteArray::number(propertyValue), DEBUG);
@@ -562,17 +564,17 @@ double calculerUTCI(double temperature, double humiditeRelative, double vitesseV
QString getPluviosite(double value, quint8 &priority) QString getPluviosite(double value, quint8 &priority)
{ {
if (value < 1) if (value < 0.5)
{ {
return "Pluie fine, bruine"; return "Pluie fine, bruine";
}else if (value < 5) }else if (value < 0.7)
{ {
return "Pluie Modérée"; return "Pluie Modérée";
}else if (value < 10) }else if (value < 1.5)
{ {
priority = 4; priority = 4;
return "Pluie forte"; return "Pluie forte";
}else if (value < 30) }else if (value < 3)
{ {
priority = 5; priority = 5;
return "Pluie Très forte, risque d'inondation"; return "Pluie Très forte, risque d'inondation";