Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unifi_video.camera.CameraModelError: Unsupported camera model #10

Closed
jebbisson opened this issue Dec 7, 2019 · 1 comment
Closed

unifi_video.camera.CameraModelError: Unsupported camera model #10

jebbisson opened this issue Dec 7, 2019 · 1 comment

Comments

@jebbisson
Copy link

After calling uva = UnifiVideoAPI( I recieved the following error with my setup:
unifi_video.camera.CameraModelError: Unsupported camera model

I set the version ignore flag but I think that is only for the controller and not individual cameras.

After that, I downloaded the source onto my server and did some debugging and it looks like the following code returns true on a few of my models(Line 180 in camera.py):
not models.get(self.model, None)

I checked the strings and looked at what models.get returns and it does return an empty object {} which then causes this error.
I'm assuming the camera, which is an older UVC camera isn't supposed to return false in this scenario as this camera is on your supported list.

Maybe its an environment issue but I modified 'UVC': {}, in the models list to be

'UVC': {
'features': [
        ]
},

which seems to have resolved the issue for me though I only did a little testing as I just started using your library.

Not sure if there is the right fix or not, or what impacts it has on the rest of the api.

Also my System is Ubuntu 18.04.3 LTS and Python 3.6.9 in case this is some kind of environment difference.

Thanks.

yuppity added a commit that referenced this issue Dec 7, 2019
@yuppity
Copy link
Owner

yuppity commented Dec 7, 2019

Thank you for reporting this. Definitely a bug. I'll tag a new release soon.

EDIT:

I set the version ignore flag but I think that is only for the controller and not individual cameras.

Yes, that flag will only affect the version check against UniFi Video.

@yuppity yuppity closed this as completed Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants