I have the Dahua PTZ model: DH-SD59225UN-HNI running on the latest firmware available on Dahua's website. I need to run automations on it using http API calls. So far i am able to move the cameras where i want to and even zoom on the correct level.
For example here is the api call for moving to an absolute position with a zoom level according to the API
But my problem lies in adjusting the focus, according to that pdf ( which i found in this forum and they said is the same as dahua is using) to adjust focuse i must send
problem is i get a response error 400: Bad Request. Which is unfortunate because i need focus to work, the autofocus is not enough as it keeps focusing on the wrong things.
i did found something that works with the focus
it does work, but it sometime over / under shoot the focus.
Can anyone help me find the correct api for focus. It would be nice if it was a numerical value so i can finely tune it to focus on the correct object.
For example here is the api call for moving to an absolute position with a zoom level according to the API
Code:
http://admin:admin1234@192.168.0.3/cgi-bin/ptz.cgi?action=start&channel=1&code=PositionABS&arg1=239&arg2=22&arg3=0

But my problem lies in adjusting the focus, according to that pdf ( which i found in this forum and they said is the same as dahua is using) to adjust focuse i must send
Code:
http://admin:admin1234@192.168.0.3/cgi-bin/devVideoInput.cgi?action=adjustFocus&focus=0.5&zoom=-0.5
problem is i get a response error 400: Bad Request. Which is unfortunate because i need focus to work, the autofocus is not enough as it keeps focusing on the wrong things.
i did found something that works with the focus
Code:
http://admin:admin1234@192.168.0.3/cgi-bin/ptz.cgi?action=start&channel=1&code=FocusNear
http://admin:admin1234@192.168.0.3/cgi-bin/ptz.cgi?action=start&channel=1&code=FocusFar
it does work, but it sometime over / under shoot the focus.
Can anyone help me find the correct api for focus. It would be nice if it was a numerical value so i can finely tune it to focus on the correct object.