<commit_before>---
layout: documentation
---

{% include base.html %}

# YahooWeather Binding

This binding uses the [Yahoo Weather service](https://developer.yahoo.com/weather/) for providing current weather information.

_Note:_ The Yahoo Weather API is provided by Yahoo free of charge for personal, non-commercial uses, but it requires attribution and the acceptance of their terms of use.
By using this binding, you confirm that you agree with this - please read the details on [https://developer.yahoo.com/weather/](https://developer.yahoo.com/weather/).

## Supported Things

There is exactly one supported thing, which represents the weather service. It has the id `weather`.

## Thing Configuration

Besides the location (as ```location``` as a [WOEID](https://en.wikipedia.org/wiki/WOEID) number), the second configuration parameter is ```refresh``` which defines the refresh interval in seconds.

## Channels

The weather information that is retrieved is available as these channels:

| Channel Type ID | Item Type    | Description  |
|-----------------|------------------------|------------- |
| temperature | Number       | The current temperature in degrees celsius |
| humidity | Number       | The current humidity in % |
| pressure | Number       | The current pressure in millibar (hPa) |


## Full Example

demo.things:

```
yahooweather:weather:berlin [ location="638242" ]
```

demo.items:

```
Number Temperature 	"Outside Temperature" { channel="yahooweather:weather:berlin:temperature" }
```

demo.sitemap:

```
sitemap demo label="Main Menu"
{
	Frame {
		Text item=Temperature
	}
}
```<commit_msg>fixed example configuration on Yahoo weather binding (#2130)<commit_after>---
layout: documentation
---

{% include base.html %}

# YahooWeather Binding

This binding uses the [Yahoo Weather service](https://developer.yahoo.com/weather/) for providing current weather information.

_Note:_ The Yahoo Weather API is provided by Yahoo free of charge for personal, non-commercial uses, but it requires attribution and the acceptance of their terms of use.
By using this binding, you confirm that you agree with this - please read the details on [https://developer.yahoo.com/weather/](https://developer.yahoo.com/weather/).

## Supported Things

There is exactly one supported thing, which represents the weather service. It has the id `weather`.

## Thing Configuration

Besides the location (as ```location``` as a [WOEID](https://en.wikipedia.org/wiki/WOEID) number), the second configuration parameter is ```refresh``` which defines the refresh interval in seconds.

## Channels

The weather information that is retrieved is available as these channels:

| Channel Type ID | Item Type    | Description  |
|-----------------|------------------------|------------- |
| temperature | Number       | The current temperature in degrees celsius |
| humidity | Number       | The current humidity in % |
| pressure | Number       | The current pressure in millibar (hPa) |


## Full Example

demo.things:

```
yahooweather:weather:berlin [ location=638242 ]
```

demo.items:

```
Number Temperature 	"Outside Temperature" { channel="yahooweather:weather:berlin:temperature" }
```

demo.sitemap:

```
sitemap demo label="Main Menu"
{
	Frame {
		Text item=Temperature
	}
}
```
{'fraction_non_alphanumeric': 0.13469139556096077, 'fraction_numerical': 0.00486470051687443, 'mean_word_length': 3.6732954545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1891913', 'n_tokens_mistral': 950, 'n_tokens_neox': 842, 'n_words': 337}