Added simulate-presence.ps1

This commit is contained in:
Markus Fleschutz
2020-11-30 15:28:56 +00:00
parent 16adcce777
commit d677c7cc3b
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,19 @@
#!/snap/bin/powershell
# Syntax: ./simulate-presence.ps1
# Description: simulates the human presence against burglars
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
function SwitchLight {
}
SwitchLight 1
sleep 60
SwitchLight 0
sleep 10
exit 0