This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM read more about assetPools here: http://docs.brightsign.biz/display/DOC/roAssetPool | |
REM read more about syncspecs here: http://docs.brightsign.biz/display/DOC/roSyncSpec | |
REM Sha1's should be calculated on the server and placed into an entry of the sync spec like so: | |
REM <download> | |
REM <name>autoplay-Project 1.xml</name> | |
REM <hash method="SHA1">a8e24dcfb83a694da58bafb3ab763c07ca842baf</hash> | |
REM <size>7962</size> | |
REM <link>pool/a/f/sha1-a8e24dcfb83a694da58bafb3ab763c07ca842baf</link> | |
REM </download> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CreateObject("roAssetPool", pool_path As String) | |
pool = CreateObject ("roAssetPool", "SD:/pool") | |
sync_spec = createObject("roSyncSpec") | |
sync_spec.readFromFile("path/to/sync.xml") | |
if pool.validate(sync_spec) then | |
print "Files match their sha1's" | |
else | |
print "Failure validating files" | |
print pool.getFailureReason() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CreateObject("roAssetPool", pool_path As String) | |
pool = CreateObject ("roAssetPool", "SD:/pool") | |
sync_spec = createObject("roSyncSpec") | |
sync_spec.readFromFile("path/to/sync.xml") | |
if pool.validate(sync_spec) then | |
print "Files match their sha1's" | |
else | |
print "Failure validating files" | |
print pool.getFailureReason() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msqPort = createObject("roMessagePort") | |
'Defer the watchdog because the system may be tied up for a little while as the transfer commences | |
msgPort.DeferWatchdog(120) | |
newSync = createObject("roSyncSpec") | |
newSync.readFromFile("path/to/newSyncSpec.xml") | |
assetCollection = newSync.GetAssets("download") | |
path$ ="/fwUpdate/path/to/pool" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM | |
REM | |
REM This code demonstrates how to detect a network configuration. | |
REM Read more: http://docs.brightsign.biz/display/DOC/roNetworkHotplug | |
REM | |
Sub Main() | |
networkAvailable = false | |
'Check ethernet | |
nc = CreateObject("roNetworkConfiguration", 0) | |
if type(nc) = "roNetworkConfiguration" then |