Your Digital Media Has Never Looked So Good

 
StefanK
Topic Author
Posts: 13
Joined: Wed Jan 13, 2010 7:44 am
Location: Austria

Networking: Static IP, Proxy, TimeServer, etc.

Thu Jan 14, 2010 4:05 am

Hi,
I want to use a static IP Adress. I only found that it is possible but not how? (Description of the release)

best regards
Stefan
 
RokuLyndon

Thu Jan 14, 2010 7:40 am

Setting IP Addresses
The units use DHCP by default but you can use a script to manually set the IP or to change back to DHCP. The scripts below are just text files. You edit the script to use your own IP settings when manually setting the IP address.

Manual IP Script
Set to DHCP

These are the actual manual IP address lines in the manual script:
  • nc.SetIP4Address("192.168.0.66")
  • nc.SetIP4Netmask("255.255.255.0")
  • nc.SetIP4Broadcast("192.168.0.255")
  • nc.SetIP4Gateway("192.168.0.1")
  • nc.AddDNSServer("192.168.0.1")


Setting Proxy Server
You can use the Brightsign with a proxy server. This has been tested in several customer applications. To use it, just add the proxy server setting to either of the scripts above directly before this Apply entry that saves settings: nc.Apply()

Proxy Server Address added:
nc.SetProxy("http://proxy.yourcompany.com:port/")

Proxy with Username and Password
nc.SetProxy("http://username:password@proxy.yourcompany.com:port/")

Note: See below for details for adding a proxy server only for RSS feeds used in BrightAuthor.

Time Server
You can set the Brightsign to use your time server or a different time server than time.roulabs.com. To use it, just add the time server setting to either of the scripts above directly before this Apply entry that saves settings: nc.Apply()

nc.SetTimeServer("time.myserver.com")


RSS Proxy for BrightAuthor - Added 6/10/2010

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.
 
racheson
Posts: 5
Joined: Tue Sep 15, 2009 11:54 am

Setting IP address

Wed Jan 27, 2010 9:23 am

How would I implement this in an existing BrightAuthor environment? Can it be done via software or does it require publishing new network setup files and then combining them with this brs and physically swapping cards?

Thanks,
Rob
 
RokuLyndon

Wed Jan 27, 2010 5:29 pm

Implement which?
The proxy, manual IP, time server?


Is this for an actual install, or are you testing currently?
 
racheson
Posts: 5
Joined: Tue Sep 15, 2009 11:54 am

Wed Jan 27, 2010 6:23 pm

I have a currently installed system that is managed via BrightAuthor. 5 HD1010s on an internal network. The client has asked that we change the players from DHCP to static IP. I am confident that I can edit the brs with the needed IP address information. But I would like to know if I can push this update out through BrightAuthor or do I need to copy autorun.brs onto a card and physically install it in the players? After updating can I just put the previously working show card back in? Or do I need to re-publish network setup files and the show from BrightAuthor?

Thanks,
Rob
 
RokuLyndon

Wed Jan 27, 2010 9:48 pm

You can run the script to manually set the IPs, then switch back to the flash cards that have the content. If you're using the same flash cards, you can move the content into a subfolder, and then run the script.

This is the easiest way to do it if manually swapping out the cards isn't a problem.
 
andy miller
Posts: 8
Joined: Sun Feb 28, 2010 11:44 am

Re: Networking: Static IP, Proxy, TimeServer, etc.

Sun Feb 28, 2010 11:55 am

Hi Lyndon

We have used the proxy setting to enable us to get RSS feeds from an external site. :D

The problem we have now encountered is that when the HD210 player tries to get updates from our internal web server, it uses the proxy server, which is not allowing the content to be updated properly. :(
(We looked at the IIS logs to confirm that the proxy was being used)

We have tried to reset the network settings using a script, but this does not appear to reset the proxy settings. Is there a special command we must use to do this ? :?:

What we would like is to have a proxy exception list, like web browsers, so that when the player needs to get updated content from the local server, it does not need to use the proxy. Is this possible ? :?:

Thanks

Andy
 
rbradway
Posts: 6
Joined: Mon Oct 26, 2009 1:38 pm
Location: Boston, MA

Re: Networking: Static IP, Proxy, TimeServer, etc.

Mon Mar 01, 2010 10:07 am

What is the nature of the BROADCAST property? We are changing the static IP for our configuration to a new IP as we upgraded our network. We are unsure what we need to change the BROADCAST setting to.
 
RokuLyndon

Re: Networking: Static IP, Proxy, TimeServer, etc.

Mon Mar 01, 2010 7:55 pm

You should be able to set the proxyt to nothing "" to remove it.
 
RokuLyndon

Re: Networking: Static IP, Proxy, TimeServer, etc.

Mon Mar 01, 2010 7:57 pm

You should be able to leave that setting blank, but it's the broadast address for your subnet.

SO, if you are using IP range 192.168.1.x - 192.168.1.254 and your subnet mask is 255.255.255.0 then your broadcast address would be 192.168.1.255. This is the address that would be used to send a broadcast message to all devices on your subnet.

That's my understanding. I'll ask one of our network guys for clarification.
 
RokuLyndon

Re: Networking: Static IP, Proxy, TimeServer, etc.

Tue Mar 02, 2010 2:14 am

Ok, if the proxy is only needed for the rss feed, then we can modify the autorun script that you're using so that the proxy value is only set for the rss feed. I can show you where to make the changes in the autorun file. If you're using BrightAUthor, I can show you how to update the script that BrightAuthor publishes with each project.
 
andy miller
Posts: 8
Joined: Sun Feb 28, 2010 11:44 am

Re: Networking: Static IP, Proxy, TimeServer, etc.

Fri Mar 05, 2010 5:06 am

Thanks Lyndon

I set the proxy to nothing and this has helped.

We do use BrightAuthor, so changing the script that BrightAuthor publishes would be best.
 
rbradway
Posts: 6
Joined: Mon Oct 26, 2009 1:38 pm
Location: Boston, MA

Re: Networking: Static IP, Proxy, TimeServer, etc.

Tue Mar 09, 2010 2:26 pm

Can you elaborate on the TimeServer setting? To what should we be pointing? An Internet time service? Or a plain vanilla server on our internal network to which we want to sync to its time? This is a new concept for me. If you could provide an tangible example, I would understand better. Thanks.
 
RokuLyndon

Re: Networking: Static IP, Proxy, TimeServer, etc.

Tue Mar 09, 2010 6:45 pm

The timer server can point to an internal server. By default, it goes to time.rokulabs.com, although that might have been updated recently to a brightsign domain. So, you can change it to an internal time server if your network blocks udp port 123.
 
andy miller
Posts: 8
Joined: Sun Feb 28, 2010 11:44 am

Re: Networking: Static IP, Proxy, TimeServer, etc.

Wed Mar 17, 2010 10:12 am

Hi Lyndon

Any update on the proxy server setting for just RSS feeds.

Thanks

Andy

Who is online

Users browsing this forum: No registered users and 1 guest