brightsign / bs-asset-fetcher

Brightsign asset fetcher library for use with the onboard node.js server
MIT License
2 stars 0 forks source link

How to run the code on Brightsign #1

Open pew-x2 opened 7 years ago

pew-x2 commented 7 years ago

Would be great to have some kind of instructions on how to actually run the code on a Brightsign. To me at least, it is not as easy to run nodejs apps on a Brightsign player compared to a RasperryPi. Some step by steps instructions would be really great to have.

PGambrill commented 7 years ago

Please take a look at this page on the BrightSign Docs site: http://docs.brightsign.biz/display/DOC/Node.js

If you can't find the information you need there, let me know and I can work with our developers to add the needed info.

pew-x2 commented 7 years ago

Hi! I have actually been trying to run the example given in http://docs.brightsign.biz/display/DOC/Node.js without any success. The example is not very clear on how to start a nodejs application and communicate with the browser in the Brightsign player.

PGambrill commented 7 years ago

Hi Perkka,

pew-x2 commented 7 years ago

I have now received answers on the forums about how to start the exmple in the docs.

Hm, about launching Node.js through HTML makes me think that I maybe shouldn't use nodejs. I was hoping to be able to use NodeJs as a backend running on localhost for the bs player browser to query for certain states. If not it is possible to hide a roHtmlWidget that is only used for running the NodeJs and having another roHtmlWidget that is displaying the page?

jsinai commented 7 years ago

Yes, you can create multiple roHtmlWidgets as you describe. It should work fine to use one as a node server, and the other as a renderer.