This commit is contained in:
Antonio J. Delgado 2023-03-20 22:43:50 +02:00
parent 52aaaa0a2b
commit 64a2ccae99

View file

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