I am developing an Node.js enabled presentation. The supporting HTML and JS files are placed at the root of the SD card. The autorun.brs file is modified to enable node and specifies the root html file. Currently, the only way I am able to make updates is by physically removing the sd card and manually updating the files.
It it possible to publish code changes remotely via BrightAuthor (or any other method)?
5 comments
-
Bright Scripters I've been asking myself similar questions...
Here is what comes to mind.
You could publish custom code along with your presentation, through the Presentation Properties -> Files.
Files that you would publish using this mechanism, would then be transferred to the Pool directory in the SD card.
Paths to files in the Pool change dynamically based on resulting hash, but you can locate the files in run-time by use of BrightScript.
Locating Pool files can be done by parsing the xml file in the root of the SD, or by means of a Pool object in BrightScript.
Once your html is found, you could either use it where it is, or copy it to your own directory on the SD card.
Working directly from the Pool has other benefits too...
Quite a few hoops to jump through, but could add manageability to your software deployment process. You should be able to publish using any method: BSN, Local, or Simple.
In theory... :)
I'd be interested in knowing how that went, as I have never used the suggested technique.
Itching to start coding for Node for its Functional Programming magic.
P.S.
If your Node code is very short, your could use a BA plugin, that writes your Node code to the SD, and therefore can be published remotely.
You can find me at info@brightscripters.com
-
Bright Scripters Any luck?
-
PAUL RUDOLPH Thanks for the suggestions.
I am currently exploring an idea of using the web portal's file management to upload an archive of the node application. The application would initially check if an archive exists on the root of the SD card and tries to unpack the files. I still have some more testing to do but it seems like it could be a solution.
-
Bright Scripters If you have direct access to the player, that would work.
If your player is on BSN, and there is no direct access, or DWS must be turned off, the Pool is your friend. -
Dustin Vietzke I would be interested in this solution as well. I am currently early in development and am updating the files through the web portal on the player.