Improved the scripts

This commit is contained in:
Markus Fleschutz
2021-02-10 19:25:48 +01:00
parent 47459e0139
commit 60eb59b52a
20 changed files with 26 additions and 23 deletions

View File

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