Networking: Static IP, Proxy, TimeServer, etc.
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
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:
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.
"Ceo" wrote:
Thanks and excuse my doubts, but i can't find a tutorial in your web about the script and the .brs file.
Thus, if i understand your explanation, I must do this sequence:
1.- Inset a SDcard whith only the below .brs file and turn on the hd210.
...
2.- Insert the normal project files (whith their original autorun.brs file) and reset the system.
"RokuLyndon" wrote:
... You can either reset the unit using the recessed reset button, or just power down the unit once the onscreen message says settings have been updated.
- But where does the box store the changes? Are they stored in a non-volatile memory?
- How can I remove the proxy settings when I want to use the box with a different internet connection (without a proxy)? How can I restore the old settings?
I thought the box stores the changes directly in the autron.brs file located on the second SD card.
Hello.
I have question about settings proxy. Is there any chance to set proxy for most url's, but bypass proxy server for local addresses?
Device XD1230, network with AD, proxy and automatic configuration script for IE (company directions to use IE). Can't make any changes on proxy server.
Artur