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

Image not captured as displayed #36

Closed Coolie1101 closed 2 years ago

Coolie1101 commented 2 years ago

The image isn't captured as displayed in HA, and is captured in grayscale even though I specified "TrueColor".

Config

  app:
    image: sibbl/hass-lovelace-kindle-screensaver:latest
    environment:
      - HA_BASE_URL=http://192.168.200.211:8123
      - HA_SCREENSHOT_URL=/lovelace-system/screenshot?kiosk
      - HA_ACCESS_TOKEN=my_ha_access_token
      - CRON_JOB=* * * * *
      - RENDERING_TIMEOUT=30000
      - RENDERING_SCREEN_HEIGHT=160
      - RENDERING_SCREEN_WIDTH=128
      - OUTPUT_PATH=/output/cover.png
      - SCALING=1
      - COLOR_MODE=TrueColor
    ports:
      - 5000:5000
    volumes:
      - ./output/:/output

HA Screenshot image

Captured Image image

noiob commented 2 years ago

I think that's just what your dashboard looks like when rendered at 160x128, try a larger screen size for debugging purposes

sibbl commented 2 years ago

Yes, the rendering screen height/width are working just like your desktop browser would if you resize it to these dimensions. Which probably also would result in the same visualization.

Try increasing the width+height. Maybe you can work with the scaling options to achieve whatever you're trying to achieve? :)