Update weather-alert.ps1

This commit is contained in:
Markus Fleschutz 2020-11-22 10:47:29 +01:00 committed by GitHub
parent 3e1964cf8c
commit 3bfe5a219d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,10 +11,10 @@ $GeoLocation="" # empty means determine automatically
function Check {
param ([int]$Value, [int]$NormalMin, [int]$NormalMax, [string]$Unit)
if ($Value -lt $NormalMin) {
return "$Value $Unit !"
return "$Value $Unit ! "
}
if ($Value -gt $NormalMax) {
return "$Value $Unit !"
return "$Value $Unit ! "
}
return ""
}