Update check-cpu.ps1

This commit is contained in:
Markus Fleschutz 2021-12-01 10:25:03 +01:00
parent a77df3fe52
commit 717dc11d6d

View File

@ -23,17 +23,17 @@ try {
}
if ($Temp -gt 80) {
$Reply = "⚠️ CPU has $Temp °C: too high!"
$Reply = "CPU has $Temp °C: too high!"
} elseif ($Temp -gt 50) {
$Reply = "✔️ CPU has $Temp °C: quite high"
$Reply = "CPU has $Temp °C: quite high"
} elseif ($Temp -gt 0) {
$Reply = "✔️ CPU has $Temp °C"
$Reply = "CPU has $Temp °C"
} elseif ($Temp -gt -20) {
$Reply = "✔️ CPU has $Temp °C: quite low"
$Reply = "CPU has $Temp °C: quite low"
} else {
$Reply = "⚠️ CPU has $Temp °C: too low!"
$Reply = "CPU has $Temp °C: too low!"
}
"$Reply"
"✔️ $Reply"
& "$PSScriptRoot/speak-english.ps1" "$Reply"
exit 0 # success
} catch {