Add alert script
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
readonly RECIPIENT=""
|
readonly RECIPIENT="${NOTIFICATION_RECIPIENT}"
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
echo "${HOSTNAME}: motion detected at $(date '+%Y-%m-%dT%H:%M:%S%:z')." | \
|
echo "${HOSTNAME}: motion detected at $(date '+%Y-%m-%dT%H:%M:%S%:z')." | \
|
||||||
|
|||||||
Reference in New Issue
Block a user