fix data for ntfy
This commit is contained in:
parent
64a2ccae99
commit
a025ccd77e
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,6 @@ if [ -n "${file}" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ntfy_data="{ ${data}, \"topic\": \"motion_detection\" }"
|
|
||||||
data="{${data}}"
|
data="{${data}}"
|
||||||
if [ "${signal_alert}" == "true" ]; then
|
if [ "${signal_alert}" == "true" ]; then
|
||||||
message "Sending to Signal destination '${signal_destination}'..."
|
message "Sending to Signal destination '${signal_destination}'..."
|
||||||
|
@ -230,6 +229,7 @@ if [ "${mail_alert}" == "true" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${ntfy_server}" ]; then
|
if [ -n "${ntfy_server}" ]; then
|
||||||
|
ntfy_data="{ ${data}, \"topic\": \"motion_detection\", \"message\": \"Motion event '${event_type}' on host '${motion_host}' camera '${camera_name}'\", \"email\": \"${email_destination}\" }"
|
||||||
ntfy_password="$(cat "${ntfy_password_file}")"
|
ntfy_password="$(cat "${ntfy_password_file}")"
|
||||||
message "Sending event to ntfy server '${ntfy_server}/motion_detection' ..."
|
message "Sending event to ntfy server '${ntfy_server}/motion_detection' ..."
|
||||||
message "Data: ${ntfy_data}"
|
message "Data: ${ntfy_data}"
|
||||||
|
|
Loading…
Reference in a new issue