fix command line

This commit is contained in:
Antonio J. Delgado 2023-03-20 22:39:05 +02:00
parent 072ae9c267
commit a13f6cc048
2 changed files with 2 additions and 2 deletions

View file

@ -231,7 +231,7 @@ 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}' ..."
message "Sending event to ntfy server '${ntfy_server}/motion_detection' ..."
curl -s "${ntfy_server}" -d "${ntfy_data}"
return_code=$?
if [ $return_code != 0 ]; then

View file

@ -2,4 +2,4 @@ hass_token='{{ vault_haos_api_calls_token }}'
hass_uri='{{ home_assistant_server_uri }}'
motion_config='/etc/motion/motion.conf'
# debug_level='DEBUG'
on_movie_end="/usr/local/bin/process_motion_event.sh --ntfy-server '{{ motion_bot_ntfy_server }}' --ntfy-user '{{ motion_bot_ntfy_username }}' --ntfy-password-file '{{ motion_bot_ntfy_password_file }}' --move-to /srv/expendable_data/motion 192.168.1.251:/srv/expendable_data/ --move-to-port 1122 --remove-picture --email-destination '{{ recipient }}' --home-assistant-url http://192.168.1.248:8123 --home-assistant-token '{{ vault_haos_api_calls_token }}' --signal-destination '+358401871182' -e 'on_movie_end' -t '%t' -w '%w' -J '%J' -i '%i' -C '%C' -o '%o' -c '%$' -v '%v' -D '%D' -h '%h' -K '%K' -L '%L' -f '%f' -Q '%Q' -F '%fps' -q '%q' -N '%N' -n '%n' -h '%host'"
on_movie_end="/usr/local/bin/process_motion_event.sh --ntfy-server '{{ motion_bot_ntfy_server }}' --ntfy-user '{{ motion_bot_ntfy_username }}' --ntfy-password-file '{{ motion_bot_ntfy_password_file }}' --remove-picture --email-destination '{{ recipient }}' --home-assistant-url '{{ home_assistant_server_uri }}' --home-assistant-token '{{ vault_haos_api_calls_token }}' --signal-destination '+358401871182' -e 'on_movie_end' -t '%t' -w '%w' -J '%J' -i '%i' -C '%C' -o '%o' -c '%$' -v '%v' -D '%D' -h '%h' -K '%K' -L '%L' -f '%f' -Q '%Q' -F '%fps' -q '%q' -N '%N' -n '%n' -h '%host'"