Closed slightcrazed closed 3 years ago
As a sanity check, please run this
from unifi_video import UnifiVideoAPI
from unifi_video.api import endpoints
uva = UnifiVideoAPI(...)
for i, c in enumerate(uva.get(endpoints['cameras'])['data']):
print('cam', i + 1, c['name'], c['uuid'])
and see if the output has a line for each of the cameras.
Alright, so.... now I feel stupid. I literally spent 3 days trying to figure out why it wasn't working only to find that I'd accidentally stuck my API user into a group that only had access to one camera.
Non-issue! Sorry to waste your time and thank you for all your work on this library!
On Mon, Feb 8, 2021 at 12:28 PM yuppity notifications@github.com wrote:
As a sanity check, please run this
from unifi_video import UnifiVideoAPIfrom unifi_video.api import endpoints uva = UnifiVideoAPI(...) for i, c in enumerate(uva.get(endpoints['cameras'])['data']): print('cam', i + 1, c['name'], c['uuid'])
and see if the output has a line for each of the cameras.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yuppity/unifi-video-api/issues/30#issuecomment-775311665, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASYZKQHC7ZAMFWKO6JGCYFTS6ANKBANCNFSM4XJHHXIQ .
-- Randall
No worries, glad you solved it.
Not sure why... but on controller 3.10.11 if I run uva.cameras I only get back 1 camera, which happens to be the first camera that was part of the install. No cameras since then show up in the list. Any thoughts? All cameras are same firmware and were adopted the same way.