Updated list-weather.ps1

This commit is contained in:
Markus Fleschutz 2024-05-31 11:35:59 +02:00
parent 6f8f29de3c
commit 0259513e6c

View File

@ -111,7 +111,7 @@ try {
$desc = GetDescription $hourly.weatherDesc.value.trim()
if ($hour -eq 0) {
if ($day -eq 0) {
Write-Host "TODAY 🌡°C ☂mm 💧 💨km/h UV ☁️ 👁km at $area ($region, $country)" -foregroundColor green
Write-Host "TODAY 🌡°C ☂mm 💧 💨km/h ☀UV ☁️ 👁km at $area ($region, $country)" -foregroundColor green
} elseif ($day -eq 1) {
$date = (Get-Date).AddDays(1)
[string]$dayOfWeek = $date.DayOfWeek