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

Disable cache? #62

Closed airmaxx closed 4 months ago

airmaxx commented 1 year ago

After some time (a few weeks) I no longer get the current picture. Instead, the image is taken from the cache and not updated.

[4/28/2023, 9:24:02 AM] recieved request from ::ffff:192.168.178.139 for /1.png
[4/28/2023, 9:24:02 AM] Image 1 was accessed
[4/28/2023, 9:24:02 AM] returning cached version of /dashboard-test/0?kiosk
[4/28/2023, 9:39:20 AM] recieved request from ::ffff:192.168.178.139 for /1.png
[4/28/2023, 9:39:20 AM] Image 1 was accessed
[4/28/2023, 9:39:20 AM] returning cached version of /dashboard-test/0?kiosk
[4/28/2023, 9:54:38 AM] recieved request from ::ffff:192.168.178.139 for /1.png
[4/28/2023, 9:54:38 AM] Image 1 was accessed
[4/28/2023, 9:54:38 AM] returning cached version of /dashboard-test/0?kiosk

What can I do? If I stopp and purge everything, it works again for a few weeks.

sibbl commented 4 months ago

Is there any exception somewhere in the log? That the image is returned as a cached version is correct behavior - what's missing is the recreation of this image triggered in a configurable interval. Maybe this interval is too high?