Skip to main content
Sky AI Forecast receives a WMO weather interpretation code from Open-Meteo in the weather_code fields of the API response. The app maps each code to a Lucide icon via the getWeatherIcon() function in script.js.

Icon mapping logic

The function applies a simple three-tier grouping:

Complete WMO code reference

To show more granular icons — for example, a dedicated snowflake for codes 71–77 or a lightning bolt for codes 95–99 — extend getWeatherIcon() with additional conditions before the final return:
Check the Lucide icon library for the full list of available icon names.