Fix: Asphalttemperatur-Formel temperaturabhängig (t_factor 0..1 zwischen 5-30°C), nicht mehr temperaturblind

This commit is contained in:
rene 2026-05-16 13:53:05 +02:00
parent 416f32b056
commit 21b65a1e39

View file

@ -239,7 +239,9 @@ def _wind_dir(deg: float) -> str:
def _asphalt_temp(air_max: float, uv_max: float) -> tuple[float, str]:
bonus = min(uv_max * 3.0, 30.0)
# UV-Bonus skaliert mit Temperatur: unter 10°C kaum Aufheizung, ab 30°C voll
t_factor = max(0.0, min(1.0, (air_max - 5) / 25))
bonus = min(uv_max * 3.0 * t_factor, 30.0)
asphalt = air_max + bonus
if asphalt <= 30:
warn = 'safe'