Code Monkey home page Code Monkey logo

Comments (11)

sibbl avatar sibbl commented on July 22, 2024 1

The best issues are those which resolve themselves 😁

Thanks for the feedback. Only the battery webhook environment variable was added, but maybe also a new hassio base image was used when building - which might include bug fixes I don't know about.

Feel free to continue this thread if you encounter the issue in the future again!

from hass-lovelace-kindle-screensaver.

sibbl avatar sibbl commented on July 22, 2024

Hi @Pattern91,

thanks for your kind words!

Failed to render TimeoutError: Navigation timeout of 50000 ms exceeded

It seems that the machine is not able to open the page and finish rendering it within 50s. The value is already quite high, so it could be possible that your machine is too slow for running this project.

You can try to increase the RENDERING_TIMEOUT to something above 60000 milliseconds (maybe try it in 10s steps). Please also adapt CRON_JOB accordingly, as it will try to render a new image every minute - which might fail if the rendering takes longer than 1 min. The cron job value */2 * * * * will trigger the rendering of a new image every 2 min instead of 1 min.

I hope you can get it running! I'll keep in mind to make this a bit more easy to a) figure out and b) configure the values in the Hass.io addon.

from hass-lovelace-kindle-screensaver.

Pattern91 avatar Pattern91 commented on July 22, 2024

Hi @sibbl ,

thanks for you fast reply. I already have the cron job value so that in only runs every 10 minutes. I just want to move my installation from the docker container to the ha-addon. In the container the rendering was about 2-5 seconds.

The system is running on a RPi 3b+

from hass-lovelace-kindle-screensaver.

sibbl avatar sibbl commented on July 22, 2024

Just for my understanding: the docker container was also running on the same device before, or do you want to move it from another system?

from hass-lovelace-kindle-screensaver.

Pattern91 avatar Pattern91 commented on July 22, 2024

yes, the docker container was running on the same device using portainer. I stopped the container and installed the ha-addon instead and copied the values from the old configuration.

from hass-lovelace-kindle-screensaver.

sibbl avatar sibbl commented on July 22, 2024

Very strange, indeed. Unfortunately I'm not that familiar with the Hassio addon development details, so I don't know what's technically different to running the container without the addon base image.

The only thing I could think of is that the IP might not be accessable from the docker instance due to security constraints of the HA addon sandbox - we don't request the permission to run in the host network. Even though the IP leads to the same device, the docker network is a bit different and probably the request ends up being sent to your router, which sends it back to the device. But the addon doesn't know that...

Do you have a public domain set up, which you could try instead of the local IP and give it another try?

from hass-lovelace-kindle-screensaver.

Pattern91 avatar Pattern91 commented on July 22, 2024

unfortunately i don't have a public domain. Is there another way instead of using the local ip-address of the pi?

i can access the used lovelace dashboard from other devices in my network.

from hass-lovelace-kindle-screensaver.

814d3 avatar 814d3 commented on July 22, 2024

Maybe this compose file helps, as I also use docker on a Pi 3b:

services:
kindle_screen:
image: sibbl/hass-lovelace-kindle-screensaver:latest
container_name: kindle_s
restart: unless-stopped
environment:
- HA_BASE_URL=http://w.x.y.z:port
- HA_SCREENSHOT_URL=/lovelace/1
- HA_ACCESS_TOKEN=abcd...
- CRON_JOB=*/5 * * * *
- RENDERING_TIMEOUT=45000
- RENDERING_DELAY=5000
- RENDERING_SCREEN_HEIGHT=1024
- RENDERING_SCREEN_WIDTH=758
- GRAYSCALE_DEPTH=8
- OUTPUT_PATH=/output/cover.png
- LANGUAGE=en
- ROTATION=0
- SCALING=1
ports:
- abcd:efgh
volumes:
- ./output/:/output

from hass-lovelace-kindle-screensaver.

sibbl avatar sibbl commented on July 22, 2024

@814d3 thanks for the file. You also have troubles or do you say it's working for you and just wanted to provide a working docker compose file? Because if I understood the issue above correctly, the docker compose way is also working fine - but that there are problems when moving to the Hass.io solution on the exactly same device. Which obviously should work as the resources were there before.

from hass-lovelace-kindle-screensaver.

814d3 avatar 814d3 commented on July 22, 2024

from hass-lovelace-kindle-screensaver.

Pattern91 avatar Pattern91 commented on July 22, 2024

@sibbl Did you change anything in your new version 1.0.5? It is somehow working after the update! Big thanks"

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.