fix json
This commit is contained in:
parent
4edcfb5334
commit
52aaaa0a2b
1 changed files with 1 additions and 1 deletions
|
@ -207,6 +207,7 @@ if [ -n "${file}" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
ntfy_data="{ ${data}, \"topic\": \"motion_detection\" }"
|
||||
data="{${data}}"
|
||||
if [ "${signal_alert}" == "true" ]; then
|
||||
message "Sending to Signal destination '${signal_destination}'..."
|
||||
|
@ -230,7 +231,6 @@ fi
|
|||
|
||||
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}"
|
||||
|
|
Loading…
Reference in a new issue