Page 1 of 1
zero pad event ID numbers
Posted: Fri Oct 24, 2014 6:53 pm
by BiloxiGeek
Is there an option to pad the event ID numbers with leading zeros? I've looked through the options and couldn't find it anywhere.
Re: zero pad event ID numbers
Posted: Mon Oct 27, 2014 7:56 am
by Nerre
In 1.25 there is EVENT_IMAGE_DIGITS in Config tab, setting the number of digits to use (I have it set to 3 so events are 001 and up).
Re: zero pad event ID numbers
Posted: Mon Oct 27, 2014 10:16 am
by BiloxiGeek
That works fine for the image files, but doesn't affect the event ID #.
Your event ID's will still be:
1
...
9
10
11
...
99
100
101
...
999
1000
1001
...
9999
10000
10001
...
99999
Not sure if it starts at 0 or 1 when the event ID rolls over.
Without zero padding sorting a list of ID's from the command line becomes a bit tricky if they've rolled over recently or gone from 2 digits to 3, 3 digits to 4 etc.
P.S. Just checked, that option has the same name in 1.27.
Re: zero pad event ID numbers
Posted: Mon Oct 27, 2014 12:11 pm
by Nerre
I've always thought that my setting of 3 there is what makes my events go from Event-000 and upwards. You have tried changing it?
Re: zero pad event ID numbers
Posted: Mon Oct 27, 2014 3:53 pm
by BiloxiGeek
I have mine set to 5 digits. It doesn't affect the event ID #'s. While doing some image handling outside of zoneminder I recently ran into the problem. When you set a camera to the record mode it starts recording 10 minute long events. It'll just keep creating new events as long as it's set to that mode. On one occasion the events started with an ID # something like 947. As that recording progressed it rolled over to 4 digit ID's and then I had to do some jiggery-pokery with the subdirectories to make my processing work.
I set that camera to record at 2 FPS to get a time-lapse video. Most of my processing of the events has been after the fact and outside of zoneminder using ffmpeg and a few other tools.