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

Screenshots from 2 or more Dashbaords #81

Closed 4noxx closed 10 months ago

4noxx commented 10 months ago

How can i made a Screenshot from a second Dashboard?

Regard

sibbl commented 10 months ago

Hi @4noxx,

you can configure HA_SCREENSHOT_URL_2, HA_SCREENSHOT_URL_3, ... in your config (as well as ROTATION_2, ROTATION_3, ...).

This tells the application to also take screenshots of these URLs.

Finally, you can access these images by appending the number to the URL. E.g. http://localhost:5000/2 or http://localhost:5000/3

There's also a small section in the readme about this, right below the table with the config options.

4noxx commented 10 months ago

and different are also possible? need this for a 4" and 7" screen

sibbl commented 10 months ago

Please check the readme. There is a table with all config options. In all rows, where "Array?" is set to "yes", you can append _2, _3 etc.

I.e. you can also specify RENDERING_SCREEN_HEIGHT_2 and RENDERING_SCREEN_WIDTH_2 for different sizes, as well as SCALING_2, too. If there is no corresponding _2, _3, ... config set in your container, the default one (without _2, _3, ...) will be used.