Page 1 of 1

[solved] zmtrigger question / problem

Posted: Thu Jun 25, 2009 2:09 pm
by kylejohnson
Yao everyone,

I want to use ZM to record based on external triggers, using zmtrigger. I have a question and a problem:

EDIT 1: I got the port binding - not sure how, but it works.
<del>Problem: I have checked the ZM Trigger box in Options -> Systems and the log files say that zmtrigger is starting, yet the port (6802) is not open (netstat -tap). What would cause this?</del>

Question: Is it possible to start recording based on 2 triggers? What I mean is, I'll have two conditions - an external trigger interfacing via zmtrigger.pl, and motion being detected on a separate monitor. If there is a trigger via zmtrigger.pl, and motion is detected on monitor 1, record monitor 2. Can anyone advise on how I can accomplish this?

EDIT 2:
I am going to write an intermediate program that will do the condition matching, which will then send the command to zmtrigger.

Posted: Sat Jun 27, 2009 11:26 pm
by kingofkya
Problem: I have checked the ZM Trigger box in Options -> Systems and the log files say that zmtrigger is starting, yet the port (6802) is not open (netstat -tap). What would cause this?
Most likely You need to disable the serial interface try starting zm trigger from terminal it will tell you what wrong for the most part.

Question: Is it possible to start recording based on 2 triggers? What I mean is, I'll have two conditions - an external trigger interfacing via zmtrigger.pl, and motion being detected on a separate monitor. If there is a trigger via zmtrigger.pl, and motion is detected on monitor 1, record monitor 2. Can anyone advise on how I can accomplish this?
I really don't understand what your asking.

Posted: Mon Jun 29, 2009 1:23 pm
by kylejohnson
Most likely You need to disable the serial interface try starting zm trigger from terminal it will tell you what wrong for the most part.
I believe this was what made it work - thanks.

I really don't understand what your asking.
I did do a pretty poor job of describing my problem. Basically, in modect, a monitor records when one trigger or condition is met: movement. I need two conditions to be met before recording starts, so I am going to use nodect mode and zmtrigger.pl

External Sensor 1 -> Serial -> Custom Script -> If both are met -> zmtrigger.pl
External Sensor 2 -> Serial ------------^

I am going to do a more detailed write-up of my solution once I have everything finished.
Does that make any more sense? :) (probably not)

Posted: Tue Jul 07, 2009 7:29 am
by cordel
kylejohnson wrote:
Most likely You need to disable the serial interface try starting zm trigger from terminal it will tell you what wrong for the most part.
I believe this was what made it work - thanks.

I really don't understand what your asking.
I did do a pretty poor job of describing my problem. Basically, in modect, a monitor records when one trigger or condition is met: movement. I need two conditions to be met before recording starts, so I am going to use nodect mode and zmtrigger.pl

External Sensor 1 -> Serial -> Custom Script -> If both are met -> zmtrigger.pl
External Sensor 2 -> Serial ------------^

I am going to do a more detailed write-up of my solution once I have everything finished.
Does that make any more sense? :) (probably not)
I understand it ;)
Should be fairly simple to do even with a single rs485 link. zmtrigger will handle the trigger so long as your script/program/etc can handle recieving the data and handle the logic, the rest should be fairly strait forward to pass to zmtrigger.