I am looking for information like the frame with the highest score in an alarm. I believe this is available after an monitor leaves the alarm state. could some one tell me what state that would be? where would I look in zm_monitor.cpp?
in addition, is there a way to find the event image with the max score?
the state after alarm state
sorry for the abreviation. this is a follow up of the "long email delay" thread.
http://www.zoneminder.com/forums/viewtopic.php?t=5060
I want to cut into the source code to get the creation of a new event without waiting for zmfilter to poll it. I am able to get the event creation by tapping into the code at "Gone into alarm state" line in zm_monitor.cpp. however, at that point, the max_score of the event is still 0, because the event has not yet gathered all its images.
I like to know where should I tap in after all the event images have been sampled, so that I can get the image number which has the highest score. The question is which .cpp file and where in the file?
http://www.zoneminder.com/forums/viewtopic.php?t=5060
I want to cut into the source code to get the creation of a new event without waiting for zmfilter to poll it. I am able to get the event creation by tapping into the code at "Gone into alarm state" line in zm_monitor.cpp. however, at that point, the max_score of the event is still 0, because the event has not yet gathered all its images.
I like to know where should I tap in after all the event images have been sampled, so that I can get the image number which has the highest score. The question is which .cpp file and where in the file?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
The state you are talking about is the ALERT state, however this can be reactivated into the ALARM state to continue the alarm. You probably want the transition from ALERT to IDLE. Look zm_monitor.cpp for where events get destroyed ('delete event') or in the Event class destructor.
There are plenty of examples of sampling only the highest scoring event in the php files if you want to crib the SQL syntax.
Phil
There are plenty of examples of sampling only the highest scoring event in the php files if you want to crib the SQL syntax.
Phil