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

getpresets not working #27

Closed
DongsubShin opened this issue Dec 14, 2022 · 2 comments
Closed

getpresets not working #27

DongsubShin opened this issue Dec 14, 2022 · 2 comments

Comments

@DongsubShin
Copy link

presets = await onvif.ptz.getPresets(profs[0].token);

_Exception (Exception: Error code: {Code: {Value: {$: SOAP-ENV:Sender}}, Reason: {Text: {@xml:lang: en, $: Method 'GetPresets' not implemented: method name or namespace not recognized}}})

@DongsubShin
Copy link
Author

await onvif.ptz.gotoPreset(profs[0].token, "001");

Exception (Exception: Error code: {Code: {Value: {$: SOAP-ENV:Sender}}, Reason: {Text: {@xml:lang: en, $: Method 'GotoPreset' not implemented: method name or namespace not recognized}}})

@faithoflifedev
Copy link
Owner

Hi @DongsubShin,

Does this work when you use another Onvif software package to list presets? The error listed above is saying that your Onvif device is responding with a "not implemented/supported" to the API request. Meaning that the device does not support "preset" capability.

I've been learning through people's feedback that many manufacturers are very loose in following the official Onvif spec. For instance, related to issue #26 that you submitted, some devices don't support RelativeMove, the software can work-around this by retrieving the current pan/tilt/zoom settings of the camera and then doing an AbsoluteMove for the additional amount specified by the user.

If you an find an open source package that works for your device then I might be able to look at the work-around used there and add that same functionality to the easy_onvif package.

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