kroo / wyzecam

Python package for streaming video from wyze cameras over the local network
https://kroo.github.io/wyzecam/
MIT License
179 stars 15 forks source link

Solve DTLS in new wyze FW #111

Open AdiAbuAli opened 3 years ago

AdiAbuAli commented 3 years ago

๐Ÿš€ Feature Request

The below code suggested by merlt8 to overcome DTLS feature in new wyze FW, where current code cannot access RTSP with new FW with DTLS

def getAuthKey(mac, enr): key = enr + mac.upper() hash = hashlib.sha256(key.encode()) print(hash.digest()) bArr = bytearray(hash.digest())[0:6] print(bArr) authKey = base64.standard_b64encode(bArr).decode().replace('+', 'Z').replace('/', '9').replace('=', 'A').encode() return authKey

av_account: admin av_password:ย camera.enr

๐Ÿ”ˆ Motivation

This will help keep the code compatible with new wyze FW updates (latest one compatabile was in August wyze FW release). Wyze official RTSP will stay beta, and they will not maintain it, as they mentioned explicitly (they dont have enough resources to maintain 2 branches of FW). And always, non RTSP wyze FW maintained and updated well....hut this DTLS is now showstopper.

๐Ÿ›ฐ Alternatives

Dont update wyze FW anymore.

๐Ÿ“Ž Additional context

iliabaranov commented 2 years ago

Yes please, this would be great!