Skip to content

PTZ control 404 #764

Closed Answered by vivekatoffice
roomsjesse asked this question in VAPIX
Sep 4, 2024 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

i changed the ip addres in the url to the ip of the camera and now i get a 204 code

Ya correct 😄 the method you called is POST and PTZ API only support GET call.

Please try this sample and check if the PTZ operation works for you.

import requests
from requests.auth import HTTPDigestAuth
import urllib3

# Disable warnings about insecure requests (self-signed certificates, etc.)
#urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

ip_address = '195.60.68.14'
username = "Vivek"
password = "Kumar"
auth = HTTPDigestAuth(username, password)

# Corrected the formatting of the URL
url = f'http://{ip_address}/axis-cgi/com/ptz.cgi?areazoom=0,0,100'

response = requests.get(url, a…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@roomsjesse
Comment options

@vivekatoffice
Comment options

@roomsjesse
Comment options

@vivekatoffice
Comment options

Answer selected by roomsjesse
@vivekatoffice
Comment options

@roomsjesse
Comment options

@vivekatoffice
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
VAPIX
Labels
None yet
2 participants