How does LiveText Data work with XML/RSS files in BrightAuthor?

We based the XML format of Live Text Data on an RSS feed: This is a simplified XML file with support for “Title” and “Description” tags.  Each field will display the contents of the “Description” tag.

You can select an item to be displayed based on its name (Item title) or its index number in the file (Item index).  

You can use the RSS format to build the source Data Feed.  See the example screenshot and RSS feed below:

 

livetext-item.jpg

 

Example RSS XML

To display “$3.99”, you can use “Item Description” radio button and enter “HotDogPrice” as the title. Since "HotDogPrice" is the second item, you can alternatively select the “Item Index” radio button and specify the number 2.

<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0">

  <channel>

    <title>Sample List File </title>

    <description>This is an example of an live text feed file</description>

    <ttl>1800</ttl>

    <item>

      <title>Item 1</title>

      <description>Hot Dogs</description>

    </item> 

    <item>

      <title>HotDogPrice</title>

      <description>$3.99</description>

    </item>

</channel>

 </rss>

Have more questions? Submit a request

5 Comments

  • 0
    Avatar
    D4M

    Is it possible to show other tags and just "title" and "description"?

    Say i want to have also a tags called <small> and <big> is this possible?

    <item>
    <title>HotDogPrice</title>
    <description>$3.99</description>
    <small>$2.10</small>
    <big>$6.00</big>
    </item>

  • 1
    Avatar
    Lyndon

    Yes, with a plugin you can add the others in.  You can attach a plugin to a feed that will parse the feed, and the content so the unit can use it. 

     

    In the example you give,  the data would be entered in blocks of four. SO, if you're using index to reference content:

    index 1 = Hotdog

    2 = $3.99

    3 = $2.10

    4 = $6.00

    And, then it would repeat for indices 5, 6, 7, and 8. Or, f you don't want all three prices in your data, only  the title (hotdog), and then the small and big prices would be added so your data set would be blocks of 3. 

     This plugin is called menu, and the function name is the same.

     https://dl.dropboxusercontent.com/u/3480052/Scripts/parse/rss/menu.brs 

     

  • 0
    Avatar
    Johan Westerlaken

    @Lyndon; locking in on D4M's quuestion. I'm breaking my head on the parser-script-thingie. I've been though i've been coding for websites for years and have seen quite a few Narrowcasting devices / programs, i cannot get my finger on how the scripting thing gets started in Brightsign / Brightauthor.

    I mean, there are a lot of examples and videos on lots of issues, but not a starting-with-custom-scripts-for-dummies

    I have a XML file that has per item a title, a description, a startdate and enddate.  A generic calender rss as such.

    I've connected the XML feed in presentation properties and checked "Automatically generate User variables from data feed", but how?

    The Reference Manual is very thorough, but -for me- i'm missing the simplest sample project. The dropbox-link above has gone awol.

     

  • 0
    Avatar
    Lyndon

     

    IF you choose automatically generate variables from feed, then the title in each item will be added to the project as a variable, just the title.  IF this is a standard rss, why do you need a parser plugin to display it. You can use live text to display the title and description fields. Or, use a ticker zone to display the description field from the feed.

     

    what are you trying to display? how are you trying to display it?

    what do you want the plugin to do?

  • 0
    Avatar
    Johan Westerlaken

    Hi Lyndon,

    I opened a separate topic with my issue, but somehow that one doesn't get noticed.

    https://brightsign.zendesk.com/hc/en-us/community/posts/360026259753-XML-child-objects

    Problem is, i cannot find out how to get to my child items (start and enddate) in the <ev:****> namespace.

    <ev:tribe_event_meta xmlns:ev="Event">
    <ev:startdate>31 january | 08:00</ev:startdate>
    <ev:enddate>31 january | 17:00</ev:enddate>
    </ev:tribe_event_meta>

    any clue on this?

     

Please sign in to leave a comment.
Can't find what you're looking for? Try to
Powered by Zendesk