0

BrightSign Author - Modifying Script to Set Proxy IP and Por



I have just purchased 3 of the HD1010 units and they work perfectly from home with my ISP complete with RSS feeds, however they will not connect to the network in the location I need to use them. I need the unit to work from behind a proxy server. I have looked at responses in the forum but my question is: when I view my current autorun.brs file, that was first published to a USB Drive and then copied to the HD1010 SD card, it is 199 pages long when viewed in Word (all pages are completely full). When I receieved a support email from the Brightsign reps they suggested: 1. adding the proxy settings into the following script. I will be using an IP and Port number - e.g. "10.10.20.15:800" (do I need quotes?) 2. then copy the script to the SD card and try to boot up the HD 1010 3. then create the network set-up files and publish to the SD card In the Script I received I edited the line, nc.SetProxy("http://username:password@proxy.yourcompany.com:port/") and changed to (e.g. only) nc.SetProxy("10.10.20.15:800") A Username and password are not required for access to the proxy The Script I received from the support team REM Start of script EnableZoneSupport(1) REM Create text widget to display onscreen messaging mode=CreateObject("roVideoMode") registry=CreateObject("roRegistry") rect1 = CreateObject("roRectangle", mode.GetSafeWidth()/4, mode.GetSafeHeight()/2, 500, 40) rect2 = CreateObject("roRectangle", mode.GetSafeWidth()/4, mode.GetSafeHeight()/2+42, 500, 40) text1 = CreateObject("roTextWidget", rect1, 1, 1, 0) text2 = CreateObject("roTextWidget", rect2, 2, 1, 0) print type(rect) print type(text) text1.Show() text1.PushString("DHCP Network Configuration") sleep(5000) REM Adjust network settings here if necessary REM nc = CreateObject("roNetworkConfiguration", 0) nc.SetDHCP() nc.SetProxy("http://username:password@proxy.yourcompany.com:port/") rem nc.SetTimeServer("mytimeserver.com") 'Set Time server here, add address inside quotes text1.Hide() ok=nc.Apply() registry.Flush() text2.PushString("Settings Updated. Remove Network Configuration Script from flash card.") if ok=true then text2.Show() sleep(30000) REM End of script Any advise would be most welcome

3 comments

  • 0
    Avatar
    RokuLyndon


    You don't want to edit the script in word. You want to use something like notepad, a plain text editor. I'm not sure but you can try the script and remote the username:password portion from the settings to set the proxy server.

    nc.SetProxy("http://proxy.yourcompany.com:port/")
  • 0
    Avatar
    dionysius51


    Hi Lyndon, thanks for the reply.

    Yes I do realise I edit in a text editor such as notepad, wordpad, my reason for the mention of Word was to illustrate the vast amount of text (199 A4 Word pages) in the Autorun.brs file, I assume most of this is generated when I create the Setup Files?  My problem/question was: Where to put the nc.SetProxy("http://proxy.yourcompany.com:port/") in the script (or does it not matter)?

    The suggestion from the support team was to first put their suggested script with my edited proxy settings onto the SD card and try to boot the unit, then create the startup files pointing to the SD card as the target (I mentioned this in my previous post, highlighted in blue).  Does this sound right?

    Regards  Dennis
  • 0
    Avatar
    RokuLyndon


    Yes, you can run the script for proxy by itself, then go back to your normal project files with the script from brightauthor.
Please sign in to leave a comment.