Skip to content
Snippets Groups Projects
Commit f5e844a9 authored by Dennis Eisold's avatar Dennis Eisold
Browse files

Fixed bug with inhouse humidity

parent 01a78b3c
No related branches found
No related tags found
No related merge requests found
...@@ -154,8 +154,6 @@ namespace Wetterstation ...@@ -154,8 +154,6 @@ namespace Wetterstation
{ {
// Handle message received // Handle message received
var message = System.Text.Encoding.Default.GetString(e.Message); 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")) if (e.Topic.Equals(WeatherstationSettings.mqtt_topic_frontend + WeatherstationSettings.frontendId + "/weather"))
{ {
...@@ -341,7 +339,7 @@ namespace Wetterstation ...@@ -341,7 +339,7 @@ namespace Wetterstation
lbTempInMin.Invoke(new Action(() => { lbTempInMin.Text = node1In.tempMin + " °C"; })); lbTempInMin.Invoke(new Action(() => { lbTempInMin.Text = node1In.tempMin + " °C"; }));
lbTempInMax.Invoke(new Action(() => { lbTempInMax.Text = node1In.tempMax + " °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; node1In.humidity = true;
lbLuftFeuchtInnen.Invoke(new Action(() => { lbLuftFeuchtInnen.Text = weatherData[0]["humidity"] + " %"; })); lbLuftFeuchtInnen.Invoke(new Action(() => { lbLuftFeuchtInnen.Text = weatherData[0]["humidity"] + " %"; }));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment