From b42b1c16187059506ba4fb36cc40aafe53ace85a Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 11 Nov 2020 21:10:35 +0000 Subject: [PATCH] Added alert.ps1 --- Scripts/alert.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 Scripts/alert.ps1 diff --git a/Scripts/alert.ps1 b/Scripts/alert.ps1 new file mode 100755 index 00000000..a84478ba --- /dev/null +++ b/Scripts/alert.ps1 @@ -0,0 +1,13 @@ +#!/snap/bin/powershell + +# Syntax: ./alert.ps1 +# Description: sends the given alert message +# Author: Markus Fleschutz +# Source: github.com/fleschutz/PowerShell +# License: CC0 + +echo "ALERT" + +curl --header "Access-Token: o.PZl5XCp6SBl4F5PpaNXGDfFpUJZKAlEb" --header "Content-Type: application/json" --data-binary '{"type": "note", "title": "ALERT", "body": "Intruder alert"}' --request POST https://api.pushbullet.com/v2/pushes + +exit 0