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}'"