API 參考
健康氣象
health.cold_injury
def cold_injury(location: None = None, *, hourly: bool = False) -> tuple[HealthForecast, ...]
def cold_injury(location: TownshipInput, *, hourly: bool = False) -> HealthForecast
def cold_injury(location: Sequence[TownshipInput], *, hourly: bool = False) -> Mapping[Township, HealthForecast] 回傳冷傷害指數預報,可選逐日或逐三小時。
client.health.cold_injury(location: None = None, *, hourly: bool = False) -> tuple[HealthForecast, ...]
client.health.cold_injury(location: TownshipInput, *, hourly: bool = False) -> HealthForecast
client.health.cold_injury(location: Sequence[TownshipInput], *, hourly: bool = False) -> Mapping[Township, HealthForecast]
await async_client.health.cold_injury(location: None = None, *, hourly: bool = False) -> tuple[HealthForecast, ...]
await async_client.health.cold_injury(location: TownshipInput, *, hourly: bool = False) -> HealthForecast
await async_client.health.cold_injury(location: Sequence[TownshipInput], *, hourly: bool = False) -> Mapping[Township, HealthForecast] health.heat_injury
def heat_injury(location: None = None) -> tuple[HealthForecast, ...]
def heat_injury(location: TownshipInput) -> HealthForecast
def heat_injury(location: Sequence[TownshipInput]) -> Mapping[Township, HealthForecast] 回傳五天逐三小時的熱傷害指數預報。
client.health.heat_injury(location: None = None) -> tuple[HealthForecast, ...]
client.health.heat_injury(location: TownshipInput) -> HealthForecast
client.health.heat_injury(location: Sequence[TownshipInput]) -> Mapping[Township, HealthForecast]
await async_client.health.heat_injury(location: None = None) -> tuple[HealthForecast, ...]
await async_client.health.heat_injury(location: TownshipInput) -> HealthForecast
await async_client.health.heat_injury(location: Sequence[TownshipInput]) -> Mapping[Township, HealthForecast] health.temperature_difference
def temperature_difference(location: None = None, *, hourly: bool = False) -> tuple[HealthForecast, ...]
def temperature_difference(location: TownshipInput, *, hourly: bool = False) -> HealthForecast
def temperature_difference(location: Sequence[TownshipInput], *, hourly: bool = False) -> Mapping[Township, HealthForecast] 回傳溫差提醒指數預報,可選逐日或逐三小時。
client.health.temperature_difference(location: None = None, *, hourly: bool = False) -> tuple[HealthForecast, ...]
client.health.temperature_difference(location: TownshipInput, *, hourly: bool = False) -> HealthForecast
client.health.temperature_difference(location: Sequence[TownshipInput], *, hourly: bool = False) -> Mapping[Township, HealthForecast]
await async_client.health.temperature_difference(location: None = None, *, hourly: bool = False) -> tuple[HealthForecast, ...]
await async_client.health.temperature_difference(location: TownshipInput, *, hourly: bool = False) -> HealthForecast
await async_client.health.temperature_difference(location: Sequence[TownshipInput], *, hourly: bool = False) -> Mapping[Township, HealthForecast] health.HealthForecast
name: str
township: TownshipCode
geocode: str
latitude: Number
longitude: Number
periods: Annotated[tuple[HealthPeriod, ...], ordered(start)] 鄉鎮及依時間排序的健康氣象預報時段。
health.HealthPeriod
start: OptionalTime
end: OptionalTime
index: Number
warning: Text
max_temperature: Number
min_temperature: Number 單一預報時段。