keshavdv / unifi-cam-proxy

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

Add token generation procedure to documentation #208

Closed alexdrean closed 2 years ago

alexdrean commented 2 years ago

Recent versions of Unifi Protect do not have a button to add devices. The adoption QR code is still available at https://unifi/proxy/protect/api/cameras/qr

keshavdv commented 2 years ago

The workaround to get this is actually mentioned in the docs, but I didn't realize that this endpoint existed! It's definitely easier to use this and a related endpoint to get a valid token. Closing this for now, but this has inspired some investigation into alternative ways for the proxy to maybe even automatically fetch a token

radicand commented 1 year ago

I'm on Protect 2.8.25 and neither the /protect/devices/add nor the /proxy/protect/api/cameras/qr methods yield success. For the latter I get a generic error of:

{
"error": "Camera not found."
}

Any new ideas to try? This is a fresh install.

GekoCH commented 1 year ago

same problem here with Protect 2.8.25

Freshhat commented 1 year ago

Has anybody find another workaround in order to get the proper token? Otherwise i guess it's no longer possible to use this unifi-cam-proxy, right?

larcher commented 1 year ago

As mentioned on #248 and #230 (and now #314) there's also /proxy/protect/api/cameras/manage-payload which returns a token directly (not a QR image) and still seems to work, at least as high as Protect 2.8.28

(Pardon my repeat commenting, just trying to scatter this information in as many places as possible, make it a little easier to find.)