mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-28 01:28:50 +01:00
Improve list-hourly-weather.ps1
This commit is contained in:
parent
27899b0a2c
commit
cb6679392b
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user