Improved list-weather.ps1

This commit is contained in:
Markus Fleschutz 2025-02-17 13:09:04 +01:00
parent 784ebdcf31
commit 49b529496a

View File

@ -47,7 +47,7 @@ function GetDescription([string]$text) {
"Moderate snow" { return "❄️ moderate snow" }
"Mist" { return "🌫 misty" }
"Overcast" { return "☁️ overcast" }
"Partly cloudy" { return "⛅️partly cloudy" }
"Partly cloudy" { return "⛅️ partly cloudy" }
"Patchy heavy snow" { return "❄️ patchy heavy snow ⚠️" }
"Patchy light drizzle" { return "💧 patchy light drizzle" }
"Patchy light rain" { return "💧 patchy light rain" }
@ -61,8 +61,8 @@ function GetDescription([string]$text) {
"Patchy snow nearby" { return "❄️ patchy snow nearby" }
"Patchy snow possible" { return "❄️ patchy snow possible" }
"Sunny" { return "☀️ sunny" }
"Thundery outbreaks possible" { return "⚡️thundery outbreaks possible" }
"Thundery outbreaks in nearby" { return "⚡️thundery outbreaks in nearby" }
"Thundery outbreaks possible" { return "⚡️ thundery outbreaks possible" }
"Thundery outbreaks in nearby" { return "⚡️ thundery outbreaks in nearby" }
default { return $text }
}
}