Improve the done output

This commit is contained in:
Markus Fleschutz
2021-08-24 20:46:03 +02:00
parent 13d4bc48e3
commit 86a0db9640
31 changed files with 59 additions and 47 deletions

View File

@ -21,7 +21,7 @@ try {
$Result = Invoke-RestMethod "http://$($Host)/relay/0?turn=$($TurnMode)&timer=$($Timer)"
write-host -foregroundColor green "✔️ Shelly1 device at $Host switched to $TurnMode for $Timer second(s)"
"✔️ Shelly1 device at $Host switched to $TurnMode for $Timer second(s)"
exit 0
} catch {
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"