Lightwell-bg / LWClock

Multifunctional clock based on ESP8266 and MAX79xxx for Home Automation (IoT)
GNU General Public License v3.0
41 stars 11 forks source link

MQTT #1

Closed jsponz closed 4 years ago

jsponz commented 4 years ago

Thanks for your nice project. I really like it.

My only question is about MQTT. I have made the configuration for the connection to my broker and I receive different values as the ones shown on the admin panel.

Bildschirmfoto 2020-02-12 um 11 22 03 Bildschirmfoto 2020-02-12 um 11 22 16

Any help?

Thanks in advance.

P.S: I am using your default compilation v2.0

Lightwell-bg commented 4 years ago

You need to configure the settings for MQTT on page image You can find this page in menu when you are on "Setup".

jsponz commented 4 years ago

It is already configured. I receive date in the MQTT broker, but the values are different. Check the screens.

Thanks!

Lightwell-bg commented 4 years ago

I understood. In scetch is correction for temp and hum depending on the brightness of the indicator. But no correction for sending to MQTT and thingspeak.com. This was done when the sensor was inside the case. switch (brightnow) { case 0: tempBME = tempBME - 0.09; break; case 1: tempBME = tempBME - 0.57; break; case 2: tempBME = tempBME - 1.04; break; case 3: tempBME = tempBME - 1.66; ..................... I can remote correction or enable/disable it in the web interface

jsponz commented 4 years ago

Ok. I guess that explains also the difference for the other values.

Maybe a good idea is to have the change to make the corrections from the admin panel. For example for the temperature from -5 to +5 and the user based on the case decides to make the correction.

Lightwell-bg commented 4 years ago

I'll make on/off correction and choice of "mm" or hPa (for pressure) with admin panel

jsponz commented 4 years ago

Ok. Thanks!

Looking forward to it!

Lightwell-bg commented 4 years ago

I've added a selection of disabling adjustments for temp&hum and select unit for pressure (only for send to MQTT). Please update FS and scetch.

jsponz commented 4 years ago

Thanks! I will check it!

jsponz commented 4 years ago

Just to confirm it works! Thanks!