zero pad event ID numbers

Forum for questions and support relating to the 1.27.x releases only.
Locked
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

zero pad event ID numbers

Post 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.
Nerre
Posts: 100
Joined: Thu Sep 25, 2014 10:22 am

Re: zero pad event ID numbers

Post 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).
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

Re: zero pad event ID numbers

Post 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.
Nerre
Posts: 100
Joined: Thu Sep 25, 2014 10:22 am

Re: zero pad event ID numbers

Post 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?
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

Re: zero pad event ID numbers

Post 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.
Locked