From bf7c2220b086842d2054a2d9f1e6acfd94ecbc73 Mon Sep 17 00:00:00 2001 From: Spiev <66719619+Spiev@users.noreply.github.com> Date: Sat, 27 Apr 2024 10:27:30 +0200 Subject: [PATCH] [openweathermap] Added "version" example to thing configuration and description. (#16671) * Added "version" example to thing configuration and description. Signed-off-by: / --- bundles/org.openhab.binding.openweathermap/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.openweathermap/README.md b/bundles/org.openhab.binding.openweathermap/README.md index 7f37efcd19..2696c1bcd1 100644 --- a/bundles/org.openhab.binding.openweathermap/README.md +++ b/bundles/org.openhab.binding.openweathermap/README.md @@ -61,6 +61,7 @@ Once the system location will be changed, the background discovery updates the c |-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | apikey | API key to access the OpenWeatherMap API. **Mandatory** | | refreshInterval | Specifies the refresh interval (in minutes). Optional, the default value is 60, the minimum value is 1. | +| apiVersion | Set API version to use, new generated OpenWeather accounts may use 3.0, older can try 2.5. Valid values are: `2.5`, `3.0`. | | language | Language to be used by the OpenWeatherMap API. Optional, valid values are: `ar`, `bg`, `ca`, `de`, `el`, `en`, `es`, `fa`, `fi`, `fr`, `gl`, `hr`, `hu`, `it`, `ja`, `kr`, `la`, `lt`, `mk`, `nl`, `pl`, `pt`, `ro`, `ru`, `se`, `sk`, `sl`, `tr`, `ua`, `vi`, `zh_cn`, `zh_tw`. | ### Current Weather And Forecast @@ -287,10 +288,11 @@ Bridge openweathermap:weather-api:api "OpenWeatherMap Account" [apikey="AAA", re #### One Call API Version ```java -Bridge openweathermap:weather-api:api "OpenWeatherMap Account" [apikey="Add your API key", refreshInterval=60, language="de"] { +Bridge openweathermap:weather-api:api "OpenWeatherMap Account" [apikey="Add your API key", refreshInterval=60, language="de", apiVersion="2.5"] { Thing onecall local "Local Weather and Forecast" [location="xxx,yyy"] Thing onecall-history local-history "Local History" [location="xxx,yyy", historyDay=1] } +If you create a new OpenWeather account, you maybe need to set the api version to 3.0. ``` ### Items -- 2.47.3