jeremyhamm / home-assistant-moon

Phases of the moon for home assistant
MIT License
14 stars 6 forks source link

Moon image not displayed #5

Closed gene2610 closed 2 years ago

gene2610 commented 2 years ago

I am on HA 2022.8.7 and trying to use the moon-phases card. I have installed per the instructions and the card displays the date and moon phase text but not the image. When I try to display the image in a new window it states not found. The moon-phases folder is in the www folder and the images folder in in the moon-phases folder. Any thoughts on the problem?

gene2610 commented 2 years ago

SOLVED. I managed to solve this. I edited line 124 from this

<img src="/hacsfiles/moon-phases/images/${phase.name}.png" class="img">

to the following

<img src="/local/moon-phases/images/${phase.name}.png" class="img">

There is 1 change; 'hacsfiles' to 'local' since files are in www folder and not www/community. The image now appears as it should.

gene2610 commented 2 years ago

Solved

maijo366 commented 9 months ago

SOLVED. I managed to solve this. I edited line 124 from this

<img src="/hacsfiles/moon-phases/images/${phase.name}.png" class="img">

to the following

<img src="/local/moon-phases/images/${phase.name}.png" class="img">

There is 1 change; 'hacsfiles' to 'local' since files are in www folder and not www/community. The image now appears as it should.

This do not help for me.

No Images displayed.