2020-09-21 01:58:32 +02:00
# Synop Analyzer Binding
This binding integrates the possibility to download and interpret Synop messages.
## Binding Configuration
The binding has no configuration options itself, all configuration is done at 'Things' level.
## Supported Things
There is exactly one supported thing, which represents a Synop message. It has the id `synopanalyzer` .
## Discovery
2022-04-03 18:55:53 +02:00
If a system location is set, the nearest available Synop station be automatically discovered for this location.
The search radius will expand at each successive scan.
2020-09-21 01:58:32 +02:00
## Thing Configuration
Besides the Synop Station Number (as ```synopID``` as a [StationID ](https://www.ogimet.com/gsynop_nav.phtml.en ) string), the second configuration parameter is ```refreshInterval``` which defines the refresh interval in minutes.
Synop message are typically updated every hour.
## Channels
The weather information that is retrieved is available as these channels:
| Channel Type ID | Item Type | Description |
|-----------------------|--------------------|--------------------------------------------|
2022-04-03 18:55:53 +02:00
| temperature | Number:Temperature | Current outdoor temperature |
2020-09-21 01:58:32 +02:00
| pressure | Number:Pressure | Current pressure |
| wind-speed | Number:Speed | Current wind speed |
| wind-speed-beaufort | Number | Wind speed according to Beaufort scale |
| wind-angle | Number:Angle | Current wind direction |
| wind-direction | String | Wind direction |
| overcast | String | Appreciation of the cloud cover |
| octa | Number | Part of the sky covered by clouds (in 8th) |
| attenuation-factor* | Number | Cloud layer attenuation factor |
| time-utc | DateTime | Observation time of the Synop message |
| horizontal-visibility | String | Horizontal visibility range |
2022-12-14 16:52:43 +01:00
- ”cloud attenuation factor” (Kc) as defined by Kasten and Czeplak (1980)
2020-09-21 01:58:32 +02:00
## Example
### Things
2024-09-29 12:09:47 +02:00
Here is an example of thing definition:
2020-09-21 01:58:32 +02:00
2022-12-14 16:52:43 +01:00
```java
2020-09-21 01:58:32 +02:00
synopanalyzer:synopanalyzer:orly [ stationId=7149 ]
```
### Items
2022-12-14 16:52:43 +01:00
```java
2020-09-21 01:58:32 +02:00
Number Synop_Temperature "Temperature [%.1f °C]" < temperature > { channel = "synopanalyzer:synopanalyzer:trappes:temperature" }
Number Synop_Pressure "Pressure [%.1f mb]" < pressure > { channel = "synopanalyzer:synopanalyzer:trappes:pressure" }
Number Synop_Wind_Angle "Wind Angle [%d°]" < wind > { channel = "synopanalyzer:synopanalyzer:trappes:wind-angle"}
String Synop_Wind_Direction "Direction [%s]" { channel = "synopanalyzer:synopanalyzer:trappes:wind-direction"}
Number Synop_Wind_Speed "Wind Speed [%.2f m/s]" < wind > { channel = "synopanalyzer:synopanalyzer:trappes:wind-speed-ms"}
Number Synop_Octa "Octa [%d]/8" { channel = "synopanalyzer:synopanalyzer:trappes:octa"}
DateTime Synop_time "Observation Time [%1$ta %1$tR]" < clock > { channel = "synopanalyzer:synopanalyzer:trappes:time-utc"}
```