ComputerStateProfile Configuration

Format

{
  "StateType":  [<enum>],
  "Ports": [<PortIdentifier>],
  "Speed": <byte>,
  "EffectType": <string>,
  "Color": <LedColorProvider>
}

Variables

StateType

Determines computer state that enables this profile.

Allowed values: "Boot", "Shutdown", "Suspend"

Important: If you want to update or add more profiles with Boot type, you need to modify TTController.Service.exe.Config file and remove <add key="boot-profile-saved" value="true" /> line if its present or change its value to false and restart the service. This is done to save Boot profiles only once, otherwise the service will initialize slower and they will cause leds to briefly flash on boot.

Required: Yes
Default value:

"Shutdown"

Example:

"StateType": "Boot"

Ports

List of Port Identifiers modified by this config.

Required: Yes
Default value:

[]

Example:

"Ports": [
  [9802, 9101, 1],
  [9802, 9101, 3]
]

Speed

Speed to set the devices to when the profile is enabled.

Required: No
Default value:

Example:

"Speed": 35

EffectType

Effect type to set the devices to when the profile is enabled.

Note: Supported effect types are different for each controller. You can use Main Menu -> Debug -> Controllers menu to find what types are supported.

Required: No
Default value:

"PerLed"

Example:

"EffectType": "Full"

Color

A Led Color Provider object.

Required: No
Default value:

Example:

{
  "Gradient": [
    [0, [255, 0, 0]],
    [0.5, [0, 255, 0]],
    [1.0 [255, 0, 0]]
  ]
}

Examples

{
  "StateType": "Shutdown",
  "Ports": [
    [9802, 8101, 1]
  ],
  "Speed": 35,
  "Color": {
    "Full": [255, 0, 0]
  }
}
{
  "StateType": "Suspend",
  "Ports": [
    [9802, 8101, 1],
    [9802, 8101, 3]
  ],
  "Color": {
    "Gradient": [
      [0, [0, 0, 0]],
      [0.5, [255, 0, 0]],
      [1, [0, 0, 0]]
    ]
  }
}