How to support OpenWeatherMap one call api 3.0. (#13414)

Add OpenCall API version property.

Allowing for version 3.0 API to be set.

Signed-off-by: Ross Buggins <20972856+rossbuggins@users.noreply.github.com>
This commit is contained in:
rossbuggins
2022-09-24 20:15:19 +01:00
committed by GitHub
parent 6241d6f369
commit 80804a59b0
5 changed files with 33 additions and 4 deletions

View File

@@ -11,6 +11,15 @@
<label>API Key</label>
<description>API key to access the OpenWeatherMap API.</description>
</parameter>
<parameter name="apiVersion" type="text">
<label>One Call API Version</label>
<description>One Call API version (defaults to 2.5, version 3.0 is available, but needs different subscription).</description>
<default>2.5</default>
<options>
<option value="2.5">2.5</option>
<option value="3.0">3.0</option>
</options>
</parameter>
<parameter name="refreshInterval" type="integer" min="1" unit="min">
<label>Refresh Interval</label>
<description>Specifies the refresh interval (in minutes).</description>

View File

@@ -76,6 +76,8 @@ thing-type.openweathermap.weather-api.description = Provides access to the OpenW
bridge-type.config.openweathermap.weather-api.apikey.label = API Key
bridge-type.config.openweathermap.weather-api.apikey.description = API key to access the OpenWeatherMap API.
bridge-type.config.openweathermap.weather-api.apiVersion.label = One Call API Version
bridge-type.config.openweathermap.weather-api.apiVersion.description = One Call API version (defaults to 2.5, version 3.0 is available, but needs different subscription).
bridge-type.config.openweathermap.weather-api.language.label = Language
bridge-type.config.openweathermap.weather-api.language.description = Language to be used by the OpenWeatherMap API.
bridge-type.config.openweathermap.weather-api.language.option.af = Afrikaans