Skip to content

Commit

Permalink
Add documentation for the sensor types variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudd-O committed Aug 23, 2024
1 parent 642c18a commit 3804b1a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions custom_components/meteoswiss/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,42 @@ class Condition(StrEnum):
SENSOR_TYPE_ICON = "icon"
SENSOR_TYPE_CLASS = "device_class"
SENSOR_DATA_ID = "msDataId"

"""
From https://data.geo.admin.ch/ch.meteoschweiz.messwerte-aktuell/info/VQHA80_de.txt :
Legende für VQHA80
Station/Location;yyyyMMddHHmm;tre200s0;rre150z0;sre000z0;gre000z0;ure200s0;tde200s0;dkl010z0;fu3010z0;fu3010z1;prestas0;pp0qffs0;pp0qnhs0;ppz850s0;ppz700s0;dv1towz0;fu3towz0;fu3towz1;ta1tows0;uretows0;tdetows0
Station/Location https://data.geo.admin.ch/ch.meteoschweiz.messnetz-automatisch/ch.meteoschweiz.messnetz-automatisch_de.csv
Zeitangaben in UTC: 00:40 UTC = 02:40 Sommerzeit
= 01:40 Winterzeit
Fehlende Messwerte -
Parameter Einheit Beschreibung
tre200s0 °C Lufttemperatur 2 m über Boden; Momentanwert
rre150z0 mm Niederschlag; Zehnminutensumme
sre000z0 min Sonnenscheindauer; Zehnminutensumme
gre000z0 W/m² Globalstrahlung; Zehnminutenmittel
ure200s0 % Relative Luftfeuchtigkeit 2 m über Boden; Momentanwert
tde200s0 °C Taupunkt 2 m über Boden; Momentanwert
dkl010z0 ° Windrichtung; Zehnminutenmittel
fu3010z0 km/h Windgeschwindigkeit; Zehnminutenmittel
fu3010z1 km/h Böenspitze (Sekundenböe); Maximum
prestas0 hPa Luftdruck auf Stationshöhe (QFE); Momentanwert
pp0qffs0 hPa Luftdruck reduziert auf Meeresniveau (QFF); Momentanwert
pp0qnhs0 hPa Luftdruck reduziert auf Meeresniveau mit Standardatmosphäre (QNH); Momentanwert
ppz850s0 gpm Geopotentielle Höhe der 850 hPa-Fläche; Momentanwert
ppz700s0 gpm Geopotentielle Höhe der 700 hPa-Fläche; Momentanwert
dv1towz0 ° Windrichtung vektoriell; Zehnminutenmittel; Instrument 1
fu3towz0 km/h Windgeschwindigkeit Turm; Zehnminutenmittel
fu3towz1 km/h Böenspitze (Sekundenböe) Turm; Maximum
ta1tows0 °C Lufttemperatur Instrument 1
uretows0 % Relative Luftfeuchtigkeit Turm; Momentanwert
tdetows0 °C Taupunkt Turm
"""
SENSOR_TYPES = {
"temperature": {
SENSOR_TYPE_NAME: "temperature",
Expand Down

0 comments on commit 3804b1a

Please sign in to comment.