How to ascertain if continuous image capture is enabled per camera?
Trying to figure out how I read the state of the Continuous Capture -> Capture Images Continuously (enabled/disabled) checkbox, per camera.
++systemInfo returns for each camera:
<md_captureimages>yes</md_captureimages>
The "md_" prefix and comparison to my camera settings in SecSpy's UI leads me to believe that's for motion detection, not continuous capture.
There's no "cc_captureimages" included in ++systemInfo...? There's also no exposure of the continuous (or motion) image capture frequency setting in systemInfo.
The web API provides:
ccImage Images enabled (0/1)
ccImageInterval Images interval seconds
Which allows me to change ccImage and ccImageInterval, but doesn't allow me to read the current values (or, if it does, I'm too dumb to figure it out).
Help. 😓
Comments
-
We've now implemented a more comprehensive way to obtain settings (now documented on the Web Server Spec). Issue a GET to the specific endpoint you require (e.g. settings-general, settings-cameras) with a format parameter of "xml" or "json", for example:
settings-cameras?cameraNum=2&format=json
settings-storage?format=xml
This returns a comprehensive set of current settings in the format you request. This has now been added to the latest beta version of SecuritySpy (currently 6.14b3).
-
That's great. I'm running the beta. It works.
I'd love to see that json option for the ++systemInfo too. json is soooo much easier to manage than XML. 🤓
-
Good point, we've now added a json version:
systemInfo?format=json
We've also taken the opportunity to update the xml version with modern names and additional values:
systemInfo?format=xml
For backwards-compatibility with current applications, if the format parameter is omitted entirely, the original XML version is returned.
This is in the new 6.14b4 version just posted.
-
Excellent! Can't wait to try it out. Viva la JSON! Muera el XML!
