mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-22 20:51:17 +01:00
Improved switch-shelly1.ps1
This commit is contained in:
parent
b1abddf94f
commit
929e9a801d
@ -16,7 +16,7 @@ try {
|
||||
[String]$TurnMode = read-host "Enter turn mode (on/off/toggle)"
|
||||
}
|
||||
if ($Timer -eq -999) {
|
||||
[Int]$Timer = read-host "Enter timer (0=endless)"
|
||||
[Int]$Timer = read-host "Enter timer in seconds (0=endless)"
|
||||
}
|
||||
|
||||
$Result = Invoke-RestMethod "http://$($IPaddr)/relay/0?turn=$($TurnMode)&timer=$($Timer)"
|
||||
|
Loading…
Reference in New Issue
Block a user