fix filename
This commit is contained in:
parent
b684813054
commit
677f9a8bcd
1 changed files with 2 additions and 2 deletions
|
@ -239,8 +239,8 @@ if [ -n "${ntfy_server}" ]; then
|
|||
if [ ${return_code} != 0 ]; then
|
||||
message "Error ${return_code} processing video file '${file}'. ${result}"
|
||||
fi
|
||||
ntfy_data="{ \"topic\": \"motion_detection\", \"message\": \"Event ${event_type} on host ${motion_host} camera ${camera_name}\", \"filename\": \"${temp_file}\" }"
|
||||
curl -s "${ntfy_server}" -T "${temp_file}" -u "${ntfy_user}:${ntfy_password}" -d "${ntfy_data}"
|
||||
ntfy_data="{ \"topic\": \"motion_detection\", \"message\": \"Event ${event_type} on host ${motion_host} camera ${camera_name}\", \"filename\": \"$(basename ${file})\" }"
|
||||
curl -s "${ntfy_server}" -T "${temp_file}" -H "Filename: $(basename "${file}")"-u "${ntfy_user}:${ntfy_password}" -d "${ntfy_data}"
|
||||
return_code=$?
|
||||
# rm "${temp_file}"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue