OpenWeatherMap


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

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 Variables

api_key

(string)(Required)Your API key for OpenWeatherMap.

name

(string)(Optional)Name to use in the frontend.

Default value: OpenWeatherMap

mode

(string)(Optional)Can specify hourly or daily. Select hourly for a three-hour forecast or daily for daily forecast.

Default value: hourly

latitude

(float)(Optional)Latitude of the location to display the weather.

Default value: The latitude in your configuration.yaml file.

longitude

(float)(Optional)Longitude of the location to display the weather.

Default value: The longitude in your configuration.yaml file.

This platform is an alternative to the openweathermap sensor.