zm API mods/extensions
Posted: Sat Feb 25, 2006 3:42 am
I've recently been working with the new 1.22.0 perl API. It is a great piece of work! The downside is that it has me wishing for more. Details follow:
1) Motion event cause/text not set in shared memory. I'm not seeing the motion cause (and text has always been blank) from zmShmRead($mon, 'trigger_data:trigger_cause'). (Note: I can overcome this now; but, the suggested ability to report zone info in the text field has me salivating. Will this be readily parsable?)
2) Similar to the above, forced web alarms do not clear the cause (and perhaps text field) values in shared memory on suspend web (requiring a manual detection and forced zmShmWrite w/ blanks.
3) Could a zmDbGetTrigger be added to Database.pm (similar to zmDbGetMonitor)?
4) I'm envisioning an ability to override zm's control over a camera. Is something comparable to SharedMem::zmMonitorSuspend/Resume a possibility?
Gregg
1) Motion event cause/text not set in shared memory. I'm not seeing the motion cause (and text has always been blank) from zmShmRead($mon, 'trigger_data:trigger_cause'). (Note: I can overcome this now; but, the suggested ability to report zone info in the text field has me salivating. Will this be readily parsable?)
2) Similar to the above, forced web alarms do not clear the cause (and perhaps text field) values in shared memory on suspend web (requiring a manual detection and forced zmShmWrite w/ blanks.
3) Could a zmDbGetTrigger be added to Database.pm (similar to zmDbGetMonitor)?
4) I'm envisioning an ability to override zm's control over a camera. Is something comparable to SharedMem::zmMonitorSuspend/Resume a possibility?
Gregg