Skip to content

Commit 3538b85

Browse files
authored
Merge pull request home-assistant#1001 from fabaff/weather-component
Add docs for Weather component
2 parents 4b3b3c8 + b735a81 commit 3538b85

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

source/_components/demo.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Available demo platforms:
2727
- [Notification](/components/notify/) (`notify`)
2828
- [Sensor](/components/sensor/) (`sensor`)
2929
- [Switch](/components/switch/) (`switch`)
30+
- [Weather](/components/weather/) (`weather`)
3031

3132
To integrate a demo platform in Home Assistant, add the following section to your `configuration.yaml` file:
3233

source/_components/weather.markdown

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: page
3+
title: "Weather"
4+
description: "Instructions how to setup your Weather platforms with Home Assistant."
5+
date: 2016-09-28 14:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
---
11+
12+
The `weather` platforms are gathering meteorological information from web services and displays the conditions and other details about the weather at the given location.
13+
14+
Home Assistant currently supports free web services and such which requires a registration. Please check the sidebar for a full list of supported `weather` platforms.
15+
16+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: page
3+
title: "OpenWeatherMap"
4+
description: "Instructions how to integrate OpenWeatherMap within Home Assistant."
5+
date: 2016-09-29 09:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: openweathermap.png
11+
ha_category: Weather
12+
ha_release: 0.32
13+
---
14+
15+
The `openweathermap` weather platform uses [OpenWeatherMap](http://openweathermap.org/) as an source for current meteorological data for your location.
16+
17+
You need an API key which is free but requires a [registration](http://home.openweathermap.org/users/sign_up).
18+
19+
To add OpenWeatherMap to your installation, add the following to your `configuration.yaml` file:
20+
21+
```yaml
22+
# Example configuration.yaml entry
23+
weather:
24+
- platform: openweathermap
25+
api_key: YOUR_API_KEY
26+
latitude: 46.1234
27+
longitude: 7.1234
28+
```
29+
30+
Configuration variables:
31+
32+
- **api_key** (*Required*): Your API key for http://openweathermap.org/.
33+
- **latitude** (*Optional*): Latitude of the location to display the weather. Defaults to the latitude in your your `configuration.yaml` file.
34+
- **longitude** (*Optional*): Longitude of the location to display the weather. Defaults to the longitude in your `configuration.yaml` file.
35+
36+
<p class='note'>
37+
This platform is an alternative to the [`openweathermap`](/components/sensor.openweathermap/) sensor.
38+
</p>

0 commit comments

Comments
 (0)