Using ZM API with a PTZ
Posted: Thu Oct 20, 2016 9:58 pm
So reading through the doc I see that I can view all of the controls that the camera is capable of by going to curl http://server/zm/api/controls/5.json
But I would like to do something with my home automation. So using SmartThings I'm able to tell ZM thanks to its awesome API to force an alarm in certain areas based off of a door opening or something else. But what I would also like to do is say if my living room motion sensor detects motion, I want to be able to tell ZM to use the PTZ to pan to preset 2 record for like a minute then stop the recording and pan back to home position. I can tell from ZMNinja (Awesome app btw, hands down one of the best purchases I've ever made for my phone) that it is possible to control the camera through the API I just don't know what the appropriate API call would be to have it do this. Thank you all in advance for your help with this and I really do enjoy seeing where ZM is headed and I can't get rid of the zmodo cameras, and replace with IP fast enough.
But I would like to do something with my home automation. So using SmartThings I'm able to tell ZM thanks to its awesome API to force an alarm in certain areas based off of a door opening or something else. But what I would also like to do is say if my living room motion sensor detects motion, I want to be able to tell ZM to use the PTZ to pan to preset 2 record for like a minute then stop the recording and pan back to home position. I can tell from ZMNinja (Awesome app btw, hands down one of the best purchases I've ever made for my phone) that it is possible to control the camera through the API I just don't know what the appropriate API call would be to have it do this. Thank you all in advance for your help with this and I really do enjoy seeing where ZM is headed and I can't get rid of the zmodo cameras, and replace with IP fast enough.