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

kindle-screensaver showing different information to /lovelace?kiosk #98

Closed nokel closed 5 months ago

nokel commented 7 months ago

Hi, I've got a really weird bug where the information that the kindle-screensaver shows is slightly different to what the actual link for /lovelace?kiosk is displaying and I have no idea why, or how to fix it?

/lovelace?kiosk image

kindle-screensaver image

all of the modules seem to display correctly except the weather one, which seems to show the names of the days incorrectly? The scraper for the weather is the wunderground addon from https://github.com/cytech/Home-Assistant-wundergroundpws so I don't know if it's a bug on their end, or this one...

sibbl commented 6 months ago

That's indeed a very interesting issue. My initial thought was that it could be a timing issue but the date and time are displayed equally in the other component.

Could you please try adding another weather provider and check if it's the same issue there?

I could imagine it will be the same problem then, which might indicate that it's rather an issue of the weather lovelace component.

nokel commented 6 months ago

It looks like the default weather module shows the correct labels on both of the views... which is kind of odd...

/lovelace?kiosk image

kindle-screensaver image

Just a thought, I have sunday set as my "first day of the week" on something, could that be what's messing it up? and if that's the case, how do I fix that without making monday the first day of the week?

EDIT: I think it's my locale that sets sunday to the first day of the week... Not sure if that should matter or not...

jeeves5454 commented 5 months ago

I have the same issue when using my standard forecast and it causes an issue with both Hourly and Daily levels. The Ecobee forecast does not see the same error. There is something wrong but unsure where to go next to diagnose. The issue is on Image creation though. It is not an exact replica of the Weather section either.

Dashboard

image

Thank you for the hardwork. Looking forward to repurposing the Kindle :-)

jeeves5454 commented 5 months ago

Looking at other issues in the list I believe its a TimeZone issue. Will try with that and see if it resolves it.

jeeves5454 commented 5 months ago

Confirmed. Adding the TimeZone environment variable resolved the issue. My suggestion/Request - Add the TZ env variable to the instructions to support the install and close this issue. Thanks!!!