feat: add Open-Meteo weather forecast

This commit is contained in:
zv
2026-06-01 19:57:11 +02:00
parent 1c8b57b571
commit fc14b23001
12 changed files with 380 additions and 7 deletions

View File

@@ -66,6 +66,25 @@ const translations = {
"weather.windDirectionDetail": "Kierunek napływu wiatru",
"weather.rainfallDetail": "Suma opadu z pomiaru IMGW",
"weather.temperatureDetail": "Temperatura powietrza",
"forecast.label": "Prognoza modelowa",
"forecast.title": "Najbliższe godziny i dni",
"forecast.description": "Prognoza dla {location}. Bieżący pomiar powyżej pochodzi ze stacji IMGW, a poniższe wartości są prognozą modelową.",
"forecast.hourly": "Najbliższe 24 godziny",
"forecast.daily": "Prognoza 7-dniowa",
"forecast.today": "Dzisiaj",
"forecast.source": "Źródło prognozy:",
"forecast.error": "Nie udało się pobrać prognozy Open-Meteo.",
"forecast.emptyTitle": "Brak prognozy",
"forecast.emptyDescription": "Open-Meteo nie zwróciło teraz kompletnej prognozy dla tej lokalizacji.",
"forecast.condition.clear": "Bezchmurnie",
"forecast.condition.partlyCloudy": "Częściowe zachmurzenie",
"forecast.condition.cloudy": "Pochmurno",
"forecast.condition.fog": "Mgła",
"forecast.condition.drizzle": "Mżawka",
"forecast.condition.rain": "Opady deszczu",
"forecast.condition.snow": "Opady śniegu",
"forecast.condition.thunderstorm": "Burza",
"forecast.condition.unknown": "Brak opisu",
"stations.emptyTitle": "Brak pasujących stacji",
"station.all": "Wszystkie stacje",
"station.label": "Stacja {name}",
@@ -176,6 +195,25 @@ const translations = {
"weather.windDirectionDetail": "Direction the wind is coming from",
"weather.rainfallDetail": "Total rainfall from the IMGW reading",
"weather.temperatureDetail": "Air temperature",
"forecast.label": "Model forecast",
"forecast.title": "Upcoming hours and days",
"forecast.description": "Forecast for {location}. The current reading above comes from an IMGW station. The values below are a model forecast.",
"forecast.hourly": "Next 24 hours",
"forecast.daily": "7-day forecast",
"forecast.today": "Today",
"forecast.source": "Forecast source:",
"forecast.error": "Unable to load the Open-Meteo forecast.",
"forecast.emptyTitle": "Forecast unavailable",
"forecast.emptyDescription": "Open-Meteo did not return a complete forecast for this location.",
"forecast.condition.clear": "Clear sky",
"forecast.condition.partlyCloudy": "Partly cloudy",
"forecast.condition.cloudy": "Cloudy",
"forecast.condition.fog": "Fog",
"forecast.condition.drizzle": "Drizzle",
"forecast.condition.rain": "Rain",
"forecast.condition.snow": "Snow",
"forecast.condition.thunderstorm": "Thunderstorm",
"forecast.condition.unknown": "Description unavailable",
"stations.emptyTitle": "No matching stations",
"station.all": "All stations",
"station.label": "Station {name}",