From f1d3bc31ec203f171184ac059bfbe3bcbf951d37 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Fri, 23 Apr 2021 13:06:23 +0200 Subject: [PATCH] Improve list-weather.ps1 --- Scripts/list-weather.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/list-weather.ps1 b/Scripts/list-weather.ps1 index 288a408a..c85ee15f 100755 --- a/Scripts/list-weather.ps1 +++ b/Scripts/list-weather.ps1 @@ -28,15 +28,15 @@ try { $Desc = $Hourly.weatherDesc.value if ($Hour -eq 0) { if ($Day -eq 0) { - "🕗 🌡 ☂️ 💨 ☀️ ☁️ TODAY at $Area ($Region, $Country)" + "🕗 🌡°C ☂️ 💨 ☀️ ☁️ TODAY at $Area ($Region, $Country)" } elseif ($Day -eq 1) { - " TOMORROW" + " TOMORROW" } else { - " DAY AFTER TOMORROW" + " DAY AFTER TOMORROW" } $Day++ } - "$($Hour)°°`t$($Temp)°C`t$($Precip)mm $($Humidity)% $($WindSpeed)km/h from $WindDir`tUV$($UV) $($Pressure)hPa $($Clouds)% $Desc" + "$(($Hour.toString()).PadLeft(2))°° $(($Temp.toString()).PadLeft(2))° $($Precip)mm $($Humidity)% $($WindSpeed)km/h from $WindDir`tUV$($UV) $($Pressure)hPa $($Clouds)% $Desc" $Hour++ }