mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
add details about the api key
This commit is contained in:
parent
e3fc98d7f4
commit
cb31072e92
@ -12,12 +12,16 @@ footer: true
|
|||||||
<img src='/images/supported_brands/openweathermap.png' class='brand pull-right' />
|
<img src='/images/supported_brands/openweathermap.png' class='brand pull-right' />
|
||||||
The openweathermap platform uses [OpenWeatherMap](http://openweathermap.org/) as a source for meteorological data for your location.
|
The openweathermap platform uses [OpenWeatherMap](http://openweathermap.org/) as a source for meteorological data for your location.
|
||||||
|
|
||||||
|
You need an API key which is free but requires a [registration](http://home.openweathermap.org/users/sign_up).
|
||||||
|
|
||||||
|
To add OpenWeatherMap to your installation, add the following to your `configuration.yaml` file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: openweathermap
|
platform: openweathermap
|
||||||
api_key: YOUR_API_KEY
|
api_key: YOUR_API_KEY
|
||||||
monitored_variables:
|
monitored_conditions
|
||||||
- type: 'weather'
|
- type: 'weather'
|
||||||
- type: 'temperature'
|
- type: 'temperature'
|
||||||
- type: 'wind_speed'
|
- type: 'wind_speed'
|
||||||
@ -27,4 +31,4 @@ sensor:
|
|||||||
- type: 'rain'
|
- type: 'rain'
|
||||||
- type: 'snow'
|
- type: 'snow'
|
||||||
```
|
```
|
||||||
|
Details about the API are available in the (OpenWeatherMap documentation)[http://bugs.openweathermap.org/projects/api/wiki].
|
||||||
|
Loading…
x
Reference in New Issue
Block a user