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

Update hardware lookup. #543

Open
riceyrolling opened this issue Aug 10, 2021 · 1 comment
Open

Update hardware lookup. #543

riceyrolling opened this issue Aug 10, 2021 · 1 comment

Comments

@riceyrolling
Copy link

Camera.js is erroring for me at coreGetScopes() function.

Need to add the underscore to the object path to make it pull correctly.
var s = scope.ScopeItem._;

Could be some weird environment specific thing but I've just put it in a try catch for now.

scopes.forEach(scope => {
          try {
            var s = scope.ScopeItem;
            s.indexOf('')
          } catch {
            var s = scope.ScopeItem._;
          }
          if (s.indexOf('onvif://www.onvif.org/hardware/') === 0) {
            const hardware = s.split('/').pop();
            this.deviceInformation.Hardware = hardware;
@hawkeye64
Copy link
Owner

Thanks for finding this. I'll look into it as soon as I can.

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