melkati / CO2-Gadget

An advanced CO2 Monitor/Meter firmware for ESP32 with Android and iOS App for real time visualization and charting of air data, data logger, a variety of communication options (BLE, WIFI, MQTT, ESP-Now) and many supported sensors.
https://emariete.com/medidor-co2-gadget/
GNU General Public License v3.0
59 stars 13 forks source link

Add hysteresis (thresholds) to filter new readings handling to save energy #212

Open melkati opened 2 months ago

melkati commented 2 months ago

Tasks:

DISPLAY

As updating a e-Ínk display takes a time, we should a feature so users can choose if the display should be updated or not on small changes based on:

Same thing will be done for temperature and humidity (exact same configuration and options).

WIFI & MQTT

If the threshold is not meet there is no need to waste time in connect to wifi or send data by MQTT

I guess big energy savings can be possible by implementing this logic.

ESPNOW

Similar workings to WIFI & MQTT

USER OPTIONS

The user should have also the capability to select AND or OR between both options (if the first value is 50 and second 10% and OR is selected, display will be updated only when the new value is 50 ppm more/less and previous one OR the difference is more/less 10%).

The user should choose independently if these thresholds must be utilised for DISPLAY, WIFI & MQTT and ESPNOW

melkati commented 2 months ago

Created page with separate tabs for DISPLAY, WIFI & MQTT and ESPNOW

image