This commit is contained in:
Markus Fleschutz 2021-12-02 15:26:52 +01:00
parent 909c8fa0ff
commit aa22e90beb

View File

@ -27,11 +27,11 @@ try {
} elseif ($Temp -gt 50) {
$Reply = "$($Temp)°C CPU temperature, that's quite high"
} elseif ($Temp -gt 0) {
$Reply = "$(Temp)°C CPU temperature"
$Reply = "$($Temp)°C CPU temperature"
} elseif ($Temp -gt -20) {
$Reply = "$(Temp)°C CPU temperature, that's quite low"
$Reply = "$($Temp)°C CPU temperature, that's quite low"
} else {
$Reply = "$(Temp)°C CPU temperature, that's too low!"
$Reply = "$($Temp)°C CPU temperature, that's too low!"
}
"✔️ $Reply"
& "$PSScriptRoot/speak-english.ps1" "$Reply"