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

Add x-time-rendered header #14

Closed degan6 closed 2 years ago

degan6 commented 3 years ago

Hello!

Thank you for making such an awesome tool, I was able to get it up and running in docker in minutes!

It would be awesome to add a header to the response that says when the image was rendered.

I'd like to add some simple monitoring to be alerted if the service crashes and stops refreshing the image.

sibbl commented 2 years ago

@degan6 thanks for your feature request!

I've just released a new version which now adds a Last-Modified header. The last modification date of the image is passed in the HTTP date format. I hope this helps :)

degan6 commented 2 years ago

@sibbl, Thank you! That is perfect.