Alarm state info with Zone Name

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
p3k074
Posts: 8
Joined: Mon Mar 05, 2012 8:35 pm

Alarm state info with Zone Name

Post by p3k074 »

Hi,

Its possible logging any "alarm state" with name of Zone which is going to alarm state ?
I have few zone define but need parse log only with only one of them. Now i cant. Only whole camera alarm state will be logged.
p3k074
Posts: 8
Joined: Mon Mar 05, 2012 8:35 pm

Re: Alarm state info with Zone Name

Post by p3k074 »

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

Re: Alarm state info with Zone Name

Post by asker »

ZoneMinder already records the name of the zone today in the "Notes" field of every even, which is also accessible via APIs

For example:

https://myserver/zm/api/events/282529.json

returns, amongst other fields:

Code: Select all

"Notes": "Motion: door, stairs"
Where door and stairs are the zone names where motion was detected.
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
p3k074
Posts: 8
Joined: Mon Mar 05, 2012 8:35 pm

Re: Alarm state info with Zone Name

Post by p3k074 »

Yes , right.

But will be great when zone name will be logged in standard log on filestystem when some zone going to alarm state.

In my case for now im use external script for watching alert states in real time.
I cant do it on standard ZM filter because its not proper fired in 1-2 sec after alarm state starting.
I have 4-5 min delay - its not possible used it for real time monitoring and executin any external scripts.
Thats why i make script watching log and when any camera going to alarm state my script is fired in 1sec.
Work great and fast. But work only for camer not for zones.

Will be great when alram state for some zone will be loged for log with writing name camera + zone name.

Its possbile ?
Post Reply