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

[netatmo] Fix Live Picture not always available #16679

Merged
merged 5 commits into from
Apr 29, 2024

Conversation

clinique
Copy link
Contributor

@clinique clinique commented Apr 23, 2024

Partially resolves issue #15883 .

Making tests, I identified that:

  • When camera is on local network, the default timeout (5s) can be too short (maybe long SD card reading ?) and leads to a null value => time out extended (30s)

  • A fallback on VPN camera live picture as been added.

  • Identified a race condition that lead to display live picture before localUrl or vpnUrl are set leading to UndefType.NULL in the item.

Enhanced:

  • live#picture now handles REFRESH command requests.
  • vpnUrl that should never be null.

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
@clinique clinique requested a review from lolodomo as a code owner April 23, 2024 16:02
@clinique clinique self-assigned this Apr 23, 2024
@clinique clinique requested a review from jlaur April 23, 2024 16:06
@clinique clinique added bug An unexpected problem or unintended behavior of an add-on enhancement An enhancement or new feature for an existing add-on labels Apr 23, 2024
Signed-off-by: root <gael@lhopital.org>
@clinique
Copy link
Contributor Author

Channels were tested with Doorbell, Welcome and Presence.

Signed-off-by: root <gael@lhopital.org>
Copy link
Contributor

@lsiepel lsiepel left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM. I'll leave this to @lolodomo to approve/merge.

@lsiepel lsiepel removed the enhancement An enhancement or new feature for an existing add-on label Apr 28, 2024
@lsiepel lsiepel changed the title [netatmo] Live Picture not always available [netatmo] Fix Live Picture not always available Apr 28, 2024
Signed-off-by: root <gael@lhopital.org>
@clinique clinique requested a review from lolodomo April 28, 2024 23:09
Signed-off-by: root <gael@lhopital.org>
@clinique clinique requested a review from lolodomo April 29, 2024 11:20
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 5f7282b into openhab:main Apr 29, 2024
5 checks passed
@lolodomo lolodomo added this to the 4.2 milestone Apr 29, 2024
@clinique clinique deleted the netatmo_15883_1 branch April 29, 2024 11:46
lo92fr pushed a commit to lo92fr/openhab-addons that referenced this pull request Apr 30, 2024
* Adressing issue on live picture

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
Signed-off-by: root <gael@lhopital.org>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Jun 15, 2024
* Adressing issue on live picture

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
Signed-off-by: root <gael@lhopital.org>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
pgfeller pushed a commit to pgfeller/openhab-addons that referenced this pull request Sep 29, 2024
* Adressing issue on live picture

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
Signed-off-by: root <gael@lhopital.org>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
* Adressing issue on live picture

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
Signed-off-by: root <gael@lhopital.org>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Oct 18, 2024
* Adressing issue on live picture

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
Signed-off-by: root <gael@lhopital.org>
cipianpascu pushed a commit to cipianpascu/openhab-addons that referenced this pull request Jan 2, 2025
* Adressing issue on live picture

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
Signed-off-by: root <gael@lhopital.org>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants