FlexMeasures / flexmeasures

The intelligent & developer-friendly EMS to support real-time energy flexibility apps, rapidly and scalable.
https://flexmeasures.io
Apache License 2.0
133 stars 34 forks source link

Relax max staleness for status page using event_resolution #1101

Closed nhoening closed 1 week ago

nhoening commented 2 weeks ago

Right now, the max_staleness for non-future sensors defaults to PT0H ("immediate staleness after knowledge time", see data/services/sensors.py:get_status_specs).

The consequence is that we show red lights a bit too eagerly, I believe. Hovering over a red traffic light (even green ones) says "More than a moment old". This should be more informative.

I suggest changing the default to adding 2 times the resolution.