[solved] zmtrigger question / problem

Forum for questions and support relating to the 1.24.x releases only.
Locked
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

[solved] zmtrigger question / problem

Post 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.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post 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.
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post 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)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

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