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.
[solved] zmtrigger question / problem
-
- Posts: 260
- Joined: Tue Aug 21, 2007 1:42 pm
- Location: Baltimore, MD
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.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?
I really don't understand what your asking.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?
-
- Posts: 260
- Joined: Tue Aug 21, 2007 1:42 pm
- Location: Baltimore, MD
I believe this was what made it work - thanks.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 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.plI really don't understand what your asking.
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 itkylejohnson wrote:I believe this was what made it work - thanks.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 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.plI really don't understand what your asking.
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)
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.