plumbing.constants#

hoda.constants.LANGUAGE#

Language Types

Available languages:

  • tc: Traditional Chinese

  • sc: Simplified Chinese

  • en: English

alias of Literal[‘tc’, ‘sc’, ‘en’]

hoda.constants.WEATHER_DATA_TYPE#

Weather Data Types

Available items:

  • flw: (forecast) local weather

  • fnd: (forecast) nine-days

  • rhrread: current weather report (anyone have any idea what the “acronym” stands for?)

  • warnsum: current warning summary

  • warningInfo: weather warning info

  • swt: special weather tips

alias of Literal[‘flw’, ‘fnd’, ‘rhrread’, ‘warnsum’, ‘warningInfo’, ‘swt’]

hoda.constants.WEATHER_ICONS#

HKO Weather icons

Reference: https://www.hoda.gov.hk/textonly/v2/explain/wxicon_e.htm

  • 5x: sunny/sunny with clouds

  • 6x: cloudy/rain

  • 7x: nighttime

  • 8x: misc/haze

  • 9x: temperature

hoda.constants.WEATHER_ICON_URL = 'https://www.hoda.gov.hk/images/HKOWxIconOutline/pic{id}.png'#

The icon url for WEATHER_ICONS