From a025ccd77e8a36fb8b9acc491c7dc0a371c4cf5f Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 20 Mar 2023 22:49:11 +0200 Subject: [PATCH] fix data for ntfy --- files/process_motion_event.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/process_motion_event.sh b/files/process_motion_event.sh index 74a0e41..5cce59d 100644 --- a/files/process_motion_event.sh +++ b/files/process_motion_event.sh @@ -207,7 +207,6 @@ if [ -n "${file}" ]; then fi fi -ntfy_data="{ ${data}, \"topic\": \"motion_detection\" }" data="{${data}}" if [ "${signal_alert}" == "true" ]; then message "Sending to Signal destination '${signal_destination}'..." @@ -230,6 +229,7 @@ if [ "${mail_alert}" == "true" ]; then fi if [ -n "${ntfy_server}" ]; then + ntfy_data="{ ${data}, \"topic\": \"motion_detection\", \"message\": \"Motion event '${event_type}' on host '${motion_host}' camera '${camera_name}'\", \"email\": \"${email_destination}\" }" ntfy_password="$(cat "${ntfy_password_file}")" message "Sending event to ntfy server '${ntfy_server}/motion_detection' ..." message "Data: ${ntfy_data}"