From e22c6a7ea80f90725db535d137cb8bd673812425 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Fri, 2 Dec 2022 14:55:07 +0100 Subject: [PATCH] Update list-weather.ps1 --- Scripts/list-weather.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/list-weather.ps1 b/Scripts/list-weather.ps1 index ddfa9c89..bf5f9ac7 100755 --- a/Scripts/list-weather.ps1 +++ b/Scripts/list-weather.ps1 @@ -71,7 +71,7 @@ try { [int]$Day = 0 foreach($Hourly in $Weather.weather.hourly) { $Hour = $Hourly.time / 100 - $Temp = $(($Hourly.tempC.toString()).PadLeft(2)) + $Temp = $(($Hourly.tempC.toString()).PadLeft(3)) $Precip = $Hourly.precipMM $Humidity = $(($Hourly.humidity.toString()).PadLeft(3)) $Pressure = $Hourly.pressure @@ -83,7 +83,7 @@ try { $Desc = GetDescription $Hourly.weatherDesc.value if ($Hour -eq 0) { if ($Day -eq 0) { - Write-Host -foregroundColor green "TODAY 🌡°C ☂️mm 💧 💨km/h ☀️UV ☁️ 👁km at $Area ($Region, $Country)" + Write-Host -foregroundColor green "TODAY 🌡°C ☂️mm 💧 💨km/h ☀️UV ☁️ 👁km at $Area ($Region, $Country)" } elseif ($Day -eq 1) { Write-Host -foregroundColor green "TOMORROW" } else { @@ -91,7 +91,7 @@ try { } $Day++ } - "$(($Hour.toString()).PadLeft(2))°° $Temp° $Precip $Humidity% $WindSpeed $WindDir $UV $Clouds% $Visib $Desc" + "$(($Hour.toString()).PadLeft(2))°° $Temp° $Precip $Humidity% $($WindDir)$WindSpeed $UV $Clouds% $Visib $Desc" } exit 0 # success } catch {