1

How to display RSS newsfeed "titles only" as tickertape



Hi there, Like to display the latest news headlines on a tickertape (HD210). "Titles" only; scrolling. E.g. <!-- m --><a class="postlink" href="http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml">http://newsrss.bbc.co.uk/rss/newsonline ... ss/rss.xml</a><!-- m --> I assume I need a seperate computer for this application, as a BrightSign unit could not know what to display attaching it just to an internet address. (Some XML restyling or so?) Is an RDF link a solution? I'm new on this usage of RSS and sinage apps. Please advice, Hugo

4 comments

  • 0
    Avatar
    RokuLyndon


    What do you want to do with the body of the RSS feed? You could do this with a script. Or, if you only want the title and nothing else, we could modify the BrightAuthor autorun script which currently uses the description field.  Here's a test you can do.

    On your flash card, when you publish a project from brightauthor, there's an autorun.brs file. This is the master script. It's overwritten each time you publish. Search for this funtion:

    Sub UpdateRSSStrings(zone as Object, playlistItem as Object)
       rssStringCount = zone.widget.GetStringCount()
       zone.widget.PopStrings(rssStringCount)

       article = playlistItem.rssParser.GetNextArticle()
       while type(article) = "roRssArticle"
           zone.widget.PushString(article.GetDescription())
           article = playlistItem.rssParser.GetNextArticle()
       endwhile

    End Sub



    Then, change the "article.GetDescription()" entry to "article.GetTitle()". So, it would like this this instead:

    Sub UpdateRSSStrings(zone as Object, playlistItem as Object)
       rssStringCount = zone.widget.GetStringCount()
       zone.widget.PopStrings(rssStringCount)

       article = playlistItem.rssParser.GetNextArticle()
       while type(article) = "roRssArticle"
           zone.widget.PushString(article.GetTitle())
           article = playlistItem.rssParser.GetNextArticle()
       endwhile

    End Sub

  • 0
    Avatar
    andy miller


    Hi

    Is it possible to display both the title and description ?

    Would you have them as two seperate lines ?
    zone.widget.PushString(article.GetTitle())
    zone.widget.PushString(article.GetDescription())

    or as one line  ?
    zone.widget.PushString(article.GetTitle()": "article.GetDescription())

    Thanks

    Andy
  • 0
    Avatar
    RokuLyndon


    You could do it as two lines, but the title would be listed as a separate entry, so it would show by itself, and then the description would be shown next. If you want them together, you just need to push them as one string. So, you would do something like this:

    zone.widget.PushString(article.GetTitle() +" : " + article.GetDescription())

    This will put two extra spaces and a colon between the title and the body.
  • 0
    Avatar
    andy miller


    Thanks Lyndon
Please sign in to leave a comment.