Use light-drizzle icon for WMO 61 (light rain) and 80 (light showers)

Both codes now render 🌦️ instead of 🌧️ in the CODE_MAP. Updated the
weather-codes tests accordingly.
This commit is contained in:
hermes-explorigin 2026-08-27 00:35:29 +00:00
parent ff73e58d31
commit 7e06c17bfa
3 changed files with 6 additions and 6 deletions

4
dist/index.html vendored
View File

@ -5884,7 +5884,7 @@ var CODE_MAP = {
desc: "Dense freezing drizzle" desc: "Dense freezing drizzle"
}, },
61: { 61: {
icon: "🌧", icon: "🌦",
label: "Light Rain", label: "Light Rain",
desc: "Slight rain" desc: "Slight rain"
}, },
@ -5929,7 +5929,7 @@ var CODE_MAP = {
desc: "Snow grains" desc: "Snow grains"
}, },
80: { 80: {
icon: "🌧", icon: "🌦",
label: "Light Showers", label: "Light Showers",
desc: "Slight rain showers" desc: "Slight rain showers"
}, },

View File

@ -15,7 +15,7 @@ const CODE_MAP = {
55: { icon: '🌧️', label: 'Heavy Drizzle',desc: 'Dense drizzle' }, 55: { icon: '🌧️', label: 'Heavy Drizzle',desc: 'Dense drizzle' },
56: { icon: '🌧️', label: 'Freezing Drizzle', desc: 'Light freezing drizzle' }, 56: { icon: '🌧️', label: 'Freezing Drizzle', desc: 'Light freezing drizzle' },
57: { icon: '🌧️', label: 'Freezing Drizzle', desc: 'Dense freezing drizzle' }, 57: { icon: '🌧️', label: 'Freezing Drizzle', desc: 'Dense freezing drizzle' },
61: { icon: '🌧', label: 'Light Rain', desc: 'Slight rain' }, 61: { icon: '🌦', label: 'Light Rain', desc: 'Slight rain' },
63: { icon: '🌧️', label: 'Rain', desc: 'Moderate rain' }, 63: { icon: '🌧️', label: 'Rain', desc: 'Moderate rain' },
65: { icon: '🌧️', label: 'Heavy Rain', desc: 'Heavy rain' }, 65: { icon: '🌧️', label: 'Heavy Rain', desc: 'Heavy rain' },
66: { icon: '🌧️', label: 'Freezing Rain',desc: 'Light freezing rain' }, 66: { icon: '🌧️', label: 'Freezing Rain',desc: 'Light freezing rain' },
@ -24,7 +24,7 @@ const CODE_MAP = {
73: { icon: '🌨️', label: 'Snow', desc: 'Moderate snowfall' }, 73: { icon: '🌨️', label: 'Snow', desc: 'Moderate snowfall' },
75: { icon: '❄️', label: 'Heavy Snow', desc: 'Heavy snowfall' }, 75: { icon: '❄️', label: 'Heavy Snow', desc: 'Heavy snowfall' },
77: { icon: '❄️', label: 'Snow Grains', desc: 'Snow grains' }, 77: { icon: '❄️', label: 'Snow Grains', desc: 'Snow grains' },
80: { icon: '🌧', label: 'Light Showers', desc: 'Slight rain showers' }, 80: { icon: '🌦', label: 'Light Showers', desc: 'Slight rain showers' },
81: { icon: '🌧️', label: 'Showers', desc: 'Moderate rain showers' }, 81: { icon: '🌧️', label: 'Showers', desc: 'Moderate rain showers' },
82: { icon: '⛈️', label: 'Heavy Showers', desc: 'Violent rain showers' }, 82: { icon: '⛈️', label: 'Heavy Showers', desc: 'Violent rain showers' },
85: { icon: '🌨️', label: 'Snow Showers', desc: 'Slight snow showers' }, 85: { icon: '🌨️', label: 'Snow Showers', desc: 'Slight snow showers' },

View File

@ -40,7 +40,7 @@ describe('weather-codes', () => {
}) })
it('handles rain codes', () => { it('handles rain codes', () => {
expect(getWeatherInfo(61).icon).toBe('🌧') expect(getWeatherInfo(61).icon).toBe('🌦')
expect(getWeatherInfo(63).icon).toBe('🌧️') expect(getWeatherInfo(63).icon).toBe('🌧️')
expect(getWeatherInfo(65).icon).toBe('🌧️') expect(getWeatherInfo(65).icon).toBe('🌧️')
}) })
@ -52,7 +52,7 @@ describe('weather-codes', () => {
}) })
it('handles showers', () => { it('handles showers', () => {
expect(getWeatherInfo(80).icon).toBe('🌧') expect(getWeatherInfo(80).icon).toBe('🌦')
expect(getWeatherInfo(81).icon).toBe('🌧️') expect(getWeatherInfo(81).icon).toBe('🌧️')
expect(getWeatherInfo(82).icon).toBe('⛈️') expect(getWeatherInfo(82).icon).toBe('⛈️')
}) })