mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 00:13:36 +01:00
Added simulate-presence.ps1
This commit is contained in:
parent
16adcce777
commit
d677c7cc3b
@ -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
|
* [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
|
* [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
|
* [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)
|
* [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-screenshot.ps1](Scripts/take-screenshot.ps1) - takes a single screenshot
|
||||||
* [take-screenshots.ps1](Scripts/take-screenshots.ps1) - takes multiple screenshots
|
* [take-screenshots.ps1](Scripts/take-screenshots.ps1) - takes multiple screenshots
|
||||||
|
19
Scripts/simulate-presence.ps1
Normal file
19
Scripts/simulate-presence.ps1
Normal 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
|
Loading…
Reference in New Issue
Block a user