@MarkProminic suggested today that we add the alarm status to the Camera UI. This state can indicate if there is enough activity on the camera that the camera is being recorded. Once we collect this information, we could add features like:
Highlight the cameras that have activity (i.e. red border or icon)
Make a view that only shows cameras with activity
This led to a discusion about using the ZoneMinder API. We did some more investigation after the meeting and found the following leads.
Note that the ZoneMinder API requires authentication. You can authenticate from the web UI - I'll send the credentials privately. Don't hard-code the credentials in the code - we'll need to find a smarter way to handle this. I also see an option to use an API key.
This call gives details about the monitor/camera. Unfortunately, this doesn't have the alarm status, but it may be useful later:
https://%server%/zm/api/monitors/%ID%.json
Instead you can try something like this, which returns the Alarm status:
@MarkProminic suggested today that we add the alarm status to the Camera UI. This state can indicate if there is enough activity on the camera that the camera is being recorded. Once we collect this information, we could add features like:
This led to a discusion about using the ZoneMinder API. We did some more investigation after the meeting and found the following leads.
Note that the ZoneMinder API requires authentication. You can authenticate from the web UI - I'll send the credentials privately. Don't hard-code the credentials in the code - we'll need to find a smarter way to handle this. I also see an option to use an API key.
This call gives details about the monitor/camera. Unfortunately, this doesn't have the alarm status, but it may be useful later:
Instead you can try something like this, which returns the Alarm status:
We think this is the mapping for the statuses