mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-24 02:48:17 +02:00
Updated list-weather.ps1
This commit is contained in:
parent
77081de9db
commit
85e5dfe8f1
@ -59,7 +59,8 @@ function GetDescription { param([string]$text)
|
|||||||
"Patchy snow possible" { return "❄️ patchy snow possible" }
|
"Patchy snow possible" { return "❄️ patchy snow possible" }
|
||||||
"Sunny" { return "☀️ sunny" }
|
"Sunny" { return "☀️ sunny" }
|
||||||
"Thundery outbreaks possible" { return "⚡️thundery outbreaks possible" }
|
"Thundery outbreaks possible" { return "⚡️thundery outbreaks possible" }
|
||||||
default { return "$Text" }
|
"Thundery outbreaks in nearby" { return "⚡️thundery outbreaks in nearby" }
|
||||||
|
default { return $text }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,7 +120,7 @@ try {
|
|||||||
}
|
}
|
||||||
$Day++
|
$Day++
|
||||||
}
|
}
|
||||||
"$(($Hour.toString()).PadLeft(2))°° $Temp° $Precip $Humidity% $($WindDir)$WindSpeed $UV $Clouds% $Visib $Desc"
|
"$(($Hour.toString()).PadLeft(2))h $Temp° $Precip $Humidity% $($WindDir)$WindSpeed $UV $Clouds% $Visib $Desc"
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user