V 1.5.3 Wind: die Boe heller und im Hintergrund

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-04 10:40:05 +02:00
parent 7deccea768
commit ebcca2c7d8
2 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "wetterstation-frontend", "name": "wetterstation-frontend",
"private": true, "private": true,
"version": "1.5.2", "version": "1.5.3",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
+7 -6
View File
@@ -688,15 +688,13 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = '
} }
} }
const series = hideGusts const gustSeries = {
? [windSpeedSeries]
: [windSpeedSeries, {
name: 'Böe' + windGustSuffix, name: 'Böe' + windGustSuffix,
data: withGaps(sortedData data: withGaps(sortedData
.filter(item => item.wind_gust != null) .filter(item => item.wind_gust != null)
.map(item => [new Date(item.datetime).getTime(), item.wind_gust])), .map(item => [new Date(item.datetime).getTime(), item.wind_gust])),
color: 'rgb(255, 100, 0)', color: 'rgba(255, 160, 80, 0.6)',
fillColor: 'rgba(255, 100, 0, 0.15)', fillColor: 'rgba(255, 160, 80, 0.08)',
type: 'area', type: 'area',
lineWidth: 1.5, lineWidth: 1.5,
connectNulls: false, connectNulls: false,
@@ -706,7 +704,10 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = '
valueDecimals: 1, valueDecimals: 1,
valueSuffix: ' km/h' valueSuffix: ' km/h'
} }
}] }
const series = hideGusts
? [windSpeedSeries]
: [gustSeries, windSpeedSeries]
return { return {
...getCommonOptions(), ...getCommonOptions(),
legend: { legend: {