Page 1 of 1

How to zip events with no directory names?

Posted: Tue Oct 11, 2016 3:13 pm
by ricardomenzer
I'm using Zoneminder 1.29.0 and configured A filter to upload the events via FTP to a server. Everything is working fine, except that the zip file contains all the directory names. I want to get only the image filaes at the "root" of the zip. Is that possible?
I can see the zip command has the -j switch, which does what I want, but I couldn't find anywhere in Zoneminder's configuration to add that.

Below are the filter and the Configurations regarding the Upload options.
Maybe I can use a custom command on all matches to achieve this?
filter_opt.png
filter_opt.png (17.7 KiB) Viewed 1393 times
options_opt.png
options_opt.png (41.35 KiB) Viewed 1393 times

Re: How to zip events with no directory names?

Posted: Tue Oct 11, 2016 3:31 pm
by iconnor
Problem is that the jpg filenames are not unique.

The directory structure has meaning.

In any event, zm doesn't currently support doing that. You will have to write that yourself.

Re: How to zip events with no directory names?

Posted: Tue Oct 11, 2016 3:39 pm
by ricardomenzer
iconnor wrote:Problem is that the jpg filenames are not unique.
Even for a single Event? In my tests, it seems that all files are stored in a single directory inside the zip file.
I understand that, for different events, the filenames may be the same.

The directory is a kind of datestamp, isn't it? That information is not relevant to my application (the timestamp is in the frames already).

Re: How to zip events with no directory names?

Posted: Tue Oct 11, 2016 3:41 pm
by iconnor
You could turn off the deep storage mode entirely, in which case it won't do the timestamp dir structure.