diff --git a/.gitignore b/.gitignore index 15070ff..8981fcf 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ Dockerfile .dockerignore package.json create-minecraft-server.sh + +__pycache__/ \ No newline at end of file diff --git a/__pycache__/app.cpython-310.pyc b/__pycache__/app.cpython-310.pyc index 71d3cb6..3ac5196 100644 Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ diff --git a/app.py b/app.py index 1d26b4b..14dc439 100644 --- a/app.py +++ b/app.py @@ -106,9 +106,9 @@ def get_mosmix_forecast(lat, lon, hours=72): precip_raw = rr1c if not _isnan(rr1c) else (rr1 if not _isnan(rr1) else None) precip = round(float(precip_raw), 1) if precip_raw is not None else 0.0 - # Regenwahrscheinlichkeit + # Regenwahrscheinlichkeit (Wert kommt als Bruchteil 0.0–1.0) rprob_raw = params.get("probability_precipitation_height_gt_0_1mm_last_1h") - rain_prob = round(float(rprob_raw)) if not _isnan(rprob_raw) else None + rain_prob = round(float(rprob_raw) * 100) if not _isnan(rprob_raw) else None n = params.get("cloud_cover_total") clouds = round(float(n)) if not _isnan(n) else None