Comments (11)
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.
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.
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.
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.
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.
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.
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.
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.
@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.
from hass-lovelace-kindle-screensaver.
@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)
- Error and questions connecting with Hassio Addon HOT 3
- failed to start browser in docker HOT 8
- Feature Request: Multiple Dashboards/Instances HOT 1
- docker failed to start HOT 1
- HA OS 32bit not supported? HOT 9
- Timeout Errors HOT 2
- Feature Request: .monochrome and .crop would be awesome!
- Feature request: output to jpg file format HOT 8
- Multiple request array doesnt appear to accept configuration HOT 13
- Error: Command failed: convert: unrecognized dither method `-background' HOT 8
- Feature request - Stop container exiting after error HOT 2
- How to select which theme to take? HOT 2
- Feature Check - ARM Builds HOT 2
- Extension extremely unstable HOT 5
- Failed to render TimeoutError: Navigation timeout of 60000 ms exceeded HOT 6
- Brightness difference between HA addon and standalone docker
- Add healthcheck endpoint at /health
- Add Support for Bitmap-Output HOT 2
- Failed to get TZ variables in container HOT 1
- "Loading data" after first image generation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hass-lovelace-kindle-screensaver.