diff --git a/Wetterstation/Form1.cs b/Wetterstation/Form1.cs index 9fafc36fe7177822b09ac22727961e8cf411b7b0..964b2cd808c0707cbe05cb47c7759ba2faf31514 100644 --- a/Wetterstation/Form1.cs +++ b/Wetterstation/Form1.cs @@ -154,8 +154,6 @@ namespace Wetterstation { // Handle message received var message = System.Text.Encoding.Default.GetString(e.Message); - //System.Console.WriteLine("Message received: " + message); - Console.WriteLine("With Topic: " + e.Topic); if (e.Topic.Equals(WeatherstationSettings.mqtt_topic_frontend + WeatherstationSettings.frontendId + "/weather")) { @@ -341,7 +339,7 @@ namespace Wetterstation lbTempInMin.Invoke(new Action(() => { lbTempInMin.Text = node1In.tempMin + " °C"; })); lbTempInMax.Invoke(new Action(() => { lbTempInMax.Text = node1In.tempMax + " °C"; })); } - if (weatherData[0]["client"] == WeatherstationSettings.node1Id && weatherData[0]["sensor"] == WeatherstationSettings.node1Innen && weatherData[0]["himidity"] != null) + if (weatherData[0]["client"] == WeatherstationSettings.node1Id && weatherData[0]["sensor"] == WeatherstationSettings.node1Innen && weatherData[0]["humidity"] != null) { node1In.humidity = true; lbLuftFeuchtInnen.Invoke(new Action(() => { lbLuftFeuchtInnen.Text = weatherData[0]["humidity"] + " %"; }));