Skip to content

Weather-code interpretation ​

Open-Meteo returns WMO weather codes. Harmattan converts them into a smaller product vocabulary in weather-data.js.

Product categories ​

text
clear
clouds
rain
storm
fog

Examples ​

WMO codeCategoryLabel
0clearClear sky
2cloudsPartly cloudy
3cloudsOvercast
45fogFoggy
48fogHarmattan haze
61rainLight rain
65rainHeavy rain
82rainViolent showers
95stormThunderstorm
99stormSevere thunderstorm

A raw WMO code is useful to a machine but poor product language. The interpretation layer lets the rest of the interface work with stable categories rather than scattering numeric-code checks across unrelated files.

Unknown codes fall back to a cloudy presentation state.

Built around the Naija skies.