mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-30 23:06:49 +00:00

* 🔥 Removes octopress.js * 🔥 Removes use of root_url var * 🔥 Removes Octopress generator reference from feed * 🔥 Removes delicious support * 🔥 Removes support for Pinboard * 🔥 Removes support for Disqus * 🔥 Removes support for Google Plus * ↩️ Migrate custom after_footer to default template * ↩️ Migrate custom footer to default template * ↩️ Migrate custom header to default template * 🔥 Removes unused template files * 🚀 Places time to read directly in post template * 🚀 Removes unneeded capture from archive_post.html template * 🔥 🚀 Removes unused, but heaving sorting call in component page * 🚀 Merged javascripts into a single file * 🔥 Removes more uses of root_url * 🚀 Removal of unneeded captures from head * 🔥 🚀 Removal of expensive liquid HTML compressor * 🔥 Removes unneeded templates * 🚀 Replaces kramdown with GitHub's CommonMark 🚀 * 💄 Adds Prism code syntax highlighting * ✨ Adds support for redirect in Netlify * ↩️ 🔥 Let Netlify handle all developer doc redirects * ✏️ Fixes typo in redirects file: Netify -> Netlify * 🔥 Removes unused .themes folder * 🔥 Removes unused aside.html template * 🔥 Removes Disqus config leftover * 🔥 Removes rouge highlighter config * 🔥 Removes Octopress 🎉 * 💄 Adjust code block font size and adds soft wraps * 💄 Adds styling for inline code blocks * 💄 Improve styling of note/warning/info boxes + div support * 🔨 Rewrites all note/warning/info boxes
52 lines
1.6 KiB
Markdown
52 lines
1.6 KiB
Markdown
---
|
|
title: "Met Office"
|
|
description: "Instructions on how to integrate Met Office weather conditions into Home Assistant."
|
|
logo: metoffice.jpg
|
|
ha_category:
|
|
- Weather
|
|
ha_release: 0.42
|
|
ha_iot_class: Cloud Polling
|
|
redirect_from:
|
|
- /components/weather.metoffice/
|
|
---
|
|
|
|
The `metoffice` weather platform uses the Met Office's [DataPoint API](http://www.metoffice.gov.uk/datapoint) for weather data.
|
|
|
|
## Configuration
|
|
|
|
To add the Met Office weather platform to your installation, you'll need to register for a free API key at the link above and then add the following to your `configuration.yaml` file:
|
|
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
weather:
|
|
- platform: metoffice
|
|
api_key: YOUR_API_KEY
|
|
```
|
|
|
|
{% configuration %}
|
|
api_key:
|
|
description: "Your personal API key from the [Datapoint website](http://www.metoffice.gov.uk/datapoint)."
|
|
required: true
|
|
type: string
|
|
name:
|
|
description: Additional name for the weather integration in Home Assistant.
|
|
required: false
|
|
type: string
|
|
default: Met Office
|
|
latitude:
|
|
description: "Latitude coordinate to monitor weather of (required if **longitude** is specified), defaults to coordinates defined in your `configuration.yaml`."
|
|
required: inclusive
|
|
type: float
|
|
longitude:
|
|
description: "Longitude coordinate to monitor weather of (required if **latitude** is specified), defaults to coordinates defined in your `configuration.yaml`."
|
|
required: inclusive
|
|
type: float
|
|
{% endconfiguration %}
|
|
|
|
<div class='note'>
|
|
|
|
This platform is an alternative to the [`metoffice`](/components/sensor.metoffice/) sensor.
|
|
The weather platform is easier to configure but less customizable.
|
|
|
|
</div>
|