Motion - Support Question 2014x 08x 19x 145310

Add ability to use conversion specifiers for target_dir

Question

This is an enhancement request. Please make it so that target_dir will accept date conversion specifiers, such as %Y, %m, and %d, so that I can store motion results by calendar date. In other words, it would be great if I can use this setting:

target_dir /path/DONEm%d

Of course, this means that motion will need automatically increment the date (as it now does with files) and create the new path at the start of each day.

Thank you for considering this request.

Paste in your error messages, config settings, terminal window output etc in this text field.

Environment

Motion version: 3.2.12
ffmpeg version: 0.8.13-6:0.8.13-1+rpi1
Libraries: ffmpeg, mysql, postgresql
Server OS: Raspbian GNU/Linux 7 (wheezy)
-- DavidYancey - 19 Aug 2014

Answer

You can use macros in picture_filename, like this:

picture_filename %Y/%m/%d/%H-%M

This will create all needed subdirs and put there jpg, like 2014/09/30/18-17.jpg

-- TosiaraT - 30 Sep 2014
Topic revision: r2 - 30 Sep 2014, TosiaraT
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.