SvenVD / rpisurv

Raspberry Pi surveillance
https://community.rpisurv.net
GNU General Public License v2.0
595 stars 98 forks source link

Question: Any chance for UniFi Protect Integration? #190

Open SemoTech opened 3 months ago

SemoTech commented 3 months ago

Hi @SvenVD, hope this finds you well.

I was wondering if aside from manually specifying RTSP streams, for those of us that use the Ubiquiti UniFi Protect cameras, there could maybe be a way to have Rpisurv actually connect to the Protect a UniFi NVR (UDR, UDM-Pro, UDM-SE, UNVR/UNVR-Pro) and allow selection of a "Live View" cameras configurations dashboard, in the same way that the UniFi Protect ViewPort device does?

We could create a Protect User (Read-Only) and use those credentials in RpiSurv to automatically pull the RTSP streams for the cameras we want based on the pre-created dashboard ("Live View") in Protect.

This will also alleviate the issue where the UniFi Protect Cameras RTSP stream URL's change if a camera is reset.

Thank you.

SvenVD commented 2 months ago

I am happy to accept any pull requests for this feature

SemoTech commented 2 months ago

I am happy to accept any pull requests for this feature

Fingers crossed that someone who can code (that's not me :-) ) will do a pull. But I am happy to be a beta tester....

aniceberg commented 2 months ago

There is a Home Assistant component you may be able to more easily integrate: https://github.com/home-assistant/core/tree/dev/homeassistant/components/unifiprotect

SemoTech commented 2 months ago

There is a Home Assistant component you may be able to more easily integrate: https://github.com/home-assistant/core/tree/dev/homeassistant/components/unifiprotect

Thanks @aniceberg I already have that setup in my Home Assistant, but the idea here was for RpiSurv to eliminate the need to manually configure RTSP URL's (which sometimes change in UniFi Protect) via the command line, and read them straight from the UniFi protect controller layout profile, via a login to the UniFi system.

SemoTech commented 2 months ago

@SvenVD alternatively, what about having an option in RpiSurv to alternatively display an existing NDI Stream (i.e a stream of already tiled security cameras in a single image) being broadcasted on the LAN? One could specify the NDI source name (in a file) and then RpiSurv could just display the stream. There should be no need for a license if using NDI | HX or NDI | HX2 or NDI | HX3 instead of full NDI. I even found an Open Source NDI Library HERE Thoughts?