From 6a6c0c5322e6857927d48a597ad4e579c7df4e3f Mon Sep 17 00:00:00 2001 From: Daniel TARTAVEL Date: Thu, 16 Oct 2025 09:32:54 +0200 Subject: [PATCH] added utci coefficients --- pws2mqtt.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pws2mqtt.cpp b/pws2mqtt.cpp index 0493035..a998132 100644 --- a/pws2mqtt.cpp +++ b/pws2mqtt.cpp @@ -241,11 +241,11 @@ void Pws2mqtt::parseData(QList> queryList) QString msg = ""; static QDateTime timeWind = QDateTime::currentDateTime().addSecs(-600); quint8 windPriority = 1; - //static QString msgNotif; - debug (DEBUGMACRO, name + " : " + QByteArray::number(propertyValue), DEBUG); propertiesValue["vent"] = round(mphTokmh(value.toFloat())); + debug (DEBUGMACRO, name + " : " + QByteArray::number(propertiesValue["vent"]), DEBUG); + for (quint8 i=0; i> queryList) if (name == "windspeedmph") { //propertyList["forcevent"] = msg; - propertyList[name] = formatNotifString ("Vent - " + msg, propertyName[name].second , QByteArray::number(propertyValue)); + propertyList[name] = formatNotifString ("Vent - " + msg, propertyName[name].second , QByteArray::number(propertiesValue["vent"])); }else { - propertyList[name] = formatNotifString (propertyName[name].first, propertyName[name].second , QByteArray::number(propertyValue)); + propertyList[name] = formatNotifString (propertyName[name].first, propertyName[name].second , QByteArray::number(propertiesValue["vent"])); } setPriority(priority, windPriority); @@ -672,7 +672,8 @@ void notify(QString notif, QString priority, QString inputPath) curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer); // Exécute la requête - res = curl_easy_perform(curl); + + res = curl_easy_perform(curl); // Vérifie les erreurs if (res != CURLE_OK)