Page 1 of 1

New released zmtrigger.pl

Posted: Wed Jan 21, 2009 6:39 pm
by jaume85
Hi people,

I have worked to complement zmtrigger.pl with news options: (ZoneMinder released 1.22.3)

• Enabled and Disabled monitors
• Change function monitors (except None)
• Execute filters previously saved.
• Now monitors have identified by Name and not by Id number.

The format of triggers used by zmtrigger.pl is as follows "<name>|<action>|<namefilter>|<score>|<cause>|<text>|<showtext>" where

• 'name' is the name of the ZM monitor. Case sensitive.
• 'action' is 'on', 'off', 'cancel', ‘show’, ‘enable’, ‘disable’, (‘Monitor’, ‘Modect’, ‘Record’ , ‘Mocord’, ‘Nodect’) and ‘filter’ where 'on' forces an alarm condition on, 'off' forces an alarm condition off and 'cancel' negates the previous 'on' or 'off'. The ‘show’ action merely updates some auxiliary text which can optionally be displayed in the images captured by the monitor. Ordinarily you would use 'on' and 'cancel', 'off' would tend to be used to suppress motion based events. Additionally 'on' and 'off' can take an additional time offset, e.g. on+20 which automatically 'cancel's the previous action after that number of seconds. The ‘enable’ monitor is enabled state and ‘disable’ monitor is disabled state. All functions except None (‘Monitor’, ‘Modect’, ‘Record’ , ‘Mocord’, ‘Nodect’) change monitor function. The ‘filter’ execute filter previously saved.
• ‘namefilter’ is the name of filter execute in action ‘filter’. Case sensitive.
• 'score' is the score given to the alarm, usually to indicate it's importance. For 'on' triggers it should be non-zero, otherwise it should be zero.
• 'cause' is a 32 char max string indicating the reason for, or source of the alarm e.g. 'Relay 1 open'. This is saved in the ‘Cause’ field of the event. Ignored for 'off' or 'cancel' messages
• 'text' is a 256 char max additional info field, which is saved in the ‘Description’ field of an event. Ignored for 'off' or 'cancel' messages.
• 'showtext' is up to 32 characters of text that can be displayed in the timestamp that is added to images. The ‘show’ action is designed to update this text without affecting alarms but the text is updated, if present, for any of the actions. This is designed to allow external input to appear on the images captured, for instance temperature or personnel identity etc.

new zmtrigger.pl --> http://www.megaupload.com/es/?d=NL9H0N0X

PD. I don't post code because it's very long

Posted: Wed Jan 21, 2009 9:19 pm
by Normando
Good mod jaume, but I have a dude. It is for ZM 1.22.3 or 1.23.3?

Re: New released zmtrigger.pl

Posted: Wed Jan 21, 2009 9:31 pm
by cordel
jaume85 wrote: I have worked to complement zmtrigger.pl with news options: (ZoneMinder released 1.22.3)
1.22.3 :wink:

Posted: Fri Feb 12, 2010 11:06 pm
by mrd
If this script is still compatible with zm 1.24.2 why not integrate into the next release? It seems very useful.