add auth
This commit is contained in:
parent
52aaaa0a2b
commit
64a2ccae99
1 changed files with 1 additions and 1 deletions
|
@ -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}'"
|
||||
|
|
Loading…
Reference in a new issue