update emojis

This commit is contained in:
Emil Lerch 2025-12-19 10:37:34 -08:00
parent 048aca4ece
commit 5fd9743e10
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -2,12 +2,12 @@ const types = @import("../weather/types.zig");
pub fn getWeatherEmoji(code: types.WeatherCode) []const u8 { pub fn getWeatherEmoji(code: types.WeatherCode) []const u8 {
return switch (@intFromEnum(code)) { return switch (@intFromEnum(code)) {
200...232 => "", // Thunderstorm 200...232 => "", // Thunderstorm
300...321 => "🌦", // Drizzle 300...321 => "🌦", // Drizzle
500...531 => "🌧", // Rain 500...531 => "🌧", // Rain
600...610, 617...622 => "🌨", // Snow 600...610, 617...622 => "🌨", // Snow
611...616 => "🌧", // Sleet 611...616 => "🌧", // Sleet
701, 741 => "🌫", // Mist/fog 701, 741 => "🌁", // Mist/fog. Also could be 🌫
800 => "☀️", // Clear 800 => "☀️", // Clear
801, 802 => "⛅️", // Few/scattered clouds 801, 802 => "⛅️", // Few/scattered clouds
803, 804 => "☁️", // Broken/overcast clouds 803, 804 => "☁️", // Broken/overcast clouds