Add list-weather.ps1

This commit is contained in:
Markus Fleschutz 2022-11-10 13:07:47 +01:00
parent dae6f7ab3a
commit 7cd93cfc0a

View File

@ -1,6 +1,6 @@
<# <#
.SYNOPSIS .SYNOPSIS
Lists the hourly weather report Lists the weather report
.DESCRIPTION .DESCRIPTION
This PowerShell script lists the hourly weather report. This PowerShell script lists the hourly weather report.
.PARAMETER Location .PARAMETER Location
@ -22,7 +22,8 @@ function Describe { param([string]$Desc)
"Light drizzle" { return "💧light drizzle" } "Light drizzle" { return "💧light drizzle" }
"Light rain shower" { return "💧light rain " } "Light rain shower" { return "💧light rain " }
"Mist" { return "🌫 misty " } "Mist" { return "🌫 misty " }
"Partly cloudy" { return "bit cloudy " } "Overcast" { return "overcast " }
"Partly cloudy" { return "partly cloudy" }
"Sunny" { return "sunny " } "Sunny" { return "sunny " }
default { return "$Desc" } default { return "$Desc" }
} }