ich baue mir gerade ein Widget, mit dem ich einige Wetterinfos anzeigen möchte. Für die meisten Infos funktioniert das auch super, nur das Bild / Icon für die Wetterlage bekomme ich nicht hin.
Hier eine Auszug, was funktioniert:
Code: Alles auswählen
- component: f7-row
config:
class:
- justify-content-left
slots:
default:
- component: Label
config:
text: =(Number.parseFloat(items[props.itemTemp].state.split(" ")[0]) * 100 / 100).toFixed(1) + '°'
style:
font-size: 30px
line-height: 1.1
font-weight: 500
margin-left: 0px
margin-top: 8px
color: red
- component: f7-chip
config:
bgColor: orange
text: =(Number.parseFloat(items[props.itemTempGef].state.split(" ")[0]) * 100 / 100).toFixed(1) + '°'
style:
color: white
top: 14px
font-size: 20px
border-radius: 10px 10px 10px 10px
margin-left: 8px
Code: Alles auswählen
default:
- component: oh-image
config:
backround: =props.itemIcon
Habt ihr Tipps für mich, wie ich das Wetter-Icon dort angezeigt bekomme?
Die probs sind alle vom Typ: TEXT. Vielleicht muss auch hier etwas geändert werden?
Ich bin für jede Hilfe dankbar, ich weis nicht mehr weiter