From 9001ee742697168cd7b12aef73e6a4d12e91f840 Mon Sep 17 00:00:00 2001 From: Nils Schnabel Date: Sun, 29 Jan 2023 19:56:10 +0100 Subject: [PATCH] =?UTF-8?q?[fmiweather]=20HIRLAM=20=E2=86=92=20HARMONIE=20?= =?UTF-8?q?weather=20model=20(#13693)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [FMI] HIRLAM → HARMONIE model Signed-off-by: Nils Schnabel Co-authored-by: Sami Salonen --- .../org.openhab.binding.fmiweather/README.md | 2058 ++++++++--------- .../internal/client/ForecastRequest.java | 2 +- .../internal/discovery/CitiesOfFinland.java | 3 +- .../binding/fmiweather/FMIRequestTest.java | 2 +- .../FMIResponseParsingMultiplePlacesTest.java | 18 +- .../fmiweather/forecast_multiple_places.xml | 194 +- 6 files changed, 1139 insertions(+), 1138 deletions(-) diff --git a/bundles/org.openhab.binding.fmiweather/README.md b/bundles/org.openhab.binding.fmiweather/README.md index c4c55701e..0d2414770 100644 --- a/bundles/org.openhab.binding.fmiweather/README.md +++ b/bundles/org.openhab.binding.fmiweather/README.md @@ -2,8 +2,8 @@ This binding integrates to [the Finnish Meteorological Institute (FMI) Open Data API](https://en.ilmatieteenlaitos.fi/open-data). -Binding provides access to weather observations from FMI weather stations and [HIRLAM weather forecast model](https://en.ilmatieteenlaitos.fi/weather-forecast-models) forecasts. -Forecast covers all of Europe, see previous link for more information. +Binding provides access to weather observations from FMI weather stations and [HARMONIE weather forecast model](https://en.ilmatieteenlaitos.fi/weather-forecast-models) forecasts. +Forecast covers "northern Europe" (Finland, Baltics, Scandinavia, some parts of surrounding countries), see [coverage map in the documentation](https://en.ilmatieteenlaitos.fi/weather-forecast-models). ![example of things](doc/images/fmi-example-things.png) @@ -38,7 +38,7 @@ The binding automatically discovers weather stations and forecasts for nearby pl | Parameter | Type | Required | Description | Example | | ---------- | ---- | -------- | ---------------------------------------------------------------------------------------------------- | --------------------------------- | -| `location` | text | ✓ | Latitude longitude location for the forecast. The parameter is given in format `LATITUDE,LONGITUDE`. | `"48.864716, 2.349014"` for Paris | +| `location` | text | ✓ | Latitude longitude location for the forecast. The parameter is given in format `LATITUDE,LONGITUDE`. | `"60.192059, 24.945831"` for Helsinki | ## Channels @@ -94,7 +94,7 @@ Since forecasts are updated at certain times of the day, the last forecast value | `total-cloud-cover` | `Number:Dimensionless` | Forecasted total cloud cover as percentage | | `weather-id` | `Number` | Number indicating forecasted weather condition. Corresponds to `WeatherSymbol3` parameter. For descriptions in Finnish, see [FMI web site](https://ilmatieteenlaitos.fi/latauspalvelun-pikaohje). | -To refer to certain channel, use the normal convention `THING_ID:GROUP_ID#CHANNEL_ID`, e.g. `fmiweather:forecast:ParisForecast:forecastHours06#wind-speed`. +To refer to certain channel, use the normal convention `THING_ID:GROUP_ID#CHANNEL_ID`, e.g. `fmiweather:forecast:HelsinkiForecast:forecastHours06#wind-speed`. ## Unit Conversion @@ -108,7 +108,7 @@ Please use the [Units Of Measurement](https://www.openhab.org/docs/concepts/unit ```java Thing fmiweather:observation:station_Helsinki_Kumpula "Helsinki Kumpula Observation" [fmisid="101004"] -Thing fmiweather:forecast:forecast_Paris "Paris Forecast" [location="48.864716, 2.349014"] +Thing fmiweather:forecast:forecast_Helsinki "Helsinki Forecast" [location="60.192059, 24.945831"] ``` ### Items @@ -162,7 +162,8 @@ Number HelsinkiPresentWeatherCode "Prevailing weather [%d]" { chann ```java -DateTime ParisForecastNowTime "Forecast Time Now [%1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS]"