Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No card images display with HAOS #5

Open
grahamw72 opened this issue Jul 20, 2024 · 0 comments
Open

No card images display with HAOS #5

grahamw72 opened this issue Jul 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@grahamw72
Copy link

Not sure if this project is still active, I like this card, it didn’t work well so this is a work around I have come up with to eliminate the path issues I faced.

Describe the bug
No images render within the card on the HAOS front end (yaml or storage modes).

To Reproduce
Install the card through HACS, clear cache and reload page. All browsers, all devices do not render images with HAOS.

Work around

  1. Modify the sky-tonight-native-card.js file paths of the images on lines 5, 22, 23, 24, 33 and 37 from /local/ to /hacsfiles/

  2. Delete the sky-tonight-native-card.gz file

  3. Change the lovelace resources url path from /local/ to /hacsfiles/

  4. Restart HA

Please refer to the following document for justification: https://hacs.xyz/docs/categories/plugins

“If you make local changes to a plugin in the .js file, delete the .gz variant to have HACS serve up that one.”

“HACS has a custom view/path/endpoint for serving up Lovelace elements (plugins) /hacsfiles/, this works mostly the same way as /local but has some extra features.”

“The /hacsfiles endpoint does not cache anything; it will instruct your browser to fetch a new version on each load.”

@grahamw72 grahamw72 added the bug Something isn't working label Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant