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

404 on icon images #44

Closed EndermanAPM closed 9 months ago

EndermanAPM commented 1 year ago

Checklist:

Release with the issue: 5.9.3

Last working release (if known):

Browser and Operating System: HA: Manged Raspberry Pi OS

Client: Windows 10 64b Pro - Chrome 109.0.5414.120 Also happens with the android app

Description of problem:

The card is unable to load it's icons, returning a 404. Also I was unable to set the background image to a local route, had to link to an external image to get it to work. Might be helpful to know that I'm using the duckdns addon.

image

Javascript errors shown in the web inspector (if applicable):

body_type.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/body_type.png 404 (Not Found)
bmi.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/bmi.png 404 (Not Found)
protein.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/protein.png 404 (Not Found)
visceral_fat.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/visceral_fat.png 404 (Not Found)
body_fat.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/body_fat.png 404 (Not Found)
water.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/water.png 404 (Not Found)
muscle_mass.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/muscle_mass.png 404 (Not Found)
ideal.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/ideal.png 404 (Not Found)
basal_metabolism.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/basal_metabolism.png 404 (Not Found)
bone_mass.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/bone_mass.png 404 (Not Found)
metabolic_age.png:1          GET https://[[myduckdns]]/local/images/bodyscoreIcon/metabolic_age.png 404 (Not Found)

Additional information:

dckiller51 commented 1 year ago

Hello, did you follow this instruction?

For body score icons, download and add src/images/bodyscoreIcon/*.png to /www/images/bodyscoreIcon/

dckiller51 commented 9 months ago

@EndermanAPM Is your problem solved?

EndermanAPM commented 9 months ago

Hi @dckiller51 YES, that fixed it. Thanks p.s. That link and the one in the README are now broken. (seems that the master branch got changed to main at some point)