0

Nodejs autorun - blank screen

Hi, I'm trying to display a basic HTML page on the BrightSign.

I have the following autorun.brs:

sub main()

r=CreateObject("roRectangle", 0,0,1920,1080)
is = {
port: 3000
}
config = {
nodejs_enabled: true
inspector_server: is
brightsign_js_objects_enabled: true
url: "file:///sd:/index.html"
}
h=CreateObject("roHtmlWidget", r, config)
h.Show()

msgPort = createobject("roMessagePort")

h.setPort(msgPort)

while true
msg = Wait(0, msgPort)
end while

end sub

And an index.html:

<html>
<body>
<h1>
Test
</h1>
</body>
</html>

These files are both in the root of an SD card in the BrightSign.

The BrightSign is:
Model: XT1144
Boot Version: 7.1.42
BrightSign OS Version: 8.5.33

When I power on the BrightSign all I get is a black screen.  However the log file does say this:

BSPLAY: file:///sd:/index.html

Am I missing a step somewhere?
Any help appreciated.

 

2 comments

  • 0
    Avatar
    Lee Mc

    I'm an idiot.... I needed to set a background colour.  The text was black on a black (transparent) background.

  • 0
    Avatar
    Bright Scripters

    That makes you human. Not the other thing :)

Please sign in to leave a comment.