From ebcca2c7d8e99b4b500b858fd89c444af5e59d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20X=2E=20F=C3=BCrst?= Date: Mon, 4 May 2026 10:40:05 +0200 Subject: [PATCH] V 1.5.3 Wind: die Boe heller und im Hintergrund Co-authored-by: Copilot --- frontend/package.json | 2 +- frontend/src/components/WeatherDashboard.jsx | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 357b78e..9558a25 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "wetterstation-frontend", "private": true, - "version": "1.5.2", + "version": "1.5.3", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/components/WeatherDashboard.jsx b/frontend/src/components/WeatherDashboard.jsx index a8074a2..52cd3f6 100644 --- a/frontend/src/components/WeatherDashboard.jsx +++ b/frontend/src/components/WeatherDashboard.jsx @@ -688,15 +688,13 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = ' } } - const series = hideGusts - ? [windSpeedSeries] - : [windSpeedSeries, { + const gustSeries = { name: 'Böe' + windGustSuffix, data: withGaps(sortedData .filter(item => item.wind_gust != null) .map(item => [new Date(item.datetime).getTime(), item.wind_gust])), - color: 'rgb(255, 100, 0)', - fillColor: 'rgba(255, 100, 0, 0.15)', + color: 'rgba(255, 160, 80, 0.6)', + fillColor: 'rgba(255, 160, 80, 0.08)', type: 'area', lineWidth: 1.5, connectNulls: false, @@ -706,7 +704,10 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = ' valueDecimals: 1, valueSuffix: ' km/h' } - }] + } + const series = hideGusts + ? [windSpeedSeries] + : [gustSeries, windSpeedSeries] return { ...getCommonOptions(), legend: {