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

Suggestion: Background "temp" image while loading the map #693

Open
thedmmatt opened this issue Dec 13, 2023 · 0 comments
Open

Suggestion: Background "temp" image while loading the map #693

thedmmatt opened this issue Dec 13, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@thedmmatt
Copy link

Description

Since my vacuum map extractor is already set to auto_update: false to avoid bombarding Xiaomi's API server (which would block further connections to extract the map), I was wondering if the map card could be automated to show the last snapshot the extractor received.

I know this forum is for the map card, not the extractor, but I do believe it could be handled by the map card itself.

Solution

I managed to do this using some triggers (such as docking or cleaning), so the automation would take a snapshot whenever that state changed. Then in the map card, I used JS and CSS to identify whenever the camera was still loading to display the last snapshot over it.

The issue is that this approach starts to be faulty sometimes, especially when the device screen ratio dislocates the image. However, I noticed that the #shadow-root element can be tempered during a state refresh, so could you do that from the map card itself

Anyways, just an idea if anyone wants to discuss further. Should anyone be interested in that as well, I can start a pull for Piotr to take into consideration.

Alternatives

No response

Context

No response

@thedmmatt thedmmatt added the enhancement New feature or request label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants