Skip to content

Commit ff5216c

Browse files
Zac-HDfabaff
authored andcommitted
Sensor.zamg improvement (home-assistant#2014)
* No hardcoding in ZAMG docs * Add ZAMG weather platform
1 parent 876d75d commit ff5216c

File tree

2 files changed

+47
-29
lines changed

2 files changed

+47
-29
lines changed

source/_components/sensor.zamg.markdown

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,11 @@ ha_category: Weather
1212
ha_release: 0.35
1313
---
1414

15-
The `zamg` platform uses meteorological details published by the Austrian weather service [Zentralanstalt für
16-
Meteorologie und Geodynamik (ZAMG)](https://www.zamg.ac.at/).
15+
The `zamg` platform uses meteorological details published by the Austrian weather service
16+
[Zentralanstalt für Meteorologie und Geodynamik (ZAMG)](https://www.zamg.ac.at).
1717

18-
The following stations are available:
19-
20-
| `station_id` | Location |
21-
| :----------- |:---------------------|
22-
| 11010 | Linz/Hörsching |
23-
| 11012 | Kremsmünster |
24-
| 11022 | Retz |
25-
| 11035 | Wien/Hohe Warte |
26-
| 11036 | Wien/Schwechat |
27-
| 11101 | Bregenz |
28-
| 11121 | Innsbruck |
29-
| 11126 | Patscherkofel |
30-
| 11130 | Kufstein |
31-
| 11150 | Salzburg |
32-
| 11155 | Feuerkogel |
33-
| 11157 | Aigen im Ennstal |
34-
| 11171 | Mariazell |
35-
| 11190 | Eisenstadt |
36-
| 11204 | Lienz |
37-
| 11240 | Graz/Flughafen |
38-
| 11244 | Bad Gleichenberg |
39-
| 11265 | Villacher Alpe |
40-
| 11331 | Klagenfurt/Flughafen |
41-
| 11343 | Sonnblick |
42-
| 11389 | St. Pölten |
18+
Only observations for capital cities are publically available. You can check the
19+
list of stations in [CSV format](http://www.zamg.ac.at/ogd).
4320

4421
To add ZAMG to your installation, add the following to your `configuration.yaml` file:
4522

@@ -55,7 +32,7 @@ sensor:
5532
5633
Configuration variables:
5734
58-
- **station_id** (*Required*): Your API key for http://openweathermap.org/.
35+
- **station_id** (*Optional*): The ID number for a supported ZAMG station.
5936
- **name** (*Optional*): Additional name for the sensors. Defaults to platform name.
6037
- **monitored_conditions** array (*Required*): Conditions to display in the frontend.
6138
- **pressure**: Pressure at station level
@@ -65,8 +42,12 @@ Configuration variables:
6542
- **wind_bearing**: Wind bearing
6643
- **wind_max_speed**: Top wind speed
6744
- **wind_max_bearing**: Top wind bearing
68-
- **sun_last_hour**: Sun last hourpercentage
45+
- **sun_last_hour**: Sun last hour percentage
6946
- **temperature**: Temperature
7047
- **precipitation**: Precipitation
7148
- **dewpoint**: Dew point
7249
50+
<p class='note'>
51+
This sensor is an alternative to the [`zamg`](/components/weather.zamg/) weather platform.
52+
The weather platform is easier to configure but less customisable.
53+
</p>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: page
3+
title: "ZAMG Weather"
4+
description: "Instructions how to integrate ZAMG sensors within Home Assistant."
5+
date: 2016-12-06 08:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: zamg.png
11+
ha_category: Weather
12+
ha_release: 0.39
13+
---
14+
15+
The `zamg` platform uses meteorological details published by the Austrian weather service
16+
[Zentralanstalt für Meteorologie und Geodynamik (ZAMG)](https://www.zamg.ac.at).
17+
18+
Only observations for capital cities are publically available. You can check the
19+
list of stations in [CSV format](http://www.zamg.ac.at/ogd).
20+
21+
To add ZAMG to your installation, add the following to your `configuration.yaml` file:
22+
23+
```yaml
24+
# Example configuration.yaml entry
25+
weather:
26+
- platform: zamg
27+
```
28+
29+
Configuration variables:
30+
31+
- **station_id** (*Optional*): The ID number for a supported ZAMG station.
32+
- **name** (*Optional*): A name for the weather platform.
33+
34+
<p class='note'>
35+
This platform is an alternative to the [`zamg`](/components/sensor.zamg/) sensor.
36+
The weather platform is easier to configure but less customisable.
37+
</p>

0 commit comments

Comments
 (0)