keshavdv / unifi-cam-proxy

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

Token issues #248

Closed sspitz01 closed 1 year ago

sspitz01 commented 1 year ago

I just bought a UniFi OS UDM SE 2.4.12. I loaded unifi-cam-proxy but had issues since it erred using python3.5 that was installed. I installed python 3.7 and was able to install it.

My issue is that in the GUI when I click add camera it takes me to the UniFi Devices screen. I cannot generate a token?

I am not sure where to go from here??

tkg61 commented 1 year ago

Had a similar issue, #228 helped solve the issue

sspitz01 commented 1 year ago

Thanks!! this worked!! https://{NVR IP}/proxy/protect/api/cameras/qr

Darktex commented 1 year ago

I lost quite a bit of time on this as I kept getting 401 responses.

If this happens to you, the reason is that you first have to directly connect to your Protect NVR IP and log in from there - logging in from the console at unifi.ui.com doesn't count.

So, do this instead:

  1. Connect to the Protect UI and log in: https://{NVR IP}/protect/
  2. Now try again to use the API: https://{NVR IP}/proxy/protect/api/cameras/qr
getrav commented 1 year ago

I have a UDM Pro SE with UniFi OS UDM SE 2.5.11 Protect v2.1.2

I followed your steps but after step 2, it takes me to the cameras list page.

I lost quite a bit of time on this as I kept getting 401 responses.

If this happens to you, the reason is that you first have to directly connect to your Protect NVR IP and log in from there - logging in from the console at unifi.ui.com doesn't count.

So, do this instead:

  1. Connect to the Protect UI and log in: https://{NVR IP}/protect/
  2. Now try again to use the API: https://{NVR IP}/proxy/protect/api/cameras/qr
gitgc commented 1 year ago

@getrav It's an academic discussion at this point anyway; the software doesn't support any recent Unifi Protect versions. See #199

I really hope this project can work once again, but its been a long time :( I can add the camera no problem on protect 2.1.2 using the https://{NVR IP}/proxy/protect/api/cameras/qr URL, but as per #199 you can't view the stream, so...

nxarmada commented 1 year ago

https://{NVR IP}/proxy/protect/api/cameras/manage-payload

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.