├── LICENSE ├── README.md └── custom_components └── taiwan_aqi ├── __init__.py ├── config_flow.py ├── const.py ├── manifest.json ├── sensor.py ├── strings.json └── translations ├── en.json └── zh-Hant.json /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/besthand/HATaiwanAQI/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/besthand/HATaiwanAQI/HEAD/README.md -------------------------------------------------------------------------------- /custom_components/taiwan_aqi/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/besthand/HATaiwanAQI/HEAD/custom_components/taiwan_aqi/__init__.py -------------------------------------------------------------------------------- /custom_components/taiwan_aqi/config_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/besthand/HATaiwanAQI/HEAD/custom_components/taiwan_aqi/config_flow.py -------------------------------------------------------------------------------- /custom_components/taiwan_aqi/const.py: -------------------------------------------------------------------------------- 1 | DOMAIN = "taiwan_aqi" 2 | API_URL = "https://data.moenv.gov.tw/api/v2/aqx_p_432" 3 | UPDATE_INTERVAL = 1800 # 每30分鐘更新一次 -------------------------------------------------------------------------------- /custom_components/taiwan_aqi/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/besthand/HATaiwanAQI/HEAD/custom_components/taiwan_aqi/manifest.json -------------------------------------------------------------------------------- /custom_components/taiwan_aqi/sensor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/besthand/HATaiwanAQI/HEAD/custom_components/taiwan_aqi/sensor.py -------------------------------------------------------------------------------- /custom_components/taiwan_aqi/strings.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /custom_components/taiwan_aqi/translations/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/besthand/HATaiwanAQI/HEAD/custom_components/taiwan_aqi/translations/en.json -------------------------------------------------------------------------------- /custom_components/taiwan_aqi/translations/zh-Hant.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/besthand/HATaiwanAQI/HEAD/custom_components/taiwan_aqi/translations/zh-Hant.json --------------------------------------------------------------------------------