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
333 stars 74 forks source link

Kiosk Mode in HA not working -> use Imagemagick to crop? #70

Closed 814d3 closed 1 year ago

814d3 commented 1 year ago

Hi there,

since version 23.04? the useful kiosk mode by maykar (https://github.com/maykar/kiosk-mode) isn't working properly. So at least (in my case) the header (panel) of the dashboard is still visible and is using space, that is little on an kindle e.g.. My idea: Could imagemagick crop the image first (side panel and header) before scaling it? This could be activated via a env. var. in the .yml for example. Or any other ideas for having a full view of the dashboard? Thank you for your work and greetings.

sibbl commented 1 year ago

Hey @814d3,

as you can see in the HA repository you've linked above, this project was archived and the plugin deprecated.

There is this new kiosk mode fork, which seems to be in active development: https://github.com/NemesisRE/kiosk-mode

I've also updated the README a while ago to point to this new module.

I'd appreciate it, if you could replace your extension with this one. It should work as expected.

While I also like the imagemagick crop, it increases the complexity of both the code of the project and configuration. I'd like to keep the purpose of this project here to only do screenshots and nothing else. Everything except scaling and dimensions should be solved differently.

814d3 commented 1 year ago

Thanks for your fast reply.I undertand your intention. I just thought about the integrated cropping to be independent of any 3rd party scripts and possible upcoming changes in HA, that alter the behavior again.Greetings