External Trigger Question

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
willemb
Posts: 6
Joined: Fri May 01, 2015 6:05 pm

External Trigger Question

Post by willemb »

Hi there,

Just started with ZM and learning the ropes. So far I like what I'm seeing. I'm wondering if anyone could help me out. I realize I can use an external trigger to start recording but what I was hoping for was an external trigger that would simply change the monitor function say from simply a view monitor or none to motion detection.

My situation is that I want to record only motion detected events when a vehicle is moving within a certain speed range. I suppose I could just write a script that stopped and started the ZM service according to vehicle speed but I was thinking this may create too much of a delay.

Cheers
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: External Trigger Question

Post by asker »

You can use run states to make monitor configurations and change using zmpkg.pl
http://www.zoneminder.com/wiki/index.ph ... or_week.3F

willemb wrote:Hi there,

Just started with ZM and learning the ropes. So far I like what I'm seeing. I'm wondering if anyone could help me out. I realize I can use an external trigger to start recording but what I was hoping for was an external trigger that would simply change the monitor function say from simply a view monitor or none to motion detection.

My situation is that I want to record only motion detected events when a vehicle is moving within a certain speed range. I suppose I could just write a script that stopped and started the ZM service according to vehicle speed but I was thinking this may create too much of a delay.

Cheers
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
misterandres
Posts: 6
Joined: Tue Jul 19, 2016 2:22 am

Re: External Trigger Question

Post by misterandres »

I realize this is an very old post. Sorry for that, Did you find a way around your problem?
Thank you
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: External Trigger Question

Post by asker »

ZoneMinder 1.29 and above now have APIs - you can do this via APIs and no longer need run states.
http://zoneminder.readthedocs.io/en/stable/api.html
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Post Reply