mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-28 15:46:35 +01:00
Improve output of list-weather.ps1
This commit is contained in:
parent
dc2c377cd7
commit
67cb8ac816
@ -28,15 +28,15 @@ try {
|
|||||||
$Desc = $Hourly.weatherDesc.value
|
$Desc = $Hourly.weatherDesc.value
|
||||||
if ($Hour -eq 0) {
|
if ($Hour -eq 0) {
|
||||||
if ($Day -eq 0) {
|
if ($Day -eq 0) {
|
||||||
write-host -foregroundColor green "🕗 🌡°C ☂️ 💨 from ☀️ ☁️ TODAY at $Area ($Region, $Country)"
|
write-host -foregroundColor green "🕗 🌡°C ☂️ 💨 from ☀️ ☁️ TODAY at $Area ($Region, $Country)"
|
||||||
} elseif ($Day -eq 1) {
|
} elseif ($Day -eq 1) {
|
||||||
write-host -foregroundColor green " TOMORROW"
|
write-host -foregroundColor green " TOMORROW"
|
||||||
} else {
|
} else {
|
||||||
write-host -foregroundColor green " DAY AFTER TOMORROW"
|
write-host -foregroundColor green " DAY AFTER TOMORROW"
|
||||||
}
|
}
|
||||||
$Day++
|
$Day++
|
||||||
}
|
}
|
||||||
"$(($Hour.toString()).PadLeft(2))°° $(($Temp.toString()).PadLeft(2))° $($Precip)mm $($Humidity)% $(($WindSpeed.toString()).PadLeft(2))km/h $WindDir`tUV$($UV) $(($Clouds.toString()).PadLeft(2))% $($Pressure)hPa $Desc"
|
"$(($Hour.toString()).PadLeft(2))°° $(($Temp.toString()).PadLeft(2))° $($Precip)mm $($Humidity)% $(($WindSpeed.toString()).PadLeft(2))km/h $WindDir`tUV$($UV) $(($Clouds.toString()).PadLeft(3))% $($Pressure)hPa $Desc"
|
||||||
$Hour++
|
$Hour++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user