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

Avoid missing image if json image list is empty #41

Open
sirtet opened this issue Dec 17, 2022 · 2 comments
Open

Avoid missing image if json image list is empty #41

sirtet opened this issue Dec 17, 2022 · 2 comments

Comments

@sirtet
Copy link
Collaborator

sirtet commented Dec 17, 2022

If the webcam stops delivering images for a few days, the UI will show no cam image, as on initial load a default range back from the current date is requested.

I see two options to avoid having no image:

  1. Do not request a default range, api.php has a default in case no start- and end- date is requested.
    To make it obvious to the user that the received pictures are possibly outdated, a date check should be done and a message similar to the suggestion in 2.
  2. If the answer from api.php is empty, show a message "no current images available, loading (trying to load) last available images"
    (and maybe do an api call without time range now, to show the last available pics.)
@sirtet
Copy link
Collaborator Author

sirtet commented Dec 17, 2022

As a temporary fix, i changed api.php so it returns the last available images if the requested range is too new.
But this will create a discrepancy in shown date-range vs. the dropdowns for requested range.

@sirtet
Copy link
Collaborator Author

sirtet commented Jun 29, 2023

Idea: The Frontend should show the latest available image and alert (overlay) the user about the fact that the requested Range has no images.

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

1 participant