I have newsitems from a rss-feed in listcard. Because that takes a lot of space on my frontpage, I would like to have those news-items as a marquee (when that is possible).
I don’t know how to fill the template. Perhaps someone does ?
This is the code for the marquee :
type: custom:button-card
name: >
[[[return `<div style='display: flex;display: -webkit-flex;'>
<div>Ha Rpi4 alerts: </div>
<marquee>
<span style='color: red;'>
news1: ${states['sensor.nunieuws'].state}, 
news2: {{state_attr('sensor.nunieuws', 'title')}}, 
</span>
<span style='color: var(--primary-color);'>
System alerts: ${states['sensor.nunieuws'].state} </span>
<span style='color: green;'>
Summary - ${states['sensor.nunieuws'].state}, 
Daily - ${states['sensor.nunieuws'].state} 
Hourly - ${states['sensor.nunieuws'].state}
</span>
</marquee>`]]]
1 post - 1 participant