Page 1 of 1

Alarm State of Specific Monitor

Posted: Thu Jan 13, 2011 8:35 am
by seyi
Hello,

I am doing some development in ZoneMinder and I have come across a problem. I need to determine if a monitor is in the alarmed state or not. This works by getting the status for single frame monitors, but when dealing with mpeg it does not. I tried to use the stream call, but I do not see a way to specify the monitor id (and it times out after 2 calls due to the connKey). Is this the right approach? Any help would be appreciated.

Re: Alarm State of Specific Monitor

Posted: Thu Jan 13, 2011 9:18 pm
by jdhar
seyi wrote:Hello,

I am doing some development in ZoneMinder and I have come across a problem. I need to determine if a monitor is in the alarmed state or not. This works by getting the status for single frame monitors, but when dealing with mpeg it does not. I tried to use the stream call, but I do not see a way to specify the monitor id (and it times out after 2 calls due to the connKey). Is this the right approach? Any help would be appreciated.
What's the context you are trying to determine this in? ie: web/php, command-line etc... one thing you could consider is the web interface can determine if it the monitor is in Alarm, so take a look at the source for the Monitor View and see how it determines that.