mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-07-14 19:35:03 +02:00
Update weather-alert.ps1
This commit is contained in:
@ -11,10 +11,10 @@ $GeoLocation="" # empty means determine automatically
|
|||||||
function Check {
|
function Check {
|
||||||
param ([int]$Value, [int]$NormalMin, [int]$NormalMax, [string]$Unit)
|
param ([int]$Value, [int]$NormalMin, [int]$NormalMax, [string]$Unit)
|
||||||
if ($Value -lt $NormalMin) {
|
if ($Value -lt $NormalMin) {
|
||||||
return "$Value $Unit !"
|
return "$Value $Unit ! "
|
||||||
}
|
}
|
||||||
if ($Value -gt $NormalMax) {
|
if ($Value -gt $NormalMax) {
|
||||||
return "$Value $Unit !"
|
return "$Value $Unit ! "
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user