keshavdv / unifi-cam-proxy

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

Add Device button not availble #321

Closed Avd888 closed 11 months ago

Avd888 commented 11 months ago

Camera

Foscam C1

Firmware version of the camera

No response

Description

The add device button is not available anymore in protect version 2.8.35. Also the url https://{NVR IP}/protect/devices/add doesn't seem to work anymore, it redirect to https://{NVR IP}/protect/devices. Are there other ways to get an adoption key?

How to reproduce

No response

Expected behaviour

No response

Screenshots

No response

Aditional information

No response

lindi9109 commented 11 months ago

Same here.. Tried alerdy Differenz workarounds incl. Getting Token by Settings Menu from Unify console as described by Unify itself. Currently on Option to Grab Token. Please Support

gris-gris commented 11 months ago

Try {IP}/proxy/protect/api/cameras/manage-payload to get token

lindi9109 commented 11 months ago

Thank you very much, it worked Instant. Maybe interesting for anybody else: I have set up Unraid Server with Docker Running neolink to convert Reolink argus pt into rtsp stream and Second Docker Image with Unifi -cam-Proxy to and Camera rtsp stream into protect. Rtsp stream is fluent but Stream in Unifi protect is quite slow.

Issing can be closed.

Avd888 commented 11 months ago

{IP}/proxy/protect/api/cameras/manage-payload seems to be working, Thanks for the tip. De stream from my Foscam C1 doesn't work with broke pipe messages but it probably doesn't have anything to do with the token.

Avd888 commented 11 months ago

{IP}/proxy/protect/api/cameras/manage-payload seems to be working, Thanks for the tip. De stream from my Foscam C1 doesn't work with broke pipe messages but it probably doesn't have anything to do with the token.

tda90 commented 10 months ago

Thank you very much, it worked Instant. Maybe interesting for anybody else: I have set up Unraid Server with Docker Running neolink to convert Reolink argus pt into rtsp stream and Second Docker Image with Unifi -cam-Proxy to and Camera rtsp stream into protect. Rtsp stream is fluent but Stream in Unifi protect is quite slow.

Issing can be closed.

hello lindi9109, I'm exactly trying to accomplish that with unraid. Since I normally use the CA and there is no UnificamProxy available directly, could you please share to me the exact steps you have made to accomplish this setup? Thanks a lot!

lindi9109 commented 10 months ago

Hallo tda90,

At First,make sure you have Docker up and Running on your Unraid. Then weithin Unraid Switch to console and create

openssl ecparam -out /tmp/private.key -name prime256v1 -genkey -noout
openssl req -new -sha256 -key /tmp/private.key -out /tmp/server.csr -subj "/C=TW/L=Taipei/O=Ubiquiti Networks Inc./OU=devint/CN=camera.ubnt.dev/emailAddress=support@ubnt.com"
openssl x509 -req -sha256 -days 36500 -in /tmp/server.csr -signkey /tmp/private.key -out /tmp/public.key
cat /tmp/private.key /tmp/public.key > client.pem
rm -f /tmp/private.key /tmp/public.key /tmp/server.csr

I used a sub folder in my home folder called unifi-cam, but you can use whatever you want. Just make sure to remember the path, you will Need it later to Mount certificate file into Docker image. Now back to Docker in the Unraid gui. Create a New Docker Application by „add Container“. On top right Switch to Advanced Mode and Fill out configuration:

Name: Name it by your Choice
repository: keshAviv/unifi-cam-proxy
Network Type: Bridge
Post-Arguments: unifi-cam-proxy --host {{your UDM IP Address}} --token {{your Adoption Token}} --cert /client.pem rtsp -s rtsp://{{your rtsp-Stream ip:Port/path}}

on bottom Click on „+ Add Another path“ and add Parameters:

Config Type: Path
Name: Certificate
Container Path: /client.pem
Host Path: {{your path where your certificate is Stored}}/client.pem 

Click Save, then Double Check and Click Apple/done

Now Docker Image should be installieren and end up with „finished successfully“ Navigation back to Docker overview, MAke sure to toggle „autostart“ and run Docker Container. If Container is Shopping and not staying Green, Check your config and error log in Docker Container.

jshep321 commented 10 months ago

Hi, Please add this to the installation instructions!