Trigger Function - n Time Prior

Forum for questions and support relating to the 1.29.x releases only.
Locked
dmroeder
Posts: 5
Joined: Thu Sep 08, 2016 9:42 pm

Trigger Function - n Time Prior

Post by dmroeder »

Hello,

I have ZM installed on a machine running Linux Mint (Mint 18, ZM 1.29.0), I've been tinkering around for a couple of days and everything is working great. Got it installed and recording pretty quickly. For testing, I setup the trigger and set my camera to nodect, sent a command via Python and I'll be darned, it worked first try!

My project I'm working on is monitoring a machine in our shop. From my machine, I can get status when it faults, I can send that to ZM and trigger it to record (and this currently works). This may sound silly, but what I really need is a certain amount of time prior to the event to see what might have caused it. So I imagine it like this, I'm constantly recording, an external event happens, save an event at 20 seconds prior to the trigger and record for the next 20 seconds (sent with the external trigger). I searched around for a bit and although I've seen a few posts asking for what seemed like the same thing, I didn't see any responses.

Should I just forget it? Or does anyone have a clever way to accomplish this?

I was thinking that a round about way would be to have a constant recording and a nodect on the same monitor. Then when I see an event on the nodect, I could try to find that point in the constant recording. It would just be a little clunky. Especially if you showed up an hour after the event happened.

Thanks for reading!
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Trigger Function - n Time Prior

Post by SteveGilvarry »

In monitor setup go to Buffer tab and checkout pre and post event buffers. Never tried that with triggers, but I believe it should work. Note buffers are in frames so 20 x FPS.

http://zoneminder.readthedocs.io/en/sta ... uffers-tab
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Trigger Function - n Time Prior

Post by knight-of-ni »

This is by definition what the prebuffer does, and yes they work with triggers.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
dmroeder
Posts: 5
Joined: Thu Sep 08, 2016 9:42 pm

Re: Trigger Function - n Time Prior

Post by dmroeder »

Oh my goodness, there it is, right in the manual! Thanks for showing me. I'm excited to try this out!
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Trigger Function - n Time Prior

Post by SteveGilvarry »

RTFM FTW!!!
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
dmroeder
Posts: 5
Joined: Thu Sep 08, 2016 9:42 pm

Re: Trigger Function - n Time Prior

Post by dmroeder »

SteveGilvarry wrote:RTFM FTW!!!
Touché sir, touché.
Locked