Fix openweathermap config formatting (#6712)

* Fix config formatting

* Fix default values for lat and long
This commit is contained in:
cgtobi 2018-10-12 14:41:17 +02:00 committed by Alok Saboo
parent 2a64d02fc9
commit 5b397ec07f

View File

@ -28,13 +28,32 @@ weather:
api_key: YOUR_API_KEY api_key: YOUR_API_KEY
``` ```
Configuration variables: {% configuration %}
api_key:
- **api_key** (*Required*): Your API key for http://openweathermap.org/. required: true
- **name** (*Optional*): Name to use in the frontend. description: Your API key for [OpenWeatherMap](http://openweathermap.org/).
- **mode** (*Optional*): Can specify `hourly` or `daily`. Select `hourly` for a three-hour forecast or `daily` for daily forecast. Defaults to `hourly`. type: string
- **latitude** (*Optional*): Latitude of the location to display the weather. Defaults to the latitude in your `configuration.yaml` file. name:
- **longitude** (*Optional*): Longitude of the location to display the weather. Defaults to the longitude in your `configuration.yaml` file. required: false
description: Name to use in the frontend.
default: OpenWeatherMap
type: string
mode:
required: false
description: "Can specify `hourly` or `daily`. Select `hourly` for a three-hour forecast or `daily` for daily forecast."
default: "`hourly`"
type: string
latitude:
required: false
description: Latitude of the location to display the weather.
default: "The latitude in your `configuration.yaml` file."
type: float
longitude:
required: false
description: Longitude of the location to display the weather.
default: "The longitude in your `configuration.yaml` file."
type: float
{% endconfiguration %}
<p class='note'> <p class='note'>
This platform is an alternative to the [`openweathermap`](/components/sensor.openweathermap/) sensor. This platform is an alternative to the [`openweathermap`](/components/sensor.openweathermap/) sensor.