Format

Common Format

{
  "vars": [
	{
      "name": "var name",
      "value": "0",
      "type": "TIMER",
      "modify": "VISIBLE",
      "display": "Fancy name",
      "displayType": "SECONDS"
    }
  ],
  "includes": [
    "file to include"
  ],
  "states": {
	"main": {
      "name": "State Name",
	  "includes": [
        "state to include"
      ],
      "statements": [
        {
          "condition": {
            "var": "_screen_saver",
            "is": "GREATER",
            "value": "900",
          },
          "actions": [
            {
              "type": "REPEAT",
              "value": ""
            }
          ]
        }
      ]
    }
  }
}

vars

This is a array of variable definitions.

name

display

value

type

modify

displayType

This will default to the STANDARD, but used to format how data is presented to the client.

  • STANDARD
    • Treat as a integer
  • SECONDS
    • Convert the integer value into a time display
  • BOOLEAN
    • A TRUE or FALSE value
  • TENTH
    • This will divide the value by 10 and display it with one decimal point.

order

Not required, but a integer used to specify where in the variable list it should appear.  Items with the same order number will be sorted by their name.

includes

states