Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106809

Newsfeed in marquee

$
0
0

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&nbspRpi4 alerts:&nbsp;</div>
               <marquee>
               <span style='color: red;'>
               news1: ${states['sensor.nunieuws'].state},&nbsp
               news2: {{state_attr('sensor.nunieuws', 'title')}},&nbsp
               </span>
               <span style='color: var(--primary-color);'> 
               System alerts: ${states['sensor.nunieuws'].state}&nbsp</span>
               <span style='color: green;'>
               Summary - ${states['sensor.nunieuws'].state},&nbsp
               Daily - ${states['sensor.nunieuws'].state}&nbsp
               Hourly - ${states['sensor.nunieuws'].state}
               </span>
               </marquee>`]]]        

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106809

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>