Http command for PTZ

saurabh

n3wb
Joined
Aug 26, 2016
Messages
1
Reaction score
0
Hello,

Sorry for the delay i wasn't available to work on my PT cam.

Here's the result, now i can run curl command without any problem, i suceeded to reboot my cam with curl command : curl -X PUT "http://user:password@IP:port/System/reboot"

But i still can't control my cam by curl after http request viewing (when i press arrow to move the cam on hikvision interface) i can see url is /ISAPI/PTZCtrl/channels/1/continuous with an xml file : <PTZData><pan>-100</pan><tilt>0</tilt></PTZData> (when i move to the left)

But how to write it to do it myself ? I don't know how to insert the xml part on the command

Thanks for your help

EDIT : fount it !!!!
curl -X PUT -T TEST_PTZ.xml http://login:password@ip/PTZCtrl/channels/1/Continuous (in TEST_PTZ.xml : <PTZData><pan>-100</pan><tilt>0</tilt></PTZData>)

thanks for everything, hope it can help somebody too

Can you please help me to get complete link for pan,tilt, zoom or Preset -:

IP - 192.168.1.20 / Username - admin/ Password - admin

My project got stuck because of this. It will be helpfull if you can support me on this.

Warm Regards,
Saurabh Thakar
 
Joined
Mar 6, 2021
Messages
5
Reaction score
0
Location
Germany, Cologne
Hi everybody,

I need to dig out this thread again because right now I am pretty much lost to control the cam by cURL.

So far I understood that there need to be created a file (in this case TEST_PTZ.xml) to the cam.
Can someone explain short the procedure what needs to be done before the curl:

Code:
$ curl -X PUT -T TEST_PTZ.xml http://login:password@ip/PTZCtrl/channels/1/Continuous
$ curl -X PUT -T TEST_PTZ.xml http://admin:PW@192.168.178.130/PTZCtrl/channels/1/Continuous (in TEST_PTZ.xml : <PTZData><pan>-100</pan><tilt>0</tilt></PTZData>)
Because the above mentioned ones are without success:
Code:
$ curl -X PUT -T TEST_PTZ.xml http://admin:PW@192.168.178.130/PTZCtrl/channels/1/Continuous
curl: Can't open 'TEST_PTZ.xml'!
curl: try 'curl --help' or 'curl --manual' for more information
curl: (26) Failed to open/read local data from file/application
Thanks in advance,
Thomas
 
Top