letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.25k stars 2.2k forks source link

feature request: Barometer / forecast from BME280 to MQTT message #2455

Open henkiejan1 opened 5 years ago

henkiejan1 commented 5 years ago

What should be more great than have your own weather forecast from your own weather station. The BME280 is very precious but it can't give forecast information in MQTT. It should be great when implemented and see your own weather forecast. :)

TD-er commented 5 years ago

How should the BME280 make a forecast? It can only detect the current situation.

So how do you imagine this forecast should be done?

SargonofAssyria commented 5 years ago

This is my forecast code in NodeRed to get the value into Domoticz. So simple is a forecast.

if (pres < 966) { forecast = "4"; } else if (pres < 993) { forecast = "3"; } else if (pres < 1007) { forecast = "2"; } else if (pres < 1013) { forecast = "3"; } else if (pres < 1033) { forecast = "0"; } else { forecast = "1"; }

henkiejan1 commented 5 years ago

How should the BME280 make a forecast? It can only detect the current situation.

So how do you imagine this forecast should be done?

What also SargonoAssyria say. You can with the trend of the atmospheric pressure make a forecast. I could better name it barometer i think... ;) baro

So in my opnion it should be a great feature! :)

TD-er commented 5 years ago

Ah OK, I get it :)

SargonofAssyria commented 5 years ago

There is a small glitch in my code from above, this is the correct code:

if (pres < 966) { forecast = "4"; } else if (pres < 993) { forecast = "3"; } else if (pres < 1007) { forecast = "2"; } else if (pres < 1013) { forecast = "1"; // <-- 3 should be 1 } else if (pres < 1033) { forecast = "0"; } else { forecast = "5"; // Unknown }

melwinek commented 5 years ago

I once reported it. It's more accurate here. https://github.com/letscontrolit/ESPEasy/issues/1558

SargonofAssyria commented 5 years ago

I know, but than you have to preserve previous barometer values.

melwinek commented 5 years ago

Yes. I believe that @TD-er will do it :)

henkiejan1 commented 5 years ago

It should be great if it is added quickly :) Is there a simple way to add it by myself via webinterface or something?

TD-er commented 5 years ago

@henkiejan1 Not as far as I know. Even when implemented in rules, it would be quite some hassle.

henkiejan1 commented 4 years ago

Maybe a nice detail. When in hook up a BME280 to the pins of my OrangePi i get in Domoticz also the forecast. https://tweakers.net/ext/f/keBc9BCEFKuMfmJeu8jkYWp8/full.jpg

TD-er commented 4 years ago

Can you see what data is sent to Domoticz via this orange pi? I can understand if it does keep track of trends in the air pressure, but I doubt things like "bewolkt" can be determined by that.

henkiejan1 commented 4 years ago

Can you see what data is sent to Domoticz via this orange pi? I can understand if it does keep track of trends in the air pressure, but I doubt things like "bewolkt" can be determined by that.

If i am correct is the sketch based on this MySensors sketch. https://forum.mysensors.org/post/76246 I will try to figure out some logs

rjblake commented 3 years ago

Was this feature ever added?