[openweathermap] Added One Call API weather warnings (#10435)
* Added One Call API weather warnings Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> * Changed Channel title to event Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
committed by
GitHub
parent
950033ba2f
commit
e0f5e858c7
@@ -135,6 +135,11 @@
|
||||
<description>Number of minutes for minutely precipitation forecast.</description>
|
||||
<default>0</default>
|
||||
</parameter>
|
||||
<parameter name="numberOfAlerts" type="integer" min="0" max="5" step="1">
|
||||
<label>Number of Alerts</label>
|
||||
<description>Number of alerts to be shown.</description>
|
||||
<default>0</default>
|
||||
</parameter>
|
||||
</config-description>
|
||||
|
||||
<config-description uri="thing-type:openweathermap:onecall-history">
|
||||
|
||||
@@ -13,6 +13,7 @@ offline.conf-error-not-supported-uvindex-number-of-days = The 'forecastDays' par
|
||||
offline.conf-error-not-supported-onecall-number-of-minutes = The 'forecastMinutes' parameter must be between 0 and 60.
|
||||
offline.conf-error-not-supported-onecall-number-of-hours = The 'forecastHours' parameter must be between 0 and 48.
|
||||
offline.conf-error-not-supported-onecall-number-of-days = The 'forecastDays' parameter must be between 0 and 7.
|
||||
offline.conf-error-not-supported-onecall-number-of-alerts = The 'numberOfAlerts' parameter must be greater than or equals to 0.
|
||||
|
||||
# discovery result
|
||||
discovery.openweathermap.weather-and-forecast.api.local.label = Local Weather And Forecast
|
||||
|
||||
@@ -94,6 +94,21 @@ thing-type.config.openweathermap.air-pollution.location.description = Ort der We
|
||||
thing-type.config.openweathermap.air-pollution.forecastHours.label = Stunden
|
||||
thing-type.config.openweathermap.air-pollution.forecastHours.description = Anzahl der Stunden für die Vorhersage der Luftqualität.
|
||||
|
||||
thing-type.config.openweathermap.onecall.location.label = Ort der Wetterdaten
|
||||
thing-type.config.openweathermap.onecall.location.description = Ort der Wetterdaten in geographischen Koordinaten (Breitengrad/Längengrad/Höhe).
|
||||
|
||||
thing-type.config.openweathermap.onecall.forecastMinutes.label = Minuten
|
||||
thing-type.config.openweathermap.onecall.forecastMinutes.description = Anzahl der Minuten für die Vorhersage von Niederschlag.
|
||||
|
||||
thing-type.config.openweathermap.onecall.forecastHours.label = Stunden
|
||||
thing-type.config.openweathermap.onecall.forecastHours.description = Anzahl der Stunden für die Wettervorhersage.
|
||||
|
||||
thing-type.config.openweathermap.onecall.forecastDays.label = Tage
|
||||
thing-type.config.openweathermap.onecall.forecastDays.description = Anzahl der Tage für die Wettervorhersage, inklusive aktueller Tag.
|
||||
|
||||
thing-type.config.openweathermap.onecall.numberOfAlerts.label = Wetterwarnungen
|
||||
thing-type.config.openweathermap.onecall.numberOfAlerts.description = Anzahl der Wetterwarnungen.
|
||||
|
||||
# channel group types
|
||||
channel-group-type.openweathermap.station.label = Wetterstation
|
||||
channel-group-type.openweathermap.station.description = Fasst Daten über die Wetterstation oder den Ort zusammen.
|
||||
@@ -119,6 +134,12 @@ channel-group-type.openweathermap.airPollution.description = Fasst Daten
|
||||
channel-group-type.openweathermap.airPollutionForecast.label = Vorhersage der Luftqualität
|
||||
channel-group-type.openweathermap.airPollutionForecast.description = Fasst Daten über die vorhergesagte Luftqualität zusammen.
|
||||
|
||||
channel-group-type.openweathermap.oneCallCurrent.label = Aktuelles Wetter
|
||||
channel-group-type.openweathermap.oneCallCurrent.description = Fasst aktuelle Wetterdaten der One Call API zusammen.
|
||||
|
||||
channel-group-type.openweathermap.oneCallAlerts.label = Wetterwarnungen
|
||||
channel-group-type.openweathermap.oneCallAlerts.description = Fasst Daten von Wetterwarnungen zusammen.
|
||||
|
||||
# channel groups
|
||||
thing-type.openweathermap.weather-and-forecast.group.forecastHours03.label = Wettervorhersage für 3 Stunden
|
||||
thing-type.openweathermap.weather-and-forecast.group.forecastHours03.description = Fasst Daten der Wettervorhersage in den nächsten drei Stunden zusammen.
|
||||
@@ -177,6 +198,24 @@ thing-type.openweathermap.uvindex.group.forecastDay4.description = Fasst Daten d
|
||||
thing-type.openweathermap.uvindex.group.forecastDay5.label = UV-Index für 5 Tage
|
||||
thing-type.openweathermap.uvindex.group.forecastDay5.description = Fasst Daten der UV-Index Vorhersage in fünf Tagen zusammen.
|
||||
|
||||
thing-type.openweathermap.onecall.group.forecastToday.label = Wettervorhersage für heute
|
||||
thing-type.openweathermap.onecall.group.forecastToday.description = Fasst Daten der heutigen Wettervorhersage der One Call API zusammen.
|
||||
|
||||
thing-type.openweathermap.onecall.group.forecastTomorrow.label = Wettervorhersage für morgen
|
||||
thing-type.openweathermap.onecall.group.forecastTomorrow.description = Fasst Daten der morgigen Wettervorhersage der One Call API zusammen.
|
||||
|
||||
thing-type.openweathermap.onecall.group.forecastDay2.label = Wettervorhersage für übermorgen
|
||||
thing-type.openweathermap.onecall.group.forecastDay2.description = Fasst Daten der übermorgigen Wettervorhersage der One Call API zusammen.
|
||||
|
||||
thing-type.openweathermap.onecall.group.forecastDay3.label = Wettervorhersage für 3 Tage
|
||||
thing-type.openweathermap.onecall.group.forecastDay3.description = Fasst Daten der Wettervorhersage in drei Tagen der One Call API zusammen.
|
||||
|
||||
thing-type.openweathermap.onecall.group.forecastDay4.label = Wettervorhersage für 4 Tage
|
||||
thing-type.openweathermap.onecall.group.forecastDay4.description = Fasst Daten der Wettervorhersage in vier Tagen der One Call API zusammen.
|
||||
|
||||
thing-type.openweathermap.onecall.group.forecastDay5.label = Wettervorhersage für 5 Tage
|
||||
thing-type.openweathermap.onecall.group.forecastDay5.description = Fasst Daten der Wettervorhersage in fünf Tagen der One Call API zusammen.
|
||||
|
||||
# channel types
|
||||
channel-type.openweathermap.station-id.label = Station-ID
|
||||
channel-type.openweathermap.station-id.description = Zeigt die ID der Wetterstation oder des Ortes an.
|
||||
@@ -349,6 +388,23 @@ channel-type.openweathermap.ammonia.description = Aktuelle Konzentration an Ammo
|
||||
channel-type.openweathermap.forecasted-ammonia.label = Vorhergesagter Ammoniak
|
||||
channel-type.openweathermap.forecasted-ammonia.description = Vorhergesagte Konzentration an Ammoniak.
|
||||
|
||||
channel-type.openweathermap.alert-event.label = Art
|
||||
channel-type.openweathermap.alert-event.description = Art der Warnung, z.B. FROST.
|
||||
|
||||
channel-type.openweathermap.alert-description.label = Beschreibung
|
||||
channel-type.openweathermap.alert-description.description = Zeigt die Beschreibung der Wetterwarnung an.
|
||||
|
||||
channel-type.openweathermap.alert-onset.label = Gültig ab
|
||||
channel-type.openweathermap.alert-onset.description = Datum und Uhrzeit, ab dem die Warnung gültig ist.
|
||||
channel-type.openweathermap.alert-onset.state.pattern = %1$td.%1$tm.%1$tY %1$tH:%1$tM:%1$tS
|
||||
|
||||
channel-type.openweathermap.alert-expires.label = Gültig bis
|
||||
channel-type.openweathermap.alert-expires.description = Datum und Uhrzeit, bis zu dem die Warnung gültig ist.
|
||||
channel-type.openweathermap.alert-expires.state.pattern = %1$td.%1$tm.%1$tY %1$tH:%1$tM:%1$tS
|
||||
|
||||
channel-type.openweathermap.alert-source.label = Quelle
|
||||
channel-type.openweathermap.alert-source.description = Zeigt die Quelle der Wetterwarnung an.
|
||||
|
||||
# thing status
|
||||
offline.conf-error-missing-apikey = Der Parameter 'API Schlüssel' muss konfiguriert werden.
|
||||
offline.conf-error-invalid-apikey = Ungültiger 'API Schlüssel'. Mehr Infos unter https://openweathermap.org/faq#error401.
|
||||
|
||||
@@ -290,6 +290,17 @@
|
||||
</channels>
|
||||
</channel-group-type>
|
||||
|
||||
<channel-group-type id="oneCallAlerts">
|
||||
<label>Weather Warnings</label>
|
||||
<description>Weather warnings issued for the requested location.</description>
|
||||
<channels>
|
||||
<channel id="event" typeId="alert-event"/>
|
||||
<channel id="description" typeId="alert-description"/>
|
||||
<channel id="onset" typeId="alert-onset"/>
|
||||
<channel id="expires" typeId="alert-expires"/>
|
||||
<channel id="source" typeId="alert-source"/>
|
||||
</channels>
|
||||
</channel-group-type>
|
||||
|
||||
<!-- Channels for OpenWeatherMap Binding -->
|
||||
<channel-type id="station-id">
|
||||
@@ -769,4 +780,41 @@
|
||||
<category>Rain</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="alert-event">
|
||||
<item-type>String</item-type>
|
||||
<label>Type</label>
|
||||
<description>Type of the warning, e.g. FROST.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="alert-description">
|
||||
<item-type>String</item-type>
|
||||
<label>Description</label>
|
||||
<description>A detailed description of the alert.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="alert-onset">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Valid From</label>
|
||||
<description>Start Date and Time for which the warning is valid.</description>
|
||||
<category>Time</category>
|
||||
<state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="alert-expires">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Valid To</label>
|
||||
<description>End Date and Time for which the warning is valid.</description>
|
||||
<category>Time</category>
|
||||
<state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="alert-source" advanced="true">
|
||||
<item-type>String</item-type>
|
||||
<label>Source</label>
|
||||
<description>Source of the alert.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
</thing:thing-descriptions>
|
||||
|
||||
@@ -233,7 +233,6 @@
|
||||
<channel-group id="forecastHours23" typeId="oneCallHourly"/>
|
||||
<channel-group id="forecastHours24" typeId="oneCallHourly"/>
|
||||
|
||||
|
||||
<channel-group id="forecastToday" typeId="oneCallDaily">
|
||||
<label>One Call API Todays Forecast</label>
|
||||
<description>This is the weather forecast for today from the one call API.</description>
|
||||
|
||||
Reference in New Issue
Block a user