diff --git a/files/process_motion_event.sh b/files/process_motion_event.sh index a66ed64..08e3520 100644 --- a/files/process_motion_event.sh +++ b/files/process_motion_event.sh @@ -170,7 +170,7 @@ if [ "${event_type}" == "on_movie_end" ]; then --message "Clip termino en camara '${camera_name}' (${motion_host}). Evento: #${event}. File: ${file_uri}" message "Sending email to '${email_destination}'..." - echo "${data}" | mail -s "Motion event '${event_type}' on '${host}'" "${email_destination}" + echo "${data}" | jq '.' | mail -s "Motion event '${event_type}' on host '${motion_host}' camera '${camera_name}'" "${email_destination}" fi message "Sending Home Assistant event ..."