Skip to content

Python Websockets and connecting to ws-data-stream problem #263

Closed Answered by vivekatoffice
mikkkogu asked this question in VAPIX
Discussion options

You must be logged in to vote

Hi @mikkkogu ,
Thank you so much for sharing your sample code here. After few changes in code, I was able to get the results. But I really appreciate your work and effort you put for Digest authentication for WebSockets in Python. Even on Websocket Documentation they mentioned it is not supported for client.

Python code

Please note: realm = 'AXIS_B8XXXXXXXXXX' #B8XXXXXXXXXX is the the MAC address of the camera.
Check device properties

import json
import requests, re
import websockets
import asyncio
import hashlib
import base64
import uuid
import logging
logger = logging.getLogger('websockets')
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())

def calculate_digest…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vivekatoffice
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
VAPIX
Labels
None yet
3 participants