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

[ipcamera] Improve online/offline detection for ONVIF cameras #16332

Merged
merged 1 commit into from Feb 4, 2024

Conversation

Skinah
Copy link
Contributor

@Skinah Skinah commented Jan 28, 2024

Add better support for checking online and offline when the camera is an ONVIF type.
Changes should now allow for edge cases where an ONVIF camera has no snapshot and hence no http server to use for checking online status.
Also should allow for cameras that do not support ONVIF events, so they fall back to the proven method of opening a HTTP connecting to the configured port.
Cameras that have working ONVIF event streams will not try additional methods as the open stream proves the camera is already online.

Remove commented out code.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
@Skinah Skinah added the enhancement An enhancement or new feature for an existing add-on label Jan 28, 2024
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@lolodomo lolodomo merged commit 8e48c8b into openhab:main Feb 4, 2024
3 checks passed
@lolodomo lolodomo added this to the 4.2 milestone Feb 4, 2024
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
Remove commented out code.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants