tchellomello / python-amcrest

A Python 2.7/3.x module for Amcrest and Dahua Cameras using the SDK HTTP API.
GNU General Public License v2.0
216 stars 76 forks source link

using port 5000 instead of web .cgi? for listen events #160

Open blademckain opened 4 years ago

blademckain commented 4 years ago

Hi guys, you think you can use the method described here ( DHIP JSON Debug Console ) https://github.com/riogrande75/Dahua or here https://github.com/elad-bar/DahuaVTO2MQTT

to intercept events?

if I have read it correctly, a socket is opened on port 5000 of the device

does it seem that events published via port 5000 are less filtered than those seen via .cgi calls

other usefull resource: https://amcrest.com/forum/amcrest-smart-home-f32/motion-event-http-api-sdk-t14221.html?sid=adf2a4fe02f43aeef901740010d0b5c7

https://github.com/mcw0/PoC/blob/master/Dahua-DHIP-JSON-Debug-Console.py