2019-12-31 12:05:31 +00:00
|
|
|
"""Constants for GIOS integration."""
|
|
|
|
from datetime import timedelta
|
|
|
|
|
|
|
|
ATTR_NAME = "name"
|
|
|
|
ATTR_STATION = "station"
|
|
|
|
CONF_STATION_ID = "station_id"
|
|
|
|
DEFAULT_NAME = "GIOŚ"
|
|
|
|
# Term of service GIOŚ allow downloading data no more than twice an hour.
|
2020-03-29 03:57:06 +00:00
|
|
|
SCAN_INTERVAL = timedelta(minutes=30)
|
2019-12-31 12:05:31 +00:00
|
|
|
DOMAIN = "gios"
|
2020-08-05 10:47:33 +00:00
|
|
|
MANUFACTURER = "Główny Inspektorat Ochrony Środowiska"
|
2019-12-31 12:05:31 +00:00
|
|
|
|
|
|
|
AQI_GOOD = "dobry"
|
|
|
|
AQI_MODERATE = "umiarkowany"
|
|
|
|
AQI_POOR = "dostateczny"
|
|
|
|
AQI_VERY_GOOD = "bardzo dobry"
|
|
|
|
AQI_VERY_POOR = "zły"
|
|
|
|
|
|
|
|
ICONS_MAP = {
|
|
|
|
AQI_VERY_GOOD: "mdi:emoticon-excited",
|
|
|
|
AQI_GOOD: "mdi:emoticon-happy",
|
|
|
|
AQI_MODERATE: "mdi:emoticon-neutral",
|
|
|
|
AQI_POOR: "mdi:emoticon-sad",
|
|
|
|
AQI_VERY_POOR: "mdi:emoticon-dead",
|
|
|
|
}
|