debug
This commit is contained in:
1 parent
a38a67419e
commit
724063eb3b
2 files changed
+12
-7
No files matched your search
+11
-6
@@ -307,22 +307,27 @@ public:
|
|||||||
// --- Prévision à 1 heure ---
|
// --- Prévision à 1 heure ---
|
||||||
if (d <= -1.5 && p < 1010 && humidityPercent > 80.0)
|
if (d <= -1.5 && p < 1010 && humidityPercent > 80.0)
|
||||||
{
|
{
|
||||||
r.prevision1h = "☔ Pluie probable dans l’heure \n";
|
r.prevision1h = "- ☔ Pluie probable dans l’heure \n";
|
||||||
r.urgency = qMax(r.urgency, 4);
|
r.urgency = qMax(r.urgency, 4);
|
||||||
r.confiance = 80;
|
r.confiance = 80;
|
||||||
}else if (d >= +1.5 && p > 1015)
|
}else if (d >= +1.5 && p > 1015)
|
||||||
{
|
{
|
||||||
r.prevision1h = "🌤 Amélioration probable dans l’heure \n";
|
r.prevision1h = "- 🌤 Amélioration probable dans l’heure \n";
|
||||||
r.confiance = 85;
|
r.confiance = 85;
|
||||||
}else if (qAbs(d1) < 0.3 && qAbs(temperatureC) < 0.5)
|
}else if (qAbs(d1) < 0.3 && qAbs(temperatureC) < 0.5)
|
||||||
{
|
{
|
||||||
r.prevision1h = "⛅ Conditions stables pour la prochaine heure \n";
|
r.prevision1h = "- ⛅ Conditions stables pour la prochaine heure \n";
|
||||||
r.confiance = 70;
|
r.confiance = 70;
|
||||||
}else if (temperatureC < 0 && humidityPercent > 85)
|
}else if (temperatureC < 0 && humidityPercent > 85)
|
||||||
{
|
{
|
||||||
r.prevision1h = "❄️ Possible formation de givre ou verglas dans l’heure \n";
|
r.prevision1h = "- ❄️ Possible formation de givre ou verglas dans l’heure \n";
|
||||||
r.urgency = qMax(r.urgency, 4);
|
r.urgency = qMax(r.urgency, 4);
|
||||||
r.confiance = 75;
|
r.confiance = 75;
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
r.prevision1h = "- pas de changements dans l'heure \n";
|
||||||
|
r.urgency = qMax(r.urgency, 2);
|
||||||
|
r.confiance = 85;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -344,9 +349,9 @@ public:
|
|||||||
// --- Résultat complet ---
|
// --- Résultat complet ---
|
||||||
if (!r.prevision1h.isEmpty())
|
if (!r.prevision1h.isEmpty())
|
||||||
{
|
{
|
||||||
r.message += "**Prévision dans l'heure** \n";
|
//r.message += "**Prévision dans l'heure** \n";
|
||||||
r.message += r.prevision1h;
|
r.message += r.prevision1h;
|
||||||
r.message += "- " + QByteArray::number(r.confiance) + "% \n";
|
//r.message += "- Probabilité " + QByteArray::number(r.confiance) + "% \n";
|
||||||
}
|
}
|
||||||
debug(DEBUGMACRO, "message : " + r.message, DEBUG);
|
debug(DEBUGMACRO, "message : " + r.message, DEBUG);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -412,7 +412,7 @@ void Pws2mqtt::parseData(QList<std::pair<QString, QString>> queryList)
|
|||||||
notif += propertyList[name];
|
notif += propertyList[name];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
notif += "**Prévisions** \n" + propertyList["prevision"];
|
notif += "**Prévisions à 12/24h** \n" + propertyList["prevision"];
|
||||||
debug(DEBUGMACRO, "calling notify with notif = #" + notif + "#", DEBUG);
|
debug(DEBUGMACRO, "calling notify with notif = #" + notif + "#", DEBUG);
|
||||||
if (changed)
|
if (changed)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user