home-assistant.io/source/_components/weather.openweathermap.markdown
Jorim Tielemans c0d8b1fbf0 Clean up wxz (#7025)
Titles
Trailing spaces
Boolean capitalization
2018-10-23 11:08:53 +02:00

1.7 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release, ha_iot_class
layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class
page OpenWeatherMap Instructions on how to integrate OpenWeatherMap within Home Assistant. 2016-09-29 09:00 true false true true openweathermap.png Weather 0.32 Cloud Polling

The openweathermap weather platform uses OpenWeatherMap as a source for current meteorological data for your location.

{% linkable_title Configuration %}

You need an API key which is free but requires a registration.

To add OpenWeatherMap to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
weather:
  - platform: openweathermap
    api_key: YOUR_API_KEY

{% configuration %} api_key: description: Your API key for OpenWeatherMap. required: true type: string name: description: Name to use in the frontend. required: false type: string default: OpenWeatherMap mode: description: "Can specify hourly or daily. Select hourly for a three-hour forecast or daily for daily forecast." required: false type: string default: "hourly" latitude: description: Latitude of the location to display the weather. required: false type: float default: "The latitude in your configuration.yaml file." longitude: description: Longitude of the location to display the weather. required: false type: float default: "The longitude in your configuration.yaml file." {% endconfiguration %}

This platform is an alternative to the [`openweathermap`](/components/sensor.openweathermap/) sensor.