dckiller51 / lovelace-body-miscale-card

Card for data of Xiaomi scales in the Lovelace user interface of Home Assistant The card is linked to the Bodymiscale custom components for Xiaomi scales. https://github.com/dckiller51/bodymiscale
MIT License
81 stars 23 forks source link

Image and Icons not shown #20

Closed FPMilan closed 2 years ago

FPMilan commented 2 years ago

Hi, for me the image is not showing and neither the icons are. I have copied the image into ~/config/www/images/ and the Icons to ~/config/www/images/bodyscoreIcon/

In the card config I have set the path as /local/images/miscale2.jpg or /local/miscale2.jpg both do not work. Any tips? Probably I just can not type the right path I guess.

dckiller51 commented 2 years ago

It's good.

dckiller51 commented 2 years ago

IMG_20211127_201410

jerry-ch-issue commented 2 years ago

image image image image ~similar issues. I can see images but icons.~ edit: solved, Dumb operation. I change to raw.githubusercontent.com to download again. now it works.

edit: solved. ~And the language has not been automatically changed to zh-hans.~

xpavli44 commented 2 years ago

I've noticed something about the miscale2.jpg. It is named as .jpg but if I download it via browser it saves as .jpeg. I suspect that might cause some issues. @dckiller51 WDYT? Screenshot 2021-12-22 at 9 33 50

FPMilan commented 2 years ago

For me the issue with the background image is solved. The file was somehow corrupted and a redownload solved it. Regarding the Icons, I realized, that they are only visible in dark mode. Would be great if you could change the Icons to work for both themes. Thank you for the replies and help!

dckiller51 commented 2 years ago

I'll see what I can do.

dckiller51 commented 2 years ago

the update is available. (5.9.0)