Skip to content

Conversation

@kaburagisec
Copy link
Contributor

@netlify
Copy link

netlify bot commented Oct 25, 2025

Deploy Preview for viseron canceled.

Name Link
🔨 Latest commit 88d8d5d
🔍 Latest deploy log https://app.netlify.com/projects/viseron/deploys/6901cf52f6b6470008896111

@roflcoopter
Copy link
Owner

Thanks! I see that python-onvif is pretty new. Is it used by any larger projects today?

@kaburagisec
Copy link
Contributor Author

Thank you for your feedback.

I use it for corporate projects, and it's worth noting that I also created onvif-python (https://github.com/nirsimetri/onvif-python). This library uses a built-in WSDL, which is more accurate because it's sourced directly from https://github.com/onvif/specs (the official ONVIF WSDL specification).

In this PR, I also made a change to remove the _get_wsdl_dir function, as the onvif-python library already automatically resolves it. I've also tested it on Windows, Linux, and macOS without any issues.

It's also worth noting that the onvif-python implementation is almost identical to onvif-zeep, as they both use the zeep (https://github.com/mvantellingen/python-zeep) library for SOAP communication. However, it has a more modern approach and supports Python 3.9 and above.

If there are any changes I need to include, please let me know and I will fix them. Thank you again.

Note:

@kaburagisec
Copy link
Contributor Author

kaburagisec commented Oct 28, 2025

Additionally, since Viseron's ONVIF implementation is limited to PTZ services, if the PR is accepted, I'll try to create a new PR with other ONVIF service implementations. Since ONVIF devices have many services that should be used, such as Events, Imaging, and Media, Viseron will be even more powerful.

@roflcoopter
Copy link
Owner

Thanks for the explanation!

Sounds good. A proper ONVIF component in Viseron has been requested many times but i have never gotten around to it.
I would higly appreciate if you would take the time to implement that. As you say, that could enable Viseron to use the cameras motion detection or AI capabilities to start recordings instead of running it in Viseron.

Please dont hesitate to ask if you have any questions regarding that.

@roflcoopter
Copy link
Owner

CI is failing on a conflict for the requests package, could you bump the requests version?

@kaburagisec
Copy link
Contributor Author

Ok I have done the version change.

@kaburagisec
Copy link
Contributor Author

It looks like the latest CI results are not from my commit error. There it says:

Logging in to Azure DevOps
ERROR: Failed to authenticate using the supplied token.
Downloading libhailort-amd64 version 4.22.0
ERROR: Failed to update Universal Packages tooling. 
TF400813: Resource not available for anonymous access. Client authentication required.

Is there anything I can help?

@roflcoopter
Copy link
Owner

You are correct, its unrelated to your changes. Something changed in Azure which causes that issue.

Will merge this now, thanks!

@roflcoopter roflcoopter merged commit 9ef6194 into roflcoopter:dev Oct 29, 2025
17 of 18 checks passed
@kaburagisec
Copy link
Contributor Author

Thank you, I'll start implementing the PTZ function on the front end. Because it's incredibly painful to have to use Telegram to control the camera, in most cases, the PTZ should be inside the VMS (Video Management System), not outside it.

But thank you again.

@roflcoopter
Copy link
Owner

Agreed, having it in the UI would be great!

I dont own any PTZ cameras myself currently so thats why i havent done it myself yet.

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

Successfully merging this pull request may close these issues.

2 participants