add debug

This commit is contained in:
Antonio J. Delgado 2023-03-20 22:39:55 +02:00
parent a13f6cc048
commit 4edcfb5334

View file

@ -232,6 +232,7 @@ if [ -n "${ntfy_server}" ]; then
ntfy_password="$(cat "${ntfy_password_file}")"
ntfy_data="${data}, \"topic\": \"motion_detection\""
message "Sending event to ntfy server '${ntfy_server}/motion_detection' ..."
message "Data: ${ntfy_data}"
curl -s "${ntfy_server}" -d "${ntfy_data}"
return_code=$?
if [ $return_code != 0 ]; then