home-server/roles/motion_back/templates/email.sh.j2

10 lines
245 B
Plaintext
Raw Normal View History

2023-12-30 16:32:52 +01:00
#!/usr/bin/env bash
2020-10-10 16:37:52 +02:00
# $1: camera
# $2: event number
# $3: ISO date
# $4: ISO time
printf 'Camera: %s\nEvent: %s\nDate: %s %s\n\nCloud: %s' \
"$1" "$2" "$3" "$4" '{{motion_cloud_url}}' \
| mail -s 'Motion event' {{motion_email_recipient}}