Update list-weather.ps1

This commit is contained in:
Markus Fleschutz 2024-01-26 13:13:35 +01:00
parent 16983fbd21
commit 1e227f3ba4

View File

@ -18,8 +18,8 @@
param([string]$Location = "") # empty means determine automatically param([string]$Location = "") # empty means determine automatically
function GetDescription { param([string]$Text) function GetDescription { param([string]$text)
switch($Text) { switch ($text.trim()) {
"Blizzard" { return "❄️ blizzard ⚠️" } "Blizzard" { return "❄️ blizzard ⚠️" }
"Blowing snow" { return "❄️ blowing snow ⚠️" } "Blowing snow" { return "❄️ blowing snow ⚠️" }
"Clear" { return "🌙 clear" } "Clear" { return "🌙 clear" }
@ -52,6 +52,7 @@ function GetDescription { param([string]$Text)
"Patchy light snow" { return "❄️ patchy light snow" } "Patchy light snow" { return "❄️ patchy light snow" }
"Patchy moderate snow" { return "❄️ patchy moderate snow" } "Patchy moderate snow" { return "❄️ patchy moderate snow" }
"Patchy rain possible" { return "💧 patchy rain possible" } "Patchy rain possible" { return "💧 patchy rain possible" }
"Patchy rain nearby" { return "💧 patchy rain nearby" }
"Patchy snow possible" { return "❄️ patchy snow possible" } "Patchy snow possible" { return "❄️ patchy snow possible" }
"Sunny" { return "☀️ sunny" } "Sunny" { return "☀️ sunny" }
"Thundery outbreaks possible" { return "thundery outbreaks possible" } "Thundery outbreaks possible" { return "thundery outbreaks possible" }