Code Monkey home page Code Monkey logo

Comments (9)

sibbl avatar sibbl commented on July 3, 2024 1

Thanks for the report. I can reproduce it after updating HA as well. As I just got back from vacation I'll try to fix it asap in the next coming days.

from hass-lovelace-kindle-screensaver.

sibbl avatar sibbl commented on July 3, 2024

@bictorv I've just released a new version where I've added another selector to wait for. It solves the problem for me, I'd be happy to know if it also works for you. Thanks!

from hass-lovelace-kindle-screensaver.

bictorv avatar bictorv commented on July 3, 2024

I'm sorry, it doesn't work consistently for me. I managed to get one proper screenshot but now it's just the "Loading data" screen.

from hass-lovelace-kindle-screensaver.

blockarchitech avatar blockarchitech commented on July 3, 2024

+1, Works, but not all of the time using the same steps as I have in older versions.

I've also tried 1.0.1 to no avail. @bictorv Try 1.0.1 though, see if you can get something different.

from hass-lovelace-kindle-screensaver.

bictorv avatar bictorv commented on July 3, 2024

I've also tried 1.0.1 to no avail. @bictorv Try 1.0.1 though, see if you can get something different.

I am running 1.0.1, but getting "Loading data". Could it be that you need to wait for something else than the "home-assistant" selector?

from hass-lovelace-kindle-screensaver.

bictorv avatar bictorv commented on July 3, 2024

It may be that my problems were resolved by upping the rendering timeout (from the default 10000 to 20000). Fingers crossed.

from hass-lovelace-kindle-screensaver.

sibbl avatar sibbl commented on July 3, 2024

@bictorv thanks for your feedback! I can also suggest to play around with the parameter RENDERING_DELAY which adds a delay after the screenshot browser signals "all API requests have settled and the home assistant component should be rendered to DOM" and the actual generation of the screenshot.

I've set it to 5 seconds on my Synology NAS. Depending on the device which has to build the components DOM, it might take longer even when all data was fetched. In my case the graph sometimes didn't render very quickly, so I had to increase the delay.

Unfortunately I've found no way yet to programatically find out reliably when all components have finished their initial render.

from hass-lovelace-kindle-screensaver.

bictorv avatar bictorv commented on July 3, 2024

Aha, will try.
(By the way, what is the easiest way to update the environment variables, ideally without having to recreate the whole docker thing - I'd wish for a way to "change a config file and restart the docker"?)

from hass-lovelace-kindle-screensaver.

sibbl avatar sibbl commented on July 3, 2024

In the 2022.06 update of Home Assistant the recorder queries were changed to be much faster than before. At least in my case, the rendering happens much faster because of this.

Thus I'd like to close the issue. If somebody comes across, I can still recommend changing the TIMEOUT configuration in your docker-compose.yml and then simply run docker-compose up or docker-compose up -d for a quick recreation of the docker instance.

from hass-lovelace-kindle-screensaver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.