Updated external content (Jenkins build 1285)
parent
e6d1adce3d
commit
ab157dbf23
File diff suppressed because one or more lines are too long
|
@ -96,5 +96,6 @@ Bridge dali:daliserver:237dbae7 "Daliserver" [ host="localhost", port=55825] {
|
|||
```java
|
||||
Dimmer WarmWhiteLivingRoom "Warm White Living Room" {channel="dali:device:237dbae7:995e16ca-07c4-4111-9cda-504cb5120f82:dimImmediately"}
|
||||
Color ColorLivingRoom "Light Color Living Room" {channel="dali:device:237dbae7:87bf0403-a45d-4037-b874-28f4ece30004:color"}
|
||||
Number:Temperature ColorTemperatureLivingRoom "Light Color Temperature Living Room [%d K]" {channel="dali:device:237dbae7:87bf0403-a45d-4037-b874-28f4ece30004:color-temperature-abs"}
|
||||
Switch LightsLivingRoom "Lights Living Room On/Off" {channel="dali:device:237dbae7:31da8dac-8e09-455a-bc7a-6ed70f740001:dimImmediately"}
|
||||
```
|
||||
|
|
|
@ -1,383 +0,0 @@
|
|||
---
|
||||
id: darksky
|
||||
label: Dark Sky
|
||||
title: Dark Sky - Bindings
|
||||
type: binding
|
||||
description: "This binding integrates the [Dark Sky API](https://darksky.net/dev/docs)."
|
||||
since: 3x
|
||||
logo: images/addons/darksky.png
|
||||
install: auto
|
||||
---
|
||||
|
||||
<!-- Attention authors: Do not edit directly. Please add your changes to the appropriate source repository -->
|
||||
|
||||
{% include base.html %}
|
||||
|
||||
# Dark Sky Binding
|
||||
|
||||
This binding integrates the [Dark Sky API](https://darksky.net/dev/docs).
|
||||
|
||||
::: tip Note
|
||||
The Dark Sky API service for existing customers will continue until the end of 2022.
|
||||
They do no longer accept new signups.
|
||||
:::
|
||||
|
||||
## Supported Things
|
||||
|
||||
There are two supported things.
|
||||
|
||||
### Dark Sky Account
|
||||
|
||||
First one is a bridge `weather-api` which represents the Dark Sky account.
|
||||
The bridge holds the mandatory API key to access the Dark Sky API and several global configuration parameters.
|
||||
If your system language is supported by the Dark Sky API it will be used as default language for the requested data.
|
||||
|
||||
### Current Weather And Forecast
|
||||
|
||||
The second thing `weather-and-forecast` supports the [current weather](https://darksky.net/dev/docs#forecast-request), hour-by-hour forecast for the next 48 hours and day-by-day forecast for the next week for a specific location.
|
||||
It requires coordinates of the location of your interest.
|
||||
You can add as many `weather-and-forecast` things for different locations to your setup as you like to observe.
|
||||
Severe [weather alerts](https://darksky.net/dev/docs/sources) are available in the USA, Canada, Iceland, European Union member nations, and Israel.
|
||||
|
||||
## Discovery
|
||||
|
||||
If a system location is set, a "Local Weather And Forecast" (`weather-and-forecast`) thing will be automatically discovered for this location.
|
||||
Once the system location will be changed, the background discovery updates the configuration of "Local Weather And Forecast" accordingly.
|
||||
|
||||
## Thing Configuration
|
||||
|
||||
### Dark Sky Account
|
||||
|
||||
| Parameter | Description |
|
||||
|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| apikey | API key to access the Dark Sky API. **Mandatory** |
|
||||
| refreshInterval | Specifies the refresh interval (in minutes). Optional, the default value is 60, the minimum value is 1. Note: when using a free API key (1000 calls/day), do not use an interval less than 2. |
|
||||
| language | Language to be used by the Dark Sky API. Optional, valid values are: `ar`, `az`, `be`, `bg`, `bn`, `bs`, `ca`, `cs`, `da`, `de`, `el`, `en`, `eo`, `es`, `et`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `is`, `it`, `ja`, `ka`, `ko`, `kn`, `kw`, `lv`, `mr`, `nb`, `nl`, `no`, `pa`, `pl`, `pt`, `ro`, `ru`, `sk`, `sl`, `sr`, `sv`, `ta`, `te`, `tet`, `tr`, `uk`, `x-pig-latin`, `zh`, `zh-tw`. |
|
||||
|
||||
### Current Weather And Forecast
|
||||
|
||||
| Parameter | Description |
|
||||
|----------------|-------------------------------------------------------------------------------------------------------------------------------|
|
||||
| location | Location of weather in geographical coordinates (latitude/longitude/altitude). **Mandatory** |
|
||||
| forecastHours | Number of hours for hourly forecast. Optional, the default value is 24 (min="0", max="48", step="1"). |
|
||||
| forecastDays | Number of days for daily forecast (including todays forecast). Optional, the default value is 8 (min="0", max="8", step="1"). |
|
||||
| numberOfAlerts | Number of alerts to be shown. Optional, the default value is 0 (min="0", step="1"). |
|
||||
|
||||
Once one of the parameters `forecastHours`, `forecastDays` or `numberOfAlerts` will be changed, the available channel groups on the thing will be created or removed accordingly.
|
||||
|
||||
## Channels
|
||||
|
||||
### Current Weather
|
||||
|
||||
| Channel Group ID | Channel ID | Item Type | Description |
|
||||
|------------------|----------------------|----------------------|-------------------------------------------------------------------------|
|
||||
| current | time-stamp | DateTime | Time of data observation. |
|
||||
| current | condition | String | Current weather condition. |
|
||||
| current | icon | Image | Icon representing the current weather condition. |
|
||||
| current | icon-id | String | Id of the icon representing the current weather condition. **Advanced** |
|
||||
| current | temperature | Number:Temperature | Current temperature. |
|
||||
| current | apparent-temperature | Number:Temperature | Current apparent temperature. |
|
||||
| current | pressure | Number:Pressure | Current barometric pressure. |
|
||||
| current | humidity | Number:Dimensionless | Current atmospheric humidity. |
|
||||
| current | wind-speed | Number:Speed | Current wind speed. |
|
||||
| current | wind-direction | Number:Angle | Current wind direction. |
|
||||
| current | gust-speed | Number:Speed | Current gust speed. **Advanced** |
|
||||
| current | cloudiness | Number:Dimensionless | Current cloudiness. |
|
||||
| current | visibility | Number:Length | Current visibility. |
|
||||
| current | rain | Number:Speed | Current rain intensity. |
|
||||
| current | snow | Number:Speed | Current snow intensity. |
|
||||
| current | precip-intensity | Number:Speed | Current precipitation intensity. |
|
||||
| current | precip-probability | Number:Dimensionless | Current precipitation probability. |
|
||||
| current | precip-type | String | Current precipitation type (Rain, Snow or Sleet). |
|
||||
| current | uvindex | Number | Current UV index. |
|
||||
| current | ozone | Number:ArealDensity | Current ozone. |
|
||||
|
||||
### Hourly Forecast
|
||||
|
||||
| Channel Group ID | Channel ID | Item Type | Description |
|
||||
|-------------------------------------------------------|----------------------|----------------------|------------------------------------------------------|
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | time-stamp | DateTime | Time of data forecasted. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | condition | String | Forecast weather condition. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | icon | Image | Icon representing the forecasted weather condition. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | icon-id | String | Id of the forecasted weather condition. **Advanced** |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | temperature | Number:Temperature | Forecasted temperature. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | apparent-temperature | Number:Temperature | Forecasted apparent temperature. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | pressure | Number:Pressure | Forecasted barometric pressure. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | humidity | Number:Dimensionless | Forecasted atmospheric humidity. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | wind-speed | Number:Speed | Forecasted wind speed. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | wind-direction | Number:Angle | Forecasted wind direction. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | gust-speed | Number:Speed | Forecasted gust speed. **Advanced** |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | cloudiness | Number:Dimensionless | Forecasted cloudiness. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | visibility | Number:Length | Forecasted visibility. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | rain | Number:Speed | Forecasted rain intensity. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | snow | Number:Speed | Forecasted snow intensity. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | precip-intensity | Number:Speed | Forecasted precipitation intensity. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | precip-probability | Number:Dimensionless | Forecasted precipitation probability. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | precip-type | String | Forecasted precipitation type (Rain, Snow or Sleet). |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | uvindex | Number | Forecasted UV index. |
|
||||
| forecastHours01, forecastHours02, ... forecastHours48 | ozone | Number:ArealDensity | Forecasted ozone. |
|
||||
|
||||
### Daily Forecast
|
||||
|
||||
| Channel Group ID | Channel ID | Item Type | Description |
|
||||
|-----------------------------------------------------------------|--------------------------|----------------------|------------------------------------------------------|
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | time-stamp | DateTime | Time of data forecasted. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | condition | String | Forecast weather condition. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | icon | Image | Icon representing the forecasted weather condition. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | icon-id | String | Id of the forecasted weather condition. **Advanced** |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | min-temperature | Number:Temperature | Minimum forecasted temperature of a day. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | max-temperature | Number:Temperature | Maximum forecasted temperature of a day. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | min-apparent-temperature | Number:Temperature | Minimum forecasted apparent temperature of a day. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | max-apparent-temperature | Number:Temperature | Maximum forecasted apparent temperature of a day. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | pressure | Number:Pressure | Forecasted barometric pressure. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | humidity | Number:Dimensionless | Forecasted atmospheric humidity. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | wind-speed | Number:Speed | Forecasted wind speed. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | wind-direction | Number:Angle | Forecasted wind direction. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | gust-speed | Number:Speed | Forecasted gust speed. **Advanced** |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | cloudiness | Number:Dimensionless | Forecasted cloudiness. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | visibility | Number:Length | Forecasted visibility. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | rain | Number:Speed | Forecasted rain intensity. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | snow | Number:Speed | Forecasted snow intensity. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | precip-intensity | Number:Speed | Forecasted precipitation intensity. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | precip-probability | Number:Dimensionless | Forecasted precipitation probability. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | precip-type | String | Forecasted precipitation type (Rain, Snow or Sleet). |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | uvindex | Number | Forecasted UV index. |
|
||||
| forecastToday, forecastTomorrow, forecastDay2, ... forecastDay7 | ozone | Number:ArealDensity | Forecasted ozone. |
|
||||
|
||||
### Severe Weather Alerts
|
||||
|
||||
| Channel Group ID | Channel ID | Item Type | Description |
|
||||
|-----------------------|-------------|-----------|----------------------------------------------------------------------------------------------|
|
||||
| alerts1, alerts2, ... | title | String | A brief description of the alert. |
|
||||
| alerts1, alerts2, ... | description | String | A detailed description of the alert. |
|
||||
| alerts1, alerts2, ... | severity | String | The severity of the alert. |
|
||||
| alerts1, alerts2, ... | issued | DateTime | The time at which the alert was issued. |
|
||||
| alerts1, alerts2, ... | expires | DateTime | The time at which the alert will expire. |
|
||||
| alerts1, alerts2, ... | uri | String | An external URI that one may refer to for detailed information about the alert. **Advanced** |
|
||||
|
||||
## Trigger Channels
|
||||
|
||||
### Current Weather
|
||||
|
||||
| Channel Group ID | Channel ID | Description |
|
||||
|------------------|---------------|-----------------------------------------|
|
||||
| current | sunrise-event | Event for sunrise. Can trigger `START`. |
|
||||
| current | sunset-event | Event for sunset. Can trigger `START`. |
|
||||
|
||||
### Configuration
|
||||
|
||||
**Offset:** For each trigger channel you can optionally configure an `offset` in minutes.
|
||||
The `offset` must be configured in the channel properties for the corresponding thing.
|
||||
The minimum allowed `offset` is -1440 and the maximum allowed `offset` is 1440.
|
||||
|
||||
If an `offset` is set, the event is moved forward or backward accordingly.
|
||||
|
||||
**Earliest / Latest:** For each trigger channel you can optionally configure the `earliest` and `latest` time of the day.
|
||||
|
||||
If sunset is at 17:40 but `earliest` is set to 18:00, the event is moved to 18:00.
|
||||
|
||||
OR
|
||||
|
||||
If sunset at is 22:10 but `latest` is set to 21:00, the event is moved to 21:00.
|
||||
|
||||
## Full Example
|
||||
|
||||
### Things
|
||||
|
||||
demo.things
|
||||
|
||||
```java
|
||||
Bridge darksky:weather-api:api "Dark Sky Account" [apikey="AAA", refreshInterval=30, language="de"] {
|
||||
Thing weather-and-forecast local "Local Weather And Forecast" [location="XXX,YYY", forecastHours=0, forecastDays=8, numberOfAlerts=1] {
|
||||
Channels:
|
||||
Type sunset-event : current#sunset-event [
|
||||
earliest="18:00",
|
||||
latest="21:00"
|
||||
]
|
||||
}
|
||||
Thing weather-and-forecast miami "Weather And Forecast In Miami" [location="25.782403,-80.264563", forecastHours=24, forecastDays=0]
|
||||
}
|
||||
```
|
||||
|
||||
### Items
|
||||
|
||||
demo.items
|
||||
|
||||
```java
|
||||
DateTime localLastMeasurement "Timestamp of last measurement [%1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS]" <time> { channel="darksky:weather-and-forecast:api:local:current#time-stamp" }
|
||||
String localCurrentCondition "Current condition [%s]" <sun_clouds> { channel="darksky:weather-and-forecast:api:local:current#condition" }
|
||||
Image localCurrentConditionIcon "Icon" { channel="darksky:weather-and-forecast:api:local:current#icon" }
|
||||
Number:Temperature localCurrentTemperature "Current temperature [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:local:current#temperature" }
|
||||
Number:Temperature localCurrentApparentTemperature "Current apparent temperature [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:local:current#apparent-temperature" }
|
||||
Number:Pressure localCurrentPressure "Current barometric pressure [%.1f %unit%]" <pressure> { channel="darksky:weather-and-forecast:api:local:current#pressure" }
|
||||
Number:Dimensionless localCurrentHumidity "Current atmospheric humidity [%d %unit%]" <humidity> { channel="darksky:weather-and-forecast:api:local:current#humidity" }
|
||||
Number:Speed localCurrentWindSpeed "Current wind speed [%.1f km/h]" <wind> { channel="darksky:weather-and-forecast:api:local:current#wind-speed" }
|
||||
Number:Angle localCurrentWindDirection "Current wind direction [%d %unit%]" <wind> { channel="darksky:weather-and-forecast:api:local:current#wind-direction" }
|
||||
Number:Dimensionless localCurrentCloudiness "Current cloudiness [%d %unit%]" <clouds> { channel="darksky:weather-and-forecast:api:local:current#cloudiness" }
|
||||
Number:Length localCurrentVisibility "Current visibility [%.1f %unit%]" <none> { channel="darksky:weather-and-forecast:api:local:current#visibility" }
|
||||
Number:Speed localCurrentRainIntensity "Current rain intensity [%.2f mm/h]" <rain> { channel="darksky:weather-and-forecast:api:local:current#rain" }
|
||||
Number:Speed localCurrentSnowIntensity "Current snow intensity [%.2f mm/h]" <snow> { channel="darksky:weather-and-forecast:api:local:current#snow" }
|
||||
Number:Speed localCurrentPrecipitationIntensity "Current precipitation intensity [%.2f mm/h]" <rain> { channel="darksky:weather-and-forecast:api:local:current#precip-intensity" }
|
||||
Number:Dimensionless localCurrentPrecipitationProbability "Current precipitation probability [%d %unit%]" <rain> { channel="darksky:weather-and-forecast:api:local:current#precip-probability" }
|
||||
String localCurrentPrecipitationType "Current precipitation type [%s]" <rain> { channel="darksky:weather-and-forecast:api:local:current#precip-type" }
|
||||
Number localCurrentUVIndex "Current UV index [%d]" <none> { channel="darksky:weather-and-forecast:api:local:current#uvindex" }
|
||||
Number:ArealDensity localCurrentOzone "Current ozone [%.1f %unit%]" <none> { channel="darksky:weather-and-forecast:api:local:current#ozone" }
|
||||
DateTime localSunrise "Sunrise [%1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS]" <sun> { channel="darksky:weather-and-forecast:api:local:current#sunrise" }
|
||||
DateTime localSunset "Sunset [%1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS]" <sun> { channel="darksky:weather-and-forecast:api:local:current#sunset" }
|
||||
|
||||
DateTime localDailyForecastTodayTimestamp "Timestamp of forecast [%1$tY-%1$tm-%1$td]" <time> { channel="darksky:weather-and-forecast:api:local:forecastToday#time-stamp" }
|
||||
String localDailyForecastTodayCondition "Condition for today [%s]" <sun_clouds> { channel="darksky:weather-and-forecast:api:local:forecastToday#condition" }
|
||||
Image localDailyForecastTodayConditionIcon "Icon" { channel="darksky:weather-and-forecast:api:local:forecastToday#icon" }
|
||||
Number:Temperature localDailyForecastTodayMinTemperature "Minimum temperature for today [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:local:forecastToday#min-temperature" }
|
||||
Number:Temperature localDailyForecastTodayMaxTemperature "Maximum temperature for today [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:local:forecastToday#max-temperature" }
|
||||
Number:Temperature localDailyForecastTodayMinApparentTemperature "Minimum apparent temperature for today [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:local:forecastToday#min-apparent-temperature" }
|
||||
Number:Temperature localDailyForecastTodayMaxApparentTemperature "Maximum apparent temperature for today [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:local:forecastToday#max-apparent-temperature" }
|
||||
Number:Pressure localDailyForecastTodayPressure "Barometric pressure for today [%.1f %unit%]" <pressure> { channel="darksky:weather-and-forecast:api:local:forecastToday#pressure" }
|
||||
Number:Dimensionless localDailyForecastTodayHumidity "Atmospheric humidity for today [%d %unit%]" <humidity> { channel="darksky:weather-and-forecast:api:local:forecastToday#humidity" }
|
||||
Number:Speed localDailyForecastTodayWindSpeed "Wind speed for today [%.1f km/h]" <wind> { channel="darksky:weather-and-forecast:api:local:forecastToday#wind-speed" }
|
||||
Number:Angle localDailyForecastTodayWindDirection "Wind direction for today [%d %unit%]" <wind> { channel="darksky:weather-and-forecast:api:local:forecastToday#wind-direction" }
|
||||
Number:Dimensionless localDailyForecastTodayCloudiness "Cloudiness for today [%d %unit%]" <clouds> { channel="darksky:weather-and-forecast:api:local:forecastToday#cloudiness" }
|
||||
Number:Speed localDailyForecastTodayRainIntensity "Rain intensity for today [%.2f mm/h]" <rain> { channel="darksky:weather-and-forecast:api:local:forecastToday#rain" }
|
||||
Number:Speed localDailyForecastTodaySnowIntensity "Snow intensity for today [%.2f mm/h]" <snow> { channel="darksky:weather-and-forecast:api:local:forecastToday#snow" }
|
||||
|
||||
DateTime localDailyForecastTomorrowTimestamp "Timestamp of forecast [%1$tY-%1$tm-%1$td]" <time> { channel="darksky:weather-and-forecast:api:local:forecastTomorrow#time-stamp" }
|
||||
String localDailyForecastTomorrowCondition "Condition for tomorrow [%s]" <sun_clouds> { channel="darksky:weather-and-forecast:api:local:forecastTomorrow#condition" }
|
||||
Image localDailyForecastTomorrowConditionIcon "Icon" { channel="darksky:weather-and-forecast:api:local:forecastTomorrow#icon" }
|
||||
Number:Temperature localDailyForecastTomorrowMinTemperature "Minimum temperature for tomorrow [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:local:forecastTomorrow#min-temperature" }
|
||||
Number:Temperature localDailyForecastTomorrowMaxTemperature "Maximum temperature for tomorrow [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:local:forecastTomorrow#max-temperature" }
|
||||
...
|
||||
|
||||
DateTime localDailyForecastDay2Timestamp "Timestamp of forecast [%1$tY-%1$tm-%1$td]" <time> { channel="darksky:weather-and-forecast:api:local:forecastDay2#time-stamp" }
|
||||
String localDailyForecastDay2Condition "Condition in 2 days [%s]" <sun_clouds> { channel="darksky:weather-and-forecast:api:local:forecastDay2#condition" }
|
||||
Image localDailyForecastDay2ConditionIcon "Icon" { channel="darksky:weather-and-forecast:api:local:forecastDay2#icon" }
|
||||
Number:Temperature localDailyForecastDay2MinTemperature "Minimum temperature in 2 days [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:local:forecastDay2#min-temperature" }
|
||||
Number:Temperature localDailyForecastDay2MaxTemperature "Maximum temperature in 2 days [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:local:forecastDay2#max-temperature" }
|
||||
...
|
||||
|
||||
String localAlert1Title "Weather warning! [%s]" <error> { channel="darksky:weather-and-forecast:api:local:alerts1#title" }
|
||||
String localAlert1Description "Description [%s]" <error> { channel="darksky:weather-and-forecast:api:local:alerts1#description" }
|
||||
String localAlert1Severity "Severity [%s]" <error> { channel="darksky:weather-and-forecast:api:local:alerts1#severity" }
|
||||
DateTime localAlert1Issued "Issued [%1$tY-%1$tm-%1$tdT%1$tH:%1$tM]" <time> { channel="darksky:weather-and-forecast:api:local:alerts1#issued" }
|
||||
DateTime localAlert1Expires "Expires [%1$tY-%1$tm-%1$tdT%1$tH:%1$tM]" <time> { channel="darksky:weather-and-forecast:api:local:alerts1#expires" }
|
||||
|
||||
String miamiCurrentCondition "Current condition in Miami [%s]" <sun_clouds> { channel="darksky:weather-and-forecast:api:miami:current#condition" }
|
||||
Image miamiCurrentConditionIcon "Icon" { channel="darksky:weather-and-forecast:api:miami:current#icon" }
|
||||
Number:Temperature miamiCurrentTemperature "Current temperature in Miami [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:miami:current#temperature" }
|
||||
...
|
||||
|
||||
String miamiHourlyForecast01Condition "Condition in Miami for the next hour [%s]" <sun_clouds> { channel="darksky:weather-and-forecast:api:miami:forecastHours01#condition" }
|
||||
Image miamiHourlyForecast01ConditionIcon "Icon" { channel="darksky:weather-and-forecast:api:miami:forecastHours01#icon" }
|
||||
Number:Temperature miamiHourlyForecast01Temperature "Temperature in Miami for the next hour [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:miami:forecastHours01#temperature" }
|
||||
...
|
||||
String miamiHourlyForecast02Condition "Condition in Miami for hours 1 to 2 [%s]" <sun_clouds> { channel="darksky:weather-and-forecast:api:miami:forecastHours02#condition" }
|
||||
Image miamiHourlyForecast02ConditionIcon "Icon" { channel="darksky:weather-and-forecast:api:miami:forecastHours02#icon" }
|
||||
Number:Temperature miamiHourlyForecast02Temperature "Temperature in Miami for hours 1 to 2 [%.1f %unit%]" <temperature> { channel="darksky:weather-and-forecast:api:miami:forecastHours02#temperature" }
|
||||
...
|
||||
```
|
||||
|
||||
### Sitemap
|
||||
|
||||
demo.sitemap
|
||||
|
||||
```perl
|
||||
sitemap demo label="Dark Sky" {
|
||||
Frame label="Local Weather Station" {
|
||||
Text item=localStationId
|
||||
Text item=localStationName
|
||||
Mapview item=localStationLocation
|
||||
}
|
||||
Frame label="Current local weather" {
|
||||
Text item=localLastMeasurement
|
||||
Text item=localCurrentCondition
|
||||
Image item=localCurrentConditionIcon
|
||||
Text item=localCurrentTemperature
|
||||
Text item=localCurrentApparentTemperature
|
||||
Text item=localCurrentPressure
|
||||
Text item=localCurrentHumidity
|
||||
Text item=localCurrentWindSpeed
|
||||
Text item=localCurrentWindDirection
|
||||
Text item=localCurrentCloudiness
|
||||
Text item=localCurrentVisibility
|
||||
Text item=localCurrentRainIntensity
|
||||
Text item=localCurrentSnowIntensity
|
||||
Text item=localCurrentPrecipitationIntensity
|
||||
Text item=localCurrentPrecipitationProbability
|
||||
Text item=localCurrentPrecipitationType
|
||||
Text item=localCurrentUVIndex
|
||||
Text item=localCurrentOzone
|
||||
Text item=localSunrise
|
||||
Text item=localSunset
|
||||
}
|
||||
Frame label="Local forecast for today" {
|
||||
Text item=localDailyForecastTodayTimestamp
|
||||
Text item=localDailyForecastTodayCondition
|
||||
Image item=localDailyForecastTodayConditionIcon
|
||||
Text item=localDailyForecastTodayMinTemperature
|
||||
Text item=localDailyForecastTodayMaxTemperature
|
||||
Text item=localDailyForecastTodayMinApparentTemperature
|
||||
Text item=localDailyForecastTodayMaxApparentTemperature
|
||||
Text item=localDailyForecastTodayPressure
|
||||
Text item=localDailyForecastTodayHumidity
|
||||
Text item=localDailyForecastTodayWindSpeed
|
||||
Text item=localDailyForecastTodayWindDirection
|
||||
Text item=localDailyForecastTodayCloudiness
|
||||
Text item=localDailyForecastTodayRainIntensity
|
||||
Text item=localDailyForecastTodaySnowIntensity
|
||||
}
|
||||
Frame label="Local forecast for tomorrow" {
|
||||
Text item=localDailyForecastTomorrowTimestamp
|
||||
Text item=localDailyForecastTomorrowCondition
|
||||
Image item=localDailyForecastTomorrowConditionIcon
|
||||
Text item=localDailyForecastTomorrowMinTemperature
|
||||
Text item=localDailyForecastTomorrowMaxTemperature
|
||||
...
|
||||
}
|
||||
Frame label="Local forecast in 2 days" {
|
||||
Text item=localDailyForecastDay2Timestamp
|
||||
Text item=localDailyForecastDay2Condition
|
||||
Image item=localDailyForecastDay2ConditionIcon
|
||||
Text item=localDailyForecastDay2MinTemperature
|
||||
Text item=localDailyForecastDay2MaxTemperature
|
||||
...
|
||||
}
|
||||
Frame label="Severe weather alerts" {
|
||||
Text item=localAlert1Title
|
||||
Text item=localAlert1Description
|
||||
Text item=localAlert1Severity
|
||||
Text item=localAlert1Issued
|
||||
Text item=localAlert1Expires
|
||||
}
|
||||
Frame label="Current weather in Miami" {
|
||||
Text item=miamiCurrentCondition
|
||||
Image item=miamiCurrentConditionIcon
|
||||
Text item=miamiCurrentTemperature
|
||||
...
|
||||
}
|
||||
Frame label="Forecast in Miami for the next hour" {
|
||||
Text item=miamiHourlyForecast01Condition
|
||||
Image item=miamiHourlyForecast01ConditionIcon
|
||||
Text item=miamiHourlyForecast01Temperature
|
||||
...
|
||||
}
|
||||
Frame label="Forecast weather in Miami for the hours 1 to 2" {
|
||||
Text item=miamiHourlyForecast02Condition
|
||||
Image item=miamiHourlyForecast02ConditionIcon
|
||||
Text item=miamiHourlyForecast02Temperature
|
||||
...
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Events
|
||||
|
||||
```php
|
||||
rule "example trigger rule"
|
||||
when
|
||||
Channel "darksky:weather-and-forecast:api:local:current#sunrise-event" triggered START or
|
||||
Channel "darksky:weather-and-forecast:api:local:current#sunset-event" triggered START
|
||||
then
|
||||
...
|
||||
end
|
||||
```
|
||||
|
||||
[](https://darksky.net/poweredby/)
|
|
@ -185,7 +185,7 @@ The devices support some of the following channels:
|
|||
| color | Color | This channel supports full color control with hue, saturation and brightness values. | 0200, 0210, group |
|
||||
| brightness | Dimmer | This channel supports adjusting the brightness value. Note that this is not available, if the color channel is supported. | 0100, 0110, 0220, group |
|
||||
| color_temperature | Dimmer | This channel supports adjusting the color temperature from cold (0%) to warm (100%). | 0210, 0220, group |
|
||||
| color_temperature_abs | Number | This channel supports adjusting the color temperature in Kelvin. **Advanced** | 0210, 0220, group |
|
||||
| color_temperature_abs | Number:Temperature | This channel supports adjusting the color temperature in Kelvin. **Advanced** | 0210, 0220, group |
|
||||
| alert | String | This channel supports displaying alerts by flashing the bulb either once or multiple times. Valid values are: NONE, SELECT and LSELECT. | 0000, 0100, 0200, 0210, 0220, group |
|
||||
| effect | Switch | This channel supports color looping. | 0200, 0210, 0220 |
|
||||
| dimmer_switch | Number | This channel shows which button was last pressed on the dimmer switch. | 0820 |
|
||||
|
|
|
@ -154,19 +154,19 @@ This discovers all connected panels with their IDs.
|
|||
|
||||
The controller bridge has the following channels:
|
||||
|
||||
| Channel | Item Type | Description | Read Only |
|
||||
|---------------------|-----------|-----------------------------------------------------------------------------------------------------------|-----------|
|
||||
| color | Color | Color, power and brightness of all light panels | No |
|
||||
| colorTemperature | Dimmer | Color temperature (in percent) of all light panels | No |
|
||||
| colorTemperatureAbs | Number | Color temperature (in Kelvin, 1200 to 6500) of all light panels | No |
|
||||
| colorMode | String | Color mode of the light panels | Yes |
|
||||
| effect | String | Selected effect of the light panels | No |
|
||||
| layout | Image | Shows the layout of your panels with IDs. | Yes |
|
||||
| rhythmState | Switch | Connection state of the rhythm module | Yes |
|
||||
| rhythmActive | Switch | Activity state of the rhythm module | Yes |
|
||||
| rhythmMode | Number | Sound source for the rhythm module. 0=Microphone, 1=Aux cable | No |
|
||||
| state | Image | Shows the current state of your panels with colors. | Yes |
|
||||
| swipe | Trigger | [Canvas / Shapes Only] Detects Swipes over the panel.LEFT, RIGHT, UP, DOWN events are supported. | Yes |
|
||||
| Channel | Item Type | Description | Read Only |
|
||||
|---------------------|--------------------|-----------------------------------------------------------------------------------------------------------|-----------|
|
||||
| color | Color | Color, power and brightness of all light panels | No |
|
||||
| colorTemperature | Dimmer | Color temperature (in percent) of all light panels | No |
|
||||
| colorTemperatureAbs | Number:Temperature | Color temperature (in Kelvin, 1200 to 6500) of all light panels | No |
|
||||
| colorMode | String | Color mode of the light panels | Yes |
|
||||
| effect | String | Selected effect of the light panels | No |
|
||||
| layout | Image | Shows the layout of your panels with IDs. | Yes |
|
||||
| rhythmState | Switch | Connection state of the rhythm module | Yes |
|
||||
| rhythmActive | Switch | Activity state of the rhythm module | Yes |
|
||||
| rhythmMode | Number | Sound source for the rhythm module. 0=Microphone, 1=Aux cable | No |
|
||||
| state | Image | Shows the current state of your panels with colors. | Yes |
|
||||
| swipe | Trigger | [Canvas / Shapes Only] Detects Swipes over the panel.LEFT, RIGHT, UP, DOWN events are supported. | Yes |
|
||||
|
||||
A lightpanel thing has the following channels:
|
||||
|
||||
|
@ -250,7 +250,7 @@ Dimmer NanoleafBrightness "Brightness [%.0f]" { channel="nanoleaf:controller:MyL
|
|||
String NanoleafHue "Hue [%s]"
|
||||
String NanoleafSaturation "Saturation [%s]"
|
||||
Dimmer NanoleafColorTemp "Color temperature [%.0f]" { channel="nanoleaf:controller:MyLightPanels:colorTemperature" }
|
||||
Number NanoleafColorTempAbs "Color temperature [%.000f]" { channel="nanoleaf:controller:MyLightPanels:colorTemperatureAbs" }
|
||||
Number:Temperature NanoleafColorTempAbs "Color temperature [%d K]" { channel="nanoleaf:controller:MyLightPanels:colorTemperatureAbs" }
|
||||
String NanoleafColorMode "Color mode [%s]" { channel="nanoleaf:controller:MyLightPanels:colorMode" }
|
||||
String NanoleafEffect "Effect" { channel="nanoleaf:controller:MyLightPanels:effect" }
|
||||
Switch NanoleafRhythmState "Rhythm connected [MAP(nanoleaf.map):%s]" { channel="nanoleaf:controller:MyLightPanels:rhythmState" }
|
||||
|
|
|
@ -670,7 +670,7 @@ Support for this is planned for the future release of openHAB HomeKit binding.
|
|||
| | | TamperedStatus | Switch, Contact | Tampered status |
|
||||
| | | BatteryLowStatus | Switch, Contact, Number | Battery status |
|
||||
| LightSensor | | | | Light sensor |
|
||||
| | LightLevel | | Number | Light level in lux |
|
||||
| | LightLevel | | Number | Light level in lux. supported configuration: minValue, maxValue. |
|
||||
| | | Name | String | Name of the sensor |
|
||||
| | | ActiveStatus | Switch, Contact | Working status |
|
||||
| | | FaultStatus | Switch, Contact | Fault status |
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<thing:thing-descriptions bindingId="darksky"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
|
||||
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
|
||||
|
||||
<!-- Dark Sky Binding -->
|
||||
<bridge-type id="weather-api">
|
||||
<label>Dark Sky Account</label>
|
||||
<description>Provides access to the Dark Sky API.</description>
|
||||
|
||||
<representation-property>apikey</representation-property>
|
||||
|
||||
<config-description-ref uri="bridge-type:darksky:weather-api"/>
|
||||
</bridge-type>
|
||||
|
||||
</thing:thing-descriptions>
|
|
@ -1,513 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<thing:thing-descriptions bindingId="darksky"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
|
||||
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
|
||||
|
||||
<!-- Channel groups for Dark Sky Binding -->
|
||||
<channel-group-type id="current">
|
||||
<label>Current Weather</label>
|
||||
<description>This is the current weather.</description>
|
||||
<channels>
|
||||
<channel id="time-stamp" typeId="time-stamp"/>
|
||||
<channel id="condition" typeId="condition"/>
|
||||
<channel id="icon" typeId="condition-icon"/>
|
||||
<channel id="icon-id" typeId="condition-icon-id"/>
|
||||
<channel id="temperature" typeId="system.outdoor-temperature"/>
|
||||
<channel id="apparent-temperature" typeId="apparent-temperature"/>
|
||||
<channel id="pressure" typeId="system.barometric-pressure"/>
|
||||
<channel id="humidity" typeId="system.atmospheric-humidity"/>
|
||||
<channel id="wind-speed" typeId="system.wind-speed"/>
|
||||
<channel id="wind-direction" typeId="system.wind-direction"/>
|
||||
<channel id="gust-speed" typeId="gust-speed"/>
|
||||
<channel id="cloudiness" typeId="cloudiness"/>
|
||||
<channel id="visibility" typeId="visibility"/>
|
||||
<channel id="rain" typeId="rain"/>
|
||||
<channel id="snow" typeId="snow"/>
|
||||
<channel id="precip-intensity" typeId="precip-intensity"/>
|
||||
<channel id="precip-probability" typeId="precip-probability"/>
|
||||
<channel id="precip-type" typeId="precip-type"/>
|
||||
<channel id="uvindex" typeId="uvindex"/>
|
||||
<channel id="ozone" typeId="ozone"/>
|
||||
<channel id="sunrise" typeId="sunrise"/>
|
||||
<channel id="sunrise-event" typeId="sunrise-event"/>
|
||||
<channel id="sunset" typeId="sunset"/>
|
||||
<channel id="sunset-event" typeId="sunset-event"/>
|
||||
</channels>
|
||||
</channel-group-type>
|
||||
|
||||
<channel-group-type id="hourlyForecast">
|
||||
<label>3 Hour Forecast</label>
|
||||
<description>This is the 5 day / 3 hour weather forecast.</description>
|
||||
<channels>
|
||||
<channel id="time-stamp" typeId="hourly-forecast-time-stamp"/>
|
||||
<channel id="condition" typeId="forecasted-condition"/>
|
||||
<channel id="icon" typeId="condition-icon"/>
|
||||
<channel id="icon-id" typeId="condition-icon-id"/>
|
||||
<channel id="temperature" typeId="forecasted-outdoor-temperature"/>
|
||||
<channel id="apparent-temperature" typeId="forecasted-apparent-temperature"/>
|
||||
<channel id="pressure" typeId="forecasted-barometric-pressure"/>
|
||||
<channel id="humidity" typeId="forecasted-atmospheric-humidity"/>
|
||||
<channel id="wind-speed" typeId="forecasted-wind-speed"/>
|
||||
<channel id="wind-direction" typeId="forecasted-wind-direction"/>
|
||||
<channel id="gust-speed" typeId="forecasted-gust-speed"/>
|
||||
<channel id="cloudiness" typeId="forecasted-cloudiness"/>
|
||||
<channel id="visibility" typeId="forecasted-visibility"/>
|
||||
<channel id="rain" typeId="forecasted-rain"/>
|
||||
<channel id="snow" typeId="forecasted-snow"/>
|
||||
<channel id="precip-intensity" typeId="forecasted-precip-intensity"/>
|
||||
<channel id="precip-probability" typeId="forecasted-precip-probability"/>
|
||||
<channel id="precip-type" typeId="forecasted-precip-type"/>
|
||||
<channel id="uvindex" typeId="forecasted-uvindex"/>
|
||||
<channel id="ozone" typeId="forecasted-ozone"/>
|
||||
</channels>
|
||||
</channel-group-type>
|
||||
|
||||
<channel-group-type id="dailyForecast">
|
||||
<label>Daily Forecast</label>
|
||||
<description>This is the 16 day / daily weather forecast.</description>
|
||||
<channels>
|
||||
<channel id="time-stamp" typeId="daily-forecast-time-stamp"/>
|
||||
<channel id="condition" typeId="forecasted-condition"/>
|
||||
<channel id="icon" typeId="condition-icon"/>
|
||||
<channel id="icon-id" typeId="condition-icon-id"/>
|
||||
<channel id="min-temperature" typeId="forecasted-min-outdoor-temperature"/>
|
||||
<channel id="max-temperature" typeId="forecasted-max-outdoor-temperature"/>
|
||||
<channel id="min-apparent-temperature" typeId="forecasted-min-apparent-temperature"/>
|
||||
<channel id="max-apparent-temperature" typeId="forecasted-max-apparent-temperature"/>
|
||||
<channel id="pressure" typeId="forecasted-barometric-pressure"/>
|
||||
<channel id="humidity" typeId="forecasted-atmospheric-humidity"/>
|
||||
<channel id="wind-speed" typeId="forecasted-wind-speed"/>
|
||||
<channel id="wind-direction" typeId="forecasted-wind-direction"/>
|
||||
<channel id="gust-speed" typeId="forecasted-gust-speed"/>
|
||||
<channel id="cloudiness" typeId="forecasted-cloudiness"/>
|
||||
<channel id="visibility" typeId="forecasted-visibility"/>
|
||||
<channel id="rain" typeId="forecasted-rain"/>
|
||||
<channel id="snow" typeId="forecasted-snow"/>
|
||||
<channel id="precip-intensity" typeId="forecasted-precip-intensity"/>
|
||||
<channel id="precip-probability" typeId="forecasted-precip-probability"/>
|
||||
<channel id="precip-type" typeId="forecasted-precip-type"/>
|
||||
<channel id="uvindex" typeId="forecasted-uvindex"/>
|
||||
<channel id="ozone" typeId="forecasted-ozone"/>
|
||||
<channel id="sunrise" typeId="forecasted-sunrise"/>
|
||||
<channel id="sunset" typeId="forecasted-sunset"/>
|
||||
</channels>
|
||||
</channel-group-type>
|
||||
|
||||
<channel-group-type id="alerts">
|
||||
<label>Weather Warnings</label>
|
||||
<description>Weather warnings issued for the requested location.</description>
|
||||
<channels>
|
||||
<channel id="title" typeId="alert-title"/>
|
||||
<channel id="description" typeId="alert-description"/>
|
||||
<channel id="severity" typeId="alert-severity"/>
|
||||
<channel id="issued" typeId="alert-issued"/>
|
||||
<channel id="expires" typeId="alert-expires"/>
|
||||
<channel id="uri" typeId="alert-uri"/>
|
||||
</channels>
|
||||
</channel-group-type>
|
||||
|
||||
<!-- Channels for Dark Sky Binding -->
|
||||
<channel-type id="time-stamp">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Observation Time</label>
|
||||
<description>Time of data observation.</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="hourly-forecast-time-stamp">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Forecast Time</label>
|
||||
<description>Time of data forecasted.</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="daily-forecast-time-stamp">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Forecast Date</label>
|
||||
<description>Date of data forecasted.</description>
|
||||
<category>Time</category>
|
||||
<state readOnly="true" pattern="%1$tY-%1$tm-%1$td"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="condition">
|
||||
<item-type>String</item-type>
|
||||
<label>Weather Condition</label>
|
||||
<description>Current weather condition.</description>
|
||||
<category>Sun_Clouds</category>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-condition">
|
||||
<item-type>String</item-type>
|
||||
<label>Forecasted Weather Condition</label>
|
||||
<description>Forecasted weather condition.</description>
|
||||
<category>Sun_Clouds</category>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="condition-icon">
|
||||
<item-type>Image</item-type>
|
||||
<label>Icon</label>
|
||||
<description>Icon representing the weather condition.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="condition-icon-id" advanced="true">
|
||||
<item-type>String</item-type>
|
||||
<label>Icon Id</label>
|
||||
<description>Id of the icon to create the URL.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-outdoor-temperature">
|
||||
<item-type>Number:Temperature</item-type>
|
||||
<label>Forecasted Temperature</label>
|
||||
<description>Forecasted outdoor temperature.</description>
|
||||
<category>Temperature</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-min-outdoor-temperature">
|
||||
<item-type>Number:Temperature</item-type>
|
||||
<label>Minimum Temperature</label>
|
||||
<description>Minimum forecasted outdoor temperature.</description>
|
||||
<category>Temperature</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-max-outdoor-temperature">
|
||||
<item-type>Number:Temperature</item-type>
|
||||
<label>Maximum Temperature</label>
|
||||
<description>Maximum forecasted outdoor temperature.</description>
|
||||
<category>Temperature</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="apparent-temperature">
|
||||
<item-type>Number:Temperature</item-type>
|
||||
<label>Apparent Temperature</label>
|
||||
<description>Current apparent temperature.</description>
|
||||
<category>Temperature</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-apparent-temperature">
|
||||
<item-type>Number:Temperature</item-type>
|
||||
<label>Forecasted Apparent Temperature</label>
|
||||
<description>Forecasted apparent temperature.</description>
|
||||
<category>Temperature</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-min-apparent-temperature">
|
||||
<item-type>Number:Temperature</item-type>
|
||||
<label>Minimum Apparent Temperature</label>
|
||||
<description>Minimum forecasted apparent temperature.</description>
|
||||
<category>Temperature</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-max-apparent-temperature">
|
||||
<item-type>Number:Temperature</item-type>
|
||||
<label>Maximum Apparent Temperature</label>
|
||||
<description>Maximum forecasted apparent temperature.</description>
|
||||
<category>Temperature</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-barometric-pressure">
|
||||
<item-type>Number:Pressure</item-type>
|
||||
<label>Forecasted Pressure</label>
|
||||
<description>Forecasted barometric pressure.</description>
|
||||
<category>Pressure</category>
|
||||
<state readOnly="true" pattern="%.3f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-atmospheric-humidity">
|
||||
<item-type>Number:Dimensionless</item-type>
|
||||
<label>Forecasted Humidity</label>
|
||||
<description>Forecasted atmospheric relative humidity.</description>
|
||||
<category>Humidity</category>
|
||||
<state readOnly="true" pattern="%.0f %%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-wind-speed">
|
||||
<item-type>Number:Speed</item-type>
|
||||
<label>Forecasted Wind Speed</label>
|
||||
<description>Forecasted wind speed.</description>
|
||||
<category>Wind</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-wind-direction">
|
||||
<item-type>Number:Angle</item-type>
|
||||
<label>Forecasted Wind Direction</label>
|
||||
<description>Forecasted wind direction expressed as an angle.</description>
|
||||
<category>Wind</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="gust-speed" advanced="true">
|
||||
<item-type>Number:Speed</item-type>
|
||||
<label>Gust Speed</label>
|
||||
<description>Current gust speed.</description>
|
||||
<category>Wind</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-gust-speed" advanced="true">
|
||||
<item-type>Number:Speed</item-type>
|
||||
<label>Forecasted Gust Speed</label>
|
||||
<description>Forecasted gust speed.</description>
|
||||
<category>Wind</category>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="cloudiness">
|
||||
<item-type>Number:Dimensionless</item-type>
|
||||
<label>Cloudiness</label>
|
||||
<description>Current cloudiness.</description>
|
||||
<category>Clouds</category>
|
||||
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-cloudiness">
|
||||
<item-type>Number:Dimensionless</item-type>
|
||||
<label>Forecasted Cloudiness</label>
|
||||
<description>Forecasted cloudiness.</description>
|
||||
<category>Clouds</category>
|
||||
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="visibility">
|
||||
<item-type>Number:Length</item-type>
|
||||
<label>Visibility</label>
|
||||
<description>Current visibility.</description>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-visibility">
|
||||
<item-type>Number:Length</item-type>
|
||||
<label>Forecasted Visibility</label>
|
||||
<description>Forecasted visibility.</description>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="rain">
|
||||
<item-type>Number:Speed</item-type>
|
||||
<label>Rain</label>
|
||||
<description>Current rain intensity.</description>
|
||||
<category>Rain</category>
|
||||
<state readOnly="true" pattern="%.2f mm/h"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-rain">
|
||||
<item-type>Number:Speed</item-type>
|
||||
<label>Forecasted Rain Intensity</label>
|
||||
<description>Forecasted rain intensity.</description>
|
||||
<category>Rain</category>
|
||||
<state readOnly="true" pattern="%.2f mm/h"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="snow">
|
||||
<item-type>Number:Speed</item-type>
|
||||
<label>Snow Intensity</label>
|
||||
<description>Current snow intensity.</description>
|
||||
<category>Snow</category>
|
||||
<state readOnly="true" pattern="%.2f mm/h"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-snow">
|
||||
<item-type>Number:Speed</item-type>
|
||||
<label>Forecasted Snow Intensity</label>
|
||||
<description>Forecasted snow intensity.</description>
|
||||
<category>Snow</category>
|
||||
<state readOnly="true" pattern="%.2f mm/h"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="precip-intensity">
|
||||
<item-type>Number:Speed</item-type>
|
||||
<label>Precipitation Intensity</label>
|
||||
<description>Current precipitation intensity.</description>
|
||||
<state readOnly="true" pattern="%.2f mm/h"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-precip-intensity">
|
||||
<item-type>Number:Speed</item-type>
|
||||
<label>Forecasted Precipitation Intensity</label>
|
||||
<description>Forecasted precipitation intensity.</description>
|
||||
<state readOnly="true" pattern="%.2f mm/h"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="precip-probability">
|
||||
<item-type>Number:Dimensionless</item-type>
|
||||
<label>Precipitation Probability</label>
|
||||
<description>Current precipitation probability.</description>
|
||||
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-precip-probability">
|
||||
<item-type>Number:Dimensionless</item-type>
|
||||
<label>Forecasted Precipitation Probability</label>
|
||||
<description>Forecasted precipitation probability.</description>
|
||||
<state readOnly="true" min="0" max="100" pattern="%d %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="precip-type">
|
||||
<item-type>String</item-type>
|
||||
<label>Precipitation Type</label>
|
||||
<description>Current precipitation type.</description>
|
||||
<state readOnly="true" pattern="%s">
|
||||
<options>
|
||||
<option value="rain">Rain</option>
|
||||
<option value="snow">Snow</option>
|
||||
<option value="sleet">Sleet</option>
|
||||
</options>
|
||||
</state>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-precip-type">
|
||||
<item-type>String</item-type>
|
||||
<label>Forecasted Precipitation Type</label>
|
||||
<description>Forecasted precipitation type.</description>
|
||||
<state readOnly="true" pattern="%s">
|
||||
<options>
|
||||
<option value="rain">Rain</option>
|
||||
<option value="snow">Snow</option>
|
||||
<option value="sleet">Sleet</option>
|
||||
</options>
|
||||
</state>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="uvindex">
|
||||
<item-type>Number</item-type>
|
||||
<label>UV Index</label>
|
||||
<description>Current UV index.</description>
|
||||
<state readOnly="true" pattern="%d"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-uvindex">
|
||||
<item-type>Number</item-type>
|
||||
<label>Forecasted UV Index</label>
|
||||
<description>Forecasted UV index.</description>
|
||||
<state readOnly="true" pattern="%d"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="ozone">
|
||||
<item-type>Number:ArealDensity</item-type>
|
||||
<label>Ozone</label>
|
||||
<description>Current ozone.</description>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-ozone">
|
||||
<item-type>Number:ArealDensity</item-type>
|
||||
<label>Forecasted Ozone</label>
|
||||
<description>Forecasted ozone.</description>
|
||||
<state readOnly="true" pattern="%.1f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="sunrise">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Sunrise</label>
|
||||
<description>Sunrise of the current day.</description>
|
||||
<category>Sun</category>
|
||||
<state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-sunrise">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Forecasted Sunrise</label>
|
||||
<description>Forecasted sunrise of the day.</description>
|
||||
<category>Sun</category>
|
||||
<state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="sunrise-event">
|
||||
<kind>trigger</kind>
|
||||
<label>Sunrise Event</label>
|
||||
<description>Event for sunrise.</description>
|
||||
<category>Sun</category>
|
||||
<event>
|
||||
<options>
|
||||
<option value="START">START</option>
|
||||
</options>
|
||||
</event>
|
||||
<config-description-ref uri="channel-type:darksky:sunrise-sunset-event"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="sunset">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Sunset</label>
|
||||
<description>Sunset of the current day.</description>
|
||||
<category>Sun</category>
|
||||
<state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="forecasted-sunset">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Forecasted Sunset</label>
|
||||
<description>Forecasted sunset of the day.</description>
|
||||
<category>Sun</category>
|
||||
<state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="sunset-event">
|
||||
<kind>trigger</kind>
|
||||
<label>Sunset Event</label>
|
||||
<description>Event for sunset.</description>
|
||||
<category>Sun</category>
|
||||
<event>
|
||||
<options>
|
||||
<option value="START">START</option>
|
||||
</options>
|
||||
</event>
|
||||
<config-description-ref uri="channel-type:darksky:sunrise-sunset-event"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="alert-title">
|
||||
<item-type>String</item-type>
|
||||
<label>Title</label>
|
||||
<description>A brief description of the alert.</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-severity">
|
||||
<item-type>String</item-type>
|
||||
<label>Severity</label>
|
||||
<description>The severity of the alert.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="alert-issued">
|
||||
<item-type>DateTime</item-type>
|
||||
<label>Issued</label>
|
||||
<description>The time at which the alert was issued.</description>
|
||||
<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>Expires</label>
|
||||
<description>The time at which the alert will expire.</description>
|
||||
<state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="alert-uri" advanced="true">
|
||||
<item-type>String</item-type>
|
||||
<label>URI</label>
|
||||
<description>An external URI that one may refer to for detailed information about the alert.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
</thing:thing-descriptions>
|
|
@ -1,153 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<thing:thing-descriptions bindingId="darksky"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
|
||||
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
|
||||
|
||||
<!-- Dark Sky Binding -->
|
||||
<thing-type id="weather-and-forecast">
|
||||
<supported-bridge-type-refs>
|
||||
<bridge-type-ref id="weather-api"/>
|
||||
</supported-bridge-type-refs>
|
||||
|
||||
<label>Weather and Forecast</label>
|
||||
<description>Provides current weather and forecast data from the Dark Sky API.</description>
|
||||
|
||||
<channel-groups>
|
||||
<channel-group id="current" typeId="current"/>
|
||||
<channel-group id="forecastHours01" typeId="hourlyForecast">
|
||||
<label>1 Hour Forecast</label>
|
||||
<description>This is the weather forecast for the next hour.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours02" typeId="hourlyForecast">
|
||||
<label>2 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 2 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours03" typeId="hourlyForecast">
|
||||
<label>3 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 3 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours04" typeId="hourlyForecast">
|
||||
<label>4 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 4 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours05" typeId="hourlyForecast">
|
||||
<label>5 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 5 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours06" typeId="hourlyForecast">
|
||||
<label>6 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 6 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours07" typeId="hourlyForecast">
|
||||
<label>7 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 7 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours08" typeId="hourlyForecast">
|
||||
<label>8 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 8 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours09" typeId="hourlyForecast">
|
||||
<label>9 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 9 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours10" typeId="hourlyForecast">
|
||||
<label>10 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 10 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours11" typeId="hourlyForecast">
|
||||
<label>11 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 11 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours12" typeId="hourlyForecast">
|
||||
<label>12 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 12 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours13" typeId="hourlyForecast">
|
||||
<label>13 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 13 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours14" typeId="hourlyForecast">
|
||||
<label>14 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 14 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours15" typeId="hourlyForecast">
|
||||
<label>15 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 15 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours16" typeId="hourlyForecast">
|
||||
<label>16 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 16 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours17" typeId="hourlyForecast">
|
||||
<label>17 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 17 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours18" typeId="hourlyForecast">
|
||||
<label>18 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 18 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours19" typeId="hourlyForecast">
|
||||
<label>19 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 19 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours20" typeId="hourlyForecast">
|
||||
<label>20 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 20 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours21" typeId="hourlyForecast">
|
||||
<label>21 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 21 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours22" typeId="hourlyForecast">
|
||||
<label>22 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 22 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours23" typeId="hourlyForecast">
|
||||
<label>23 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 23 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastHours24" typeId="hourlyForecast">
|
||||
<label>24 Hours Forecast</label>
|
||||
<description>This is the weather forecast in 24 hours.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastToday" typeId="dailyForecast">
|
||||
<label>Todays Forecast</label>
|
||||
<description>This is the weather forecast for today.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastTomorrow" typeId="dailyForecast">
|
||||
<label>Tomorrows Forecast</label>
|
||||
<description>This is the weather forecast for tomorrow.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastDay2" typeId="dailyForecast">
|
||||
<label>2 Day Forecast</label>
|
||||
<description>This is the weather forecast in two days.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastDay3" typeId="dailyForecast">
|
||||
<label>3 Day Forecast</label>
|
||||
<description>This is the weather forecast in three days.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastDay4" typeId="dailyForecast">
|
||||
<label>4 Day Forecast</label>
|
||||
<description>This is the weather forecast in four days.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastDay5" typeId="dailyForecast">
|
||||
<label>5 Day Forecast</label>
|
||||
<description>This is the weather forecast in five days.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastDay6" typeId="dailyForecast">
|
||||
<label>6 Day Forecast</label>
|
||||
<description>This is the weather forecast in six days.</description>
|
||||
</channel-group>
|
||||
<channel-group id="forecastDay7" typeId="dailyForecast">
|
||||
<label>7 Day Forecast</label>
|
||||
<description>This is the weather forecast in seven days.</description>
|
||||
</channel-group>
|
||||
</channel-groups>
|
||||
|
||||
<representation-property>location</representation-property>
|
||||
|
||||
<config-description-ref uri="thing-type:darksky:weather-and-forecast"/>
|
||||
</thing-type>
|
||||
|
||||
</thing:thing-descriptions>
|
Loading…
Reference in New Issue