mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-28 08:38:38 +01:00
Update list-weather.ps1
This commit is contained in:
parent
985db706ad
commit
c3b3b492d4
@ -40,16 +40,22 @@ function GetDescription { param([string]$Text)
|
||||
|
||||
function GetWindDir { param([string]$Text)
|
||||
switch($Text) {
|
||||
"NNW" { return "↓" }
|
||||
"N" { return "↓" }
|
||||
"NNE" { return "↓" }
|
||||
"NE" { return "↙" }
|
||||
"ENE" { return "←" }
|
||||
"E" { return "←" }
|
||||
"ESE" { return "↖" }
|
||||
"SE" { return "↖" }
|
||||
"SSE" { return "↑" }
|
||||
"S" { return "↑" }
|
||||
"SSW" { return "↗" }
|
||||
"SSW" { return "↑" }
|
||||
"SW" { return "↗" }
|
||||
"WSW" { return "↗" }
|
||||
"WSW" { return "→" }
|
||||
"W" { return "→" }
|
||||
default { return "$Text" }
|
||||
"WNW" { return "→" }
|
||||
default { return "$Text" }
|
||||
}
|
||||
}
|
||||
|
||||
@ -75,7 +81,7 @@ try {
|
||||
if ($Day -eq 0) {
|
||||
Write-Host -foregroundColor green "TODAY 🌡°C ☂️mm 💧 💨km/h ☀️UV ☁️ at $Area ($Region, $Country)"
|
||||
} elseif ($Day -eq 1) {
|
||||
Write-Host -foregroundColor green "Tomorrow"
|
||||
Write-Host -foregroundColor green "TOMORROW"
|
||||
} else {
|
||||
Write-Host -foregroundColor green "Day after tomorrow"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user