Sensor.zamg improvement (#2014)

* No hardcoding in ZAMG docs

* Add ZAMG weather platform
This commit is contained in:
Zac Hatfield Dodds 2017-02-25 08:47:10 +11:00 committed by Fabian Affolter
parent 876d75d45c
commit ff5216cfde
2 changed files with 47 additions and 29 deletions

View File

@ -12,34 +12,11 @@ ha_category: Weather
ha_release: 0.35 ha_release: 0.35
--- ---
The `zamg` platform uses meteorological details published by the Austrian weather service [Zentralanstalt für The `zamg` platform uses meteorological details published by the Austrian weather service
Meteorologie und Geodynamik (ZAMG)](https://www.zamg.ac.at/). [Zentralanstalt für Meteorologie und Geodynamik (ZAMG)](https://www.zamg.ac.at).
The following stations are available: Only observations for capital cities are publically available. You can check the
list of stations in [CSV format](http://www.zamg.ac.at/ogd).
| `station_id` | Location |
| :----------- |:---------------------|
| 11010 | Linz/Hörsching |
| 11012 | Kremsmünster |
| 11022 | Retz |
| 11035 | Wien/Hohe Warte |
| 11036 | Wien/Schwechat |
| 11101 | Bregenz |
| 11121 | Innsbruck |
| 11126 | Patscherkofel |
| 11130 | Kufstein |
| 11150 | Salzburg |
| 11155 | Feuerkogel |
| 11157 | Aigen im Ennstal |
| 11171 | Mariazell |
| 11190 | Eisenstadt |
| 11204 | Lienz |
| 11240 | Graz/Flughafen |
| 11244 | Bad Gleichenberg |
| 11265 | Villacher Alpe |
| 11331 | Klagenfurt/Flughafen |
| 11343 | Sonnblick |
| 11389 | St. Pölten |
To add ZAMG to your installation, add the following to your `configuration.yaml` file: To add ZAMG to your installation, add the following to your `configuration.yaml` file:
@ -55,7 +32,7 @@ sensor:
Configuration variables: Configuration variables:
- **station_id** (*Required*): Your API key for http://openweathermap.org/. - **station_id** (*Optional*): The ID number for a supported ZAMG station.
- **name** (*Optional*): Additional name for the sensors. Defaults to platform name. - **name** (*Optional*): Additional name for the sensors. Defaults to platform name.
- **monitored_conditions** array (*Required*): Conditions to display in the frontend. - **monitored_conditions** array (*Required*): Conditions to display in the frontend.
- **pressure**: Pressure at station level - **pressure**: Pressure at station level
@ -70,3 +47,7 @@ Configuration variables:
- **precipitation**: Precipitation - **precipitation**: Precipitation
- **dewpoint**: Dew point - **dewpoint**: Dew point
<p class='note'>
This sensor is an alternative to the [`zamg`](/components/weather.zamg/) weather platform.
The weather platform is easier to configure but less customisable.
</p>

View File

@ -0,0 +1,37 @@
---
layout: page
title: "ZAMG Weather"
description: "Instructions how to integrate ZAMG sensors within Home Assistant."
date: 2016-12-06 08:00
sidebar: true
comments: false
sharing: true
footer: true
logo: zamg.png
ha_category: Weather
ha_release: 0.39
---
The `zamg` platform uses meteorological details published by the Austrian weather service
[Zentralanstalt für Meteorologie und Geodynamik (ZAMG)](https://www.zamg.ac.at).
Only observations for capital cities are publically available. You can check the
list of stations in [CSV format](http://www.zamg.ac.at/ogd).
To add ZAMG to your installation, add the following to your `configuration.yaml` file:
```yaml
# Example configuration.yaml entry
weather:
- platform: zamg
```
Configuration variables:
- **station_id** (*Optional*): The ID number for a supported ZAMG station.
- **name** (*Optional*): A name for the weather platform.
<p class='note'>
This platform is an alternative to the [`zamg`](/components/sensor.zamg/) sensor.
The weather platform is easier to configure but less customisable.
</p>