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

@ -30,6 +30,7 @@ The following PowerShell scripts can be found in the `Scripts/` subfolder:
* [send-udp.ps1](Scripts/send-udp.ps1) - sends a UDP datagram message to the given IP address and port
* [SHA1.ps1](Scripts/SHA1.ps1) - prints the SHA1 checksum of the given file
* [SHA256.ps1](Scripts/SHA256.ps1) - prints the SHA256 checksum of the given file
* [simulate-presence.ps1](Scripts/simulate-presence.ps1) - simulates the human presence against burglars
* [speak.ps1](Scripts/speak.ps1) - speaks the given text by text-to-speech (TTS)
* [take-screenshot.ps1](Scripts/take-screenshot.ps1) - takes a single screenshot
* [take-screenshots.ps1](Scripts/take-screenshots.ps1) - takes multiple screenshots

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