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

ONVIF Camera added Error handling and rtsp authentication. #11129

Merged
merged 15 commits into from
Feb 17, 2018
Merged

ONVIF Camera added Error handling and rtsp authentication. #11129

merged 15 commits into from
Feb 17, 2018

Conversation

matt2005
Copy link
Contributor

@matt2005 matt2005 commented Dec 13, 2017

Bugfixes for several issues with hass.io and non-venv installations

Description:

Added passing of credentials to RTSP stream
Changed from ONVIFService to ONVIFCamera as ONVIFService didn't contain the same error handling.
Changed method to get Stream URL from camera to a more compatible method
Added extra Error handling

Checklist:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass

)
self._input = stream_uri.Uri.replace(
'rtsp://', 'rtsp://{}:{}@'.format(config.get(
CONF_USERNAME), config.get(CONF_PASSWORD)), 1)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continuation line missing indentation or outdented

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

_LOGGER.debug("ONVIF Camera Using the following URL for %s: %s",
self._input = None
try:
_LOGGER.debug("Attempting to communicate with ONVIF Camera: %s on port %s",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (87 > 79 characters)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@matt2005
Copy link
Contributor Author

Do I need to do any other changes to this?

@tringler
Copy link
Contributor

tringler commented Jan 4, 2018

I would really appreciate if this PR can be merged in the next days, because I have a PR in the pipe-line since almost 1 month, which is in conflict with that PR.

@matt2005
Copy link
Contributor Author

@pvizeli

Copy link
Contributor Author

@matt2005 matt2005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed pep errors

Copy link
Contributor Author

@matt2005 matt2005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch to use proper onvifcamersa instead of service from a wsdl

@matt2005 matt2005 mentioned this pull request Feb 1, 2018
9 tasks
@home-assistant home-assistant deleted a comment from homeassistant Feb 14, 2018
@bitglue bitglue merged commit 66dcb6c into home-assistant:dev Feb 17, 2018
@balloob balloob mentioned this pull request Feb 22, 2018
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants