Improve list-hourly-weather.ps1

This commit is contained in:
Markus Fleschutz 2021-04-19 11:16:43 +02:00
parent 27899b0a2c
commit cb6679392b

View File

@ -1,4 +1,4 @@
#!/usr/bin/pwsh #!/usr/bin/pwsh
<# <#
.SYNTAX list-hourly-weather.ps1 [<location>] .SYNTAX list-hourly-weather.ps1 [<location>]
.DESCRIPTION lists the hourly weather today .DESCRIPTION lists the hourly weather today
@ -14,7 +14,7 @@ try {
$Area = $Weather.nearest_area.areaName.value $Area = $Weather.nearest_area.areaName.value
$Region = $Weather.nearest_area.region.value $Region = $Weather.nearest_area.region.value
$Country = $Weather.nearest_area.country.value $Country = $Weather.nearest_area.country.value
"Hourly weather today at $Area, $Region ($Country)" "🕗 Hourly weather today at $Area ($Region, $Country)"
[int]$Hour = 0 [int]$Hour = 0
foreach ($Hourly in $Weather.weather.hourly) { foreach ($Hourly in $Weather.weather.hourly) {