mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-06 04:14:03 +01:00
ea3446f50e
Signed-off-by: Matthew Skinner <matt@pcmus.com> * modbus.e3dc: newlines added and remove broken anchor. Signed-off-by: Matthew Skinner <matt@pcmus.com> * modbus.stie..:remove multiple newlines. Signed-off-by: Matthew Skinner <matt@pcmus.com> * modbus.sunspec: remove multiple newlines. Signed-off-by: Matthew Skinner <matt@pcmus.com> * Nanoleaf: remove PaperUI. Signed-off-by: Matthew Skinner <matt@pcmus.com> * Neato: Remove openhab 2 Signed-off-by: Matthew Skinner <matt@pcmus.com> * Nibe: remove PaperUI. Signed-off-by: Matthew Skinner <matt@pcmus.com> * NibeUplink: Remove PaperUI Signed-off-by: Matthew Skinner <matt@pcmus.com> * Niko: Remove PaperUI Signed-off-by: Matthew Skinner <matt@pcmus.com> * Nuki: Remove Paper UI Signed-off-by: Matthew Skinner <matt@pcmus.com> * OneWire: Remove multiple newlines. Signed-off-by: Matthew Skinner <matt@pcmus.com> * OpenUV: remove paperui Signed-off-by: Matthew Skinner <matt@pcmus.com> * OpenWebNet: Remove paperUI Signed-off-by: Matthew Skinner <matt@pcmus.com> * Pentair: remove openhab2 path Signed-off-by: Matthew Skinner <matt@pcmus.com> * Fix typo Signed-off-by: Matthew Skinner <matt@pcmus.com> * RFXCOM: remove PaperUI Signed-off-by: Matthew Skinner <matt@pcmus.com> * Russound: Remove PaperUI. Signed-off-by: Matthew Skinner <matt@pcmus.com> * Samsung: remove paperui Signed-off-by: Matthew Skinner <matt@pcmus.com> * Siemens: remove paperui Signed-off-by: Matthew Skinner <matt@pcmus.com> * Samsung Smartthings: remove openhab 2 mention. Signed-off-by: Matthew Skinner <matt@pcmus.com> * Somfy myLink: remove paperUI Signed-off-by: Matthew Skinner <matt@pcmus.com> * Somfy Tahoma: remove paperUI Signed-off-by: Matthew Skinner <matt@pcmus.com> * Sonos: Remove paperui ref Signed-off-by: Matthew Skinner <matt@pcmus.com> * Spotify: remove paperui Signed-off-by: Matthew Skinner <matt@pcmus.com> * Tankerkönig: remove java8 and paperUI references. Signed-off-by: Matthew Skinner <matt@pcmus.com> * Tellstick: remove paperui Signed-off-by: Matthew Skinner <matt@pcmus.com> * Tibber: remove paperui Signed-off-by: Matthew Skinner <matt@pcmus.com> * Velbus: remove paperUI Signed-off-by: Matthew Skinner <matt@pcmus.com> * Vitotronic: remove paperui Signed-off-by: Matthew Skinner <matt@pcmus.com> * VolvoOnCall: remove paperUI Signed-off-by: Matthew Skinner <matt@pcmus.com> * WiFi LED: remove paperui Signed-off-by: Matthew Skinner <matt@pcmus.com> * WlanThermo: remove paperUI Signed-off-by: Matthew Skinner <matt@pcmus.com> * XmlTV: remove openhab2 path Signed-off-by: Matthew Skinner <matt@pcmus.com> * Z-Way: Remove paperUI Signed-off-by: Matthew Skinner <matt@pcmus.com> * Update bundles/org.openhab.binding.nanoleaf/README.md Signed-off-by: Matthew Skinner <matt@pcmus.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> * MagentaTV: Fix typo Signed-off-by: Matthew Skinner <matt@pcmus.com> * MagentaTV: Change to userId Signed-off-by: Matthew Skinner <matt@pcmus.com> Co-authored-by: Fabian Wolter <github@fabian-wolter.de>
97 lines
3.7 KiB
Markdown
97 lines
3.7 KiB
Markdown
# OpenUV Binding
|
|
|
|
This binding uses the [OpenUV Index API service](https://www.openuv.io/) for providing UV Index information for any location worldwide.
|
|
|
|
To use this binding, you first need to [register and get your API token](https://www.openuv.io/auth/google).
|
|
|
|
## Discovery
|
|
|
|
Once a bridge with the api Key has been created, Local UV Index informations can be auto discovered based on system location.
|
|
|
|
## Binding Configuration
|
|
|
|
The binding has no configuration options, all configuration is done at Bridge and Thing level.
|
|
|
|
## Bridge Configuration
|
|
|
|
The bridge has only one configuration parameter :
|
|
|
|
| Parameter | Description |
|
|
|-----------|--------------------------------------------------------------|
|
|
| apikey | Data-platform token to access the OpenUV service. Mandatory. |
|
|
|
|
Will accept a Refresh command in order to reinitiate connexion (eg in case of Quota exceeded).
|
|
|
|
## Thing Configuration
|
|
|
|
The thing has a few configuration parameters :
|
|
|
|
| Parameter | Description |
|
|
|-----------|--------------------------------------------------------------|
|
|
| location | Geo coordinates to be considered by the service. |
|
|
| refresh | Refresh interval in minutes. Optional. |
|
|
|
|
For the location parameter, the following syntax is allowed (comma separated latitude, longitude and optional altitude):
|
|
|
|
```java
|
|
37.8,-122.4
|
|
37.8255,-122.456
|
|
37.8,-122.4,177
|
|
```
|
|
|
|
## Channels
|
|
|
|
The OpenUV Report thing that is retrieved has these channels:
|
|
|
|
| Channel ID | Item Type | Description |
|
|
|--------------|---------------------|-------------------------------------------------|
|
|
| UVIndex | Number | UV Index |
|
|
| Alert | Number | Alert level associated to given UV Index |
|
|
| UVColor | Color | Color associated to given alert level. |
|
|
| UVMax | Number | Max UV Index for the day (at solar noon) |
|
|
| UVMaxTime | DateTime | Max UV Index datetime (solar noon) |
|
|
| Ozone | Number:ArealDensity | Ozone level in du (Dobson Units) from OMI data |
|
|
| OzoneTime | DateTime | Latest OMI ozone update datetime |
|
|
| UVTime | DateTime | UV Index datetime |
|
|
| SafeExposure | Number:Time | Safe exposure time for Fitzpatrick Skin Types. |
|
|
| elevation | Number:Angle | Current Sun elevation. |
|
|
|
|
The elevation channel will be used as an input in order to limit API queries to OpenUV. If not used,
|
|
the binding will not consider it. When value is provided queries will only be issued if the elevation is > 0°.
|
|
|
|
## Examples
|
|
|
|
demo.things:
|
|
|
|
```xtend
|
|
Bridge openuv:openuvapi:local "OpenUV Api" [ apikey="xxxxYYYxxxx" ] {
|
|
Thing uvreport city1 "UV In My City" [ location="52.5200066,13.4049540", refresh=10 ]{
|
|
Channels:
|
|
Type SafeExposure : Parents [
|
|
index=3
|
|
]
|
|
Type SafeExposure : Childs [
|
|
index=2
|
|
]
|
|
}
|
|
}
|
|
|
|
```
|
|
|
|
demo.items:
|
|
|
|
```xtend
|
|
Number UVIndex "UV Index" {channel="openuv:uvreport:local:city1:UVIndex" }
|
|
Number UVMax "UV Max" {channel="openuv:uvreport:local:city1:UVMaxEvent" }
|
|
Number:ArealDensity Ozone "Ozone" {channel="openuv:uvreport:local:city1:Ozone" }
|
|
```
|
|
|
|
astro.items:
|
|
|
|
```xtend
|
|
|
|
Number:Angle Elevation "Elevation" {channel="astro:sun:home:position#elevation",
|
|
channel="openuv:uvreport:local:city1:elevation" [profile="follow"] }
|
|
|
|
```
|