keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.65k stars 230 forks source link

Hikvision motion support #145

Closed Andrew55529 closed 2 years ago

Andrew55529 commented 2 years ago

Is your feature request related to a problem? Please describe. I would like someone to add motion detection support for Hikvision, HiWatch (same cameras) cameras. Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered This is an example API for these cameras written in node js https://github.com/nayrnet/node-hikvision-api I check this and find some information. I start connection by curl on windows curl -X GET http://192.168.10.XXX/ISAPI/Event/notification/alertStream -H "Accept: multipart/x-mixed-replace\r\n\r\n" -H "Authorization: Basic XXXXXXX" it start send me this

192.168.10.XXX 80 HTTP f8:4d:fc:XX:XX:XX 1 2022-01-13T02:28:28+03:00 283 VMD inactive Motion alarm Camera 01

--boundary Content-Type: application/xml; charset="UTF-8" Content-Length: 518

It starts sending when the motion is detected and will send some time after.

Additional context Secure have to be set like this. image image

Andrew55529 commented 2 years ago

This look like something useful. https://github.com/rtorchia/Smartthings-Hikvision-Events/blob/master/hikvisioneventserver/HikvisionEventServer.py image

Andrew55529 commented 2 years ago

https://github.com/fbradyirl/hikvision

d827bcx commented 2 years ago

@Andrew55529 - check out https://github.com/mezz64/pyHik and my comments in https://github.com/keshavdv/unifi-cam-proxy/issues/125 - I got motion working well on my Annke cam (which is essentially hikvision). I have it running in the same docker as the proxy.

keshavdv commented 2 years ago

I've been working on a version to support this natively within the Hikvision implementation, so check back in a little bit.

Andrew55529 commented 2 years ago

I've been working on a version to support this natively within the Hikvision implementation, so check back in a little bit.

Thanks