22.12.2013 Views

Roku Object Reference - imaginArt

Roku Object Reference - imaginArt

Roku Object Reference - imaginArt

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

oDeviceInfo<br />

The roDeviceInfo object implements the ifDeviceInfo interface only.<br />

The ifDeviceInfo interface provides:<br />

• GetModel() As String<br />

o Returns the model name for the BrightSign device running the script as a string. For example<br />

"HD1010" or "HD2000".<br />

• GetVersion() As String<br />

o Returns the version number of the BrightSign firmware running on the device. For example<br />

"1.3.14".<br />

• GetVersionNumber() As Integer<br />

o Returns the version number of the BrightSign firmware running on the device in the more<br />

comparable numeric form of (major * 65536 + minor * 256 + build).<br />

• GetBootVersion() As String<br />

o Returns the version number of the BrightSign boot firmware (also known as "safe mode") as a<br />

string. For example "1.0.4".<br />

• GetBootVersionNumber() As Integer<br />

o Returns the version number of the BrightSign boot firmware (also known as "safe mode") in<br />

the more comparable numeric form of (major * 65536 + minor + 256 + build).<br />

• GetDeviceUptime() As Integer<br />

o Returns the number of seconds that the device has been running since the last power cycle or<br />

reboot.<br />

• GetDeviceLifetime() As Integer<br />

o Returns the estimated number of seconds that the device has been running since manufacture.<br />

The result is more accurate if the device is left switched on for long periods rather than being<br />

constantly switched on and off. This figure has only been updated since v1.1.x firmware.<br />

• GetDeviceBootCount() As Integer<br />

o Returns the number of times the device has successfully booted since manufacture. This<br />

figure has only been updated since v1.1.x firmware.<br />

• GetDeviceUniqueId() As String<br />

o Returns an identifier that if not an empty string is unique to the unit running the script.<br />

o On the HD2000, this string is the MAC address of the on board Ethernet.<br />

• GetFamily() As String<br />

o Returns a single sring which indicates the family to which the device belongs. A device<br />

family is a set of models that are all capable of running the same firmware.<br />

Example:<br />

di = Create<strong>Object</strong>("roDeviceInfo")<br />

print di.GetModel()<br />

print di.GetVersion(), di.GetVersionNumber() print di.GetBootVersion(),<br />

di.GetBootVersionNumber() print di.GetDeviceUptime(),<br />

di.GetDeviceLifetime(), di.GetDeviceBootCount()<br />

On a particular system generates:<br />

HD2000<br />

1.4.3 66563<br />

1.0.4 65540<br />

478 581578 77<br />

32

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!