egroeg n3wb Mar 26, 2019 2 0 Bucharest Mar 26, 2019 #1 Hello guys! I have a ptz hik vision camera and I want to controll this camera from a raspberry pi not from localhost. It is possible to control the room using the python programming language? Cheers
Hello guys! I have a ptz hik vision camera and I want to controll this camera from a raspberry pi not from localhost. It is possible to control the room using the python programming language? Cheers
egroeg n3wb Mar 26, 2019 2 0 Bucharest Jun 10, 2019 #2 comanda = os.system("curl -X PUT -T name.xml http://%s:%s@%s:%s%s" % (user, pw, host, port, link1)) user = username pw = password host = ip_camera port = 80 link1 = /ISAPI/Image/channels/1/ircutFilter ON/OFF the IR FILTER link2 = /PTZCtrl/channels/1/Continuous and in name.xml you have to put the command like: <PTZData><pan>0</pan><tilt>-50</tilt></PTZData> PS. import os before programming Best regards, George Dumitru
comanda = os.system("curl -X PUT -T name.xml http://%s:%s@%s:%s%s" % (user, pw, host, port, link1)) user = username pw = password host = ip_camera port = 80 link1 = /ISAPI/Image/channels/1/ircutFilter ON/OFF the IR FILTER link2 = /PTZCtrl/channels/1/Continuous and in name.xml you have to put the command like: <PTZData><pan>0</pan><tilt>-50</tilt></PTZData> PS. import os before programming Best regards, George Dumitru