Scripts

From Oxygen.next Wiki

Jump to: navigation, search

By means of scripts devices can be automatized. A device is a display connected via VGA/DVI/HDMI or RS232 or a controllable crossbar connected via RS232, for example. Scripts are handled like footage but they are triggered by timer events only and will not be considered by the normal scheduler. Scripts are a specific language declaratively written via XML. Therefore you should be familiar with the creation of XML files.

Contents

[edit] Monitor Power Script

By means of the monitor power script displays connected via VGA/DVI/HDMI can be easily switched on and off.

An example:

 <monitorpowerscript xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:noNamespaceSchemaLocation="mps.xsd">
  <!--status is one of the following: {"on", "off", "standby"}-->
  <set status="on"/>
 </monitorpowerscript>

This script allows to control the power status of a display connected via VGA/DVI/HDMI.

[edit] Station Power Script

By means of the station power script timer events for rebooting resp. shutting down an Oxygen Station can be defined. Depending on your PCs Hardware PowerOn can be configured in the BIOS. Another possibility is to PowerOn the PC by Wake up on Lan. A Wake up on Lan Command could be send from your Router or another PC in you network.

An example:

 <stationpowerscript xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:noNamespaceSchemaLocation="sps.xsd">
  <!--status is one of the following: {"reboot", "shutdown"}-->
  <set status=" reboot "/>
 </stationpowerscript>

ATTENTION: Station power scripts are executed 30 minutes after booting up a station to make sure that at least one update process could be carried out.

[edit] RS232 Scripts

Many manufacturers provide their displays or crossbars tailored for corporate clients with an RS-232-interface (also known as COM port). Depending on the manufacturer and the device model and type the basic functions such as brightness and sound level can be modified or the different input signals can be switched remotely.

I wnated to spend a minute to thank you for this.

Yeah, that's the tckiet, sir or ma'am

[edit] Script Examples

I tohught finding this would be so arduous but it's a breeze!

[edit] While Example

  <?xml version="1.0" encoding="utf-8" ?>
  <RS232Script>
    <Config ExecuteMethod="onetime" />
    <Connections>
  <Connection Name="Con1" PortName="COM1" BaudRate="9600" DataBits="4" FlowControl="None" Parity="None" StopBits="Two" Timeout="2000" />
    </Connections>
    <Use Connection="Con1" LogFileName="Display1">
      <Command Name="On Screen Display ein">
        <Send Value="[]12 33 24"/>
        <While Name="Busy" ReturnValue="[2] 64 93[3]" MaxTries="10"/>
      </Command>
    </Use>
  </RS232Script>
Personal tools