0

RSS Proxy Settings and Update Frequency



Hi I have a HD210 Is there any way to use a proxy server for just the RSS feeds. Is there any way to use different update frequencys, if you have two or more RSS feed zones. Is there currently any development for supporting web pages. Thanks Andy

5 comments

  • 0
    Avatar
    RokuLyndon


    Are you using BrightAuthor....?
    There's a fixed update frequency in brightauthor. If you're using a custom script, then you can set it however you wish. Is this critical?

    There isn't currently any information to announce about html support. We've seen limited interest in it from a few customers.

    Yes, you can set a proxy for an rss feed. If you're using a custom script, you just need to call the SetProxy function. If you're using brightauthor, we would need to add the call to the autorun file that brightauthor uses.
  • 0
    Avatar
    andy miller


    Hi

    I have used the SetProxy option within a 'Network Settings' autorun.brs file, but this then stops the unit from getting updates from our local web server.

    Would using the SetProxy option inside a custom script, enable the proxy for just the RSS ?


    We are using BrightAuthor 2

    I see there is an RSS update frequency value, but this is for all rss feeds. Is it possible to set this per feed ? Not critical

    Thanks

    Andy
  • 0
    Avatar
    RokuLyndon


    The rss setting is for all feeds.

    Ok, BrightAuthor uses a master script for playback. GO to c:/program files/brightsign/brightauthor/templates, and copy the autoxml.brs file to your desktop. Rename it to autoxml-rss-proxy.brs. The name isn't critical so long as you know why it's different. You can open it in any text editor. There's a custom autorun field near the top where you can change the version number from 3.2.1 to something else, again, so that you know you've modified the file.

    Do a search for "roRSSParser" and you'll find this function:

    Sub newRSSPlaylistItem(playlistItemXML As Object, playlistItemBS As Object)

       ' read rss url
       ' read rss title
       rssSpec = playlistItemXML.rssSpec
       rssSpecAttrs = rssSpec.GetAttributes()
       playlistItemBS.rssURL$ = rssSpecAttrs["url"]
       playlistItemBS.rssTitle$ = rssSpecAttrs["title"]
       
       playlistItemBS.rssURLXfer = CreateObject("roUrlTransfer")
       playlistItemBS.rssURLXfer.SetUrl(playlistItemBS.rssURL$)
       playlistItemBS.rssURLXfer.GetToFile("tmp:/rss.xml")
       playlistItemBS.rssParser = CreateObject("roRssParser")
       playlistItemBS.rssParser.ParseFile("tmp:/rss.xml")
           
    End Sub





    We're going to add this line to the function:

    playlistItemBS.rssURLXfer.SetProxy("www.myproxyserverhere.com") 'add this line with your proxy server


    Sub newRSSPlaylistItem(playlistItemXML As Object, playlistItemBS As Object)

       ' read rss url
       ' read rss title
       rssSpec = playlistItemXML.rssSpec
       rssSpecAttrs = rssSpec.GetAttributes()
       playlistItemBS.rssURL$ = rssSpecAttrs["url"]
       playlistItemBS.rssTitle$ = rssSpecAttrs["title"]
       
       playlistItemBS.rssURLXfer = CreateObject("roUrlTransfer")
       playlistItemBS.rssURLXfer.SetUrl(playlistItemBS.rssURL$)

       playlistItemBS.rssURLXfer.SetProxy("www.myproxyserverhere.com") 'add this line with your proxy server

       playlistItemBS.rssURLXfer.GetToFile("tmp:/rss.xml")
       playlistItemBS.rssParser = CreateObject("roRssParser")
       playlistItemBS.rssParser.ParseFile("tmp:/rss.xml")
           
    End Sub


    And, now that we're done, open BrightAuthor, go to File, Presentation Properties, Autorun, and select custom autorun, and browse to your modified file so you can add it to a project. Now, when you publish this project you're workign on, it will use the custom autorun.
  • 0
    Avatar
    andy miller


    Thanks Lyndon

    It is now working perfectly  <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->

    Andy
  • 0
    Avatar
    Arthur Keene

    How would you pass username/password to the proxy?

Please sign in to leave a comment.