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

Feature Request: Multiple Dashboards/Instances #103

Closed GraffJosh closed 5 months ago

GraffJosh commented 5 months ago

Hi there! I'm using your addon for a bit of a different purpose, I feed the images to a thermal printer! image

It works great for a single entity, but I'm hoping to diversify to multiple. I've considered switching the entity displayed on a conditional card, and that might work, but also having the ability to provide multiple instances of the add on, or multiple pages on the same server: http://homeassistant.local:5000/image1 http://homeassistant.local:5000/image2 would be an interesting way to accomplish the same.

Thanks for your hard work! Great add on!

sibbl commented 5 months ago

Hey, what a unique use case! Great to see that it's flexible enough to also work this way 👍

This feature already should be working. In the most simple way, you can add HA_SCREENSHOT_URL_2, HA_SCREENSHOT_URL_3, ... HA_SCREENSHOT_URL_n and can then access these images via http://homeassistant.local:5000/2, http://homeassistant.local:5000/3, ..., http://homeassistant.local:5000/n.

You can append this _n suffix to all variables which have "Array" = "yes" in the configuration table you can find in the README.