From 64a2ccae99370b0a15073932bb7c8426e4fad45d Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 20 Mar 2023 22:43:50 +0200 Subject: [PATCH] add auth --- 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 933b87e..74a0e41 100644 --- a/files/process_motion_event.sh +++ b/files/process_motion_event.sh @@ -233,7 +233,7 @@ if [ -n "${ntfy_server}" ]; then ntfy_password="$(cat "${ntfy_password_file}")" message "Sending event to ntfy server '${ntfy_server}/motion_detection' ..." message "Data: ${ntfy_data}" - curl -s "${ntfy_server}" -d "${ntfy_data}" + curl -s "${ntfy_server}" -u "${ntfy_user}:${ntfy_password}" -d "${ntfy_data}" return_code=$? if [ $return_code != 0 ]; then message "Error ${return_code} publishing in ntfy server '${ntfy}'"