Skip to content

Commit

Permalink
feat: add human readable names to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lhw committed Jun 1, 2024
1 parent e16cfe7 commit 6ec9a95
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions aiocloudweather/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,21 +193,21 @@ class WeatherStation:

date_utc: str = field(default=None)

barometer: Sensor = field(default=None)
temperature: Sensor = field(default=None)
humidity: Sensor = field(default=None)
indoor_temperature: Sensor = field(default=None)
indoor_humidity: Sensor = field(default=None)
dewpoint: Sensor = field(default=None)
rain: Sensor = field(default=None)
daily_rain: Sensor = field(default=None)
wind_direction: Sensor = field(default=None)
wind_speed: Sensor = field(default=None)
wind_gust_speed: Sensor = field(default=None)
wind_gust_direction: Sensor = field(default=None)
uv: Sensor = field(default=None)
solar_radiation: Sensor = field(default=None)
heat_index: Sensor = field(default=None)
barometer: Sensor = field(default=None, metadata={"name": "Absolute Pressure"})
temperature: Sensor = field(default=None, metadata={"name": "Outdoor Temperature"})
humidity: Sensor = field(default=None, metadata={"name": "Outdoor Humidity"})
indoor_temperature: Sensor = field(default=None, metadata={"name": "Indoor Temperature"})
indoor_humidity: Sensor = field(default=None, metadata={"name": "Indoor Humidity"})
dewpoint: Sensor = field(default=None, metadata={"name": "Outdoor Dewpoint"})
rain: Sensor = field(default=None, metadata={"name": "Rain Rate"})
daily_rain: Sensor = field(default=None, metadata={"name": "Daily Rain Rate"})
wind_direction: Sensor = field(default=None, metadata={"name": "Wind Direction"})
wind_speed: Sensor = field(default=None, metadata={"name": "Wind Speed"})
wind_gust_speed: Sensor = field(default=None, metadata={"name": "Wind Gust"})
wind_gust_direction: Sensor = field(default=None, metadata={"name": "Wind Gust Direction"})
uv: Sensor = field(default=None, metadata={"name": "UV Index"})
solar_radiation: Sensor = field(default=None, metadata={"name": "Solar Radiation"})
heat_index: Sensor = field(default=None, metadata={"name": "Heat Index"})

@staticmethod
def from_wunderground(data: WundergroundRawSensor) -> "WeatherStation":
Expand Down

0 comments on commit 6ec9a95

Please sign in to comment.