sibbl / hass-lovelace-kindle-screensaver

This tool generates a png from a Home Assistant Lovelace view, which can be displayed on a Kindle device which has the Online Screensaver plugin installed.
MIT License
311 stars 71 forks source link

Strange zoom issue... #51

Closed totalitarian closed 1 year ago

totalitarian commented 1 year ago

When left to automatically pull the latest image, the image is all zoomed in

image

If I then unlock and relock my kindle, the image looks fine

image

Any ideas?

Here is my docker compose

hass-lovelace-kindle-screensaver:
    image: sibbl/hass-lovelace-kindle-screensaver:latest
    restart: unless-stopped
    environment:
      - HA_BASE_URL=http://192.168.1.50:8123
      - HA_SCREENSHOT_URL=/lovelace-test/kindle?kiosk
      - HA_ACCESS_TOKEN=xxx
      - CRON_JOB=* * * * *
      - RENDERING_TIMEOUT=30000
      - RENDERING_DELAY=20000
      - RENDERING_SCREEN_HEIGHT=1448
      - RENDERING_SCREEN_WIDTH=1072
      - GRAYSCALE_DEPTH=8
      - COLOR_MODE=TrueColor
      - OUTPUT_PATH=/output/cover.png
      - LANGUAGE=en
      - ROTATION=0
      - SCALING=2
      - HA_BATTERY_WEBHOOK=set_kindle_battery_level
    ports:
      - 8888:5000
    volumes:
      - ./output/:/output
sibbl commented 1 year ago

Unfortunately I don't have a direct solution.

I'd probably play around with the parameters (e.g. I'm not sure about TrueColors one?) - so basically try and error.

As it works after locking and unlocking, it feels like the rendering part on the device might be the troublemaker. Are you using the onlinescreensaver plugin or mine?