Skip to content

User JSON TimeTextIndicator

roosit edited this page May 15, 2026 · 4 revisions

Time Text JSON

Back to list | Indicator page | Russian

Purpose

This page describes the JSON template for the timeText indicator for manual .vttp editing.

Full Template

{
  "name": "com.velitask.plagin.official.timeText",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "font": {"name":"Dialog","style":{"value":0},"size":{"value":48},"color":{"r":255,"g":255,"b":255,"a":255}},
      "textAlign": {"value":0},
      "timeZone": {"value":""},
      "timeFormat": {"value":"dd.MM.yyyy HH:mm:ss"},
      "durationFormat": {"value":"HH:mm:ss"},
      "textTemplate": {"template":"Time {curr} / passed {passed}","vars":{"curr":"%s","tzid":"%s","passed":"%s","left":"%s"}}
    }
  }
}

Settings

font

Changes text font and color.

{
  "font": {"name":"Dialog","style":{"value":0},"size":{"value":48},"color":{"r":255,"g":255,"b":255,"a":255}}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

textAlign

Aligns the text.

{
  "textAlign": {"value":0}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

timeZone

Selects the time zone.

{
  "timeZone": {"value":""}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

timeFormat

Defines the date/time format.

{
  "timeFormat": {"value":"dd.MM.yyyy HH:mm:ss"}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

durationFormat

Defines elapsed and remaining time format.

{
  "durationFormat": {"value":"HH:mm:ss"}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

textTemplate

Defines the final string with time variables.

{
  "textTemplate": {"template":"Time {curr} / passed {passed}","vars":{"curr":"%s","tzid":"%s","passed":"%s","left":"%s"}}
}
Field Values What it does
template string with variables in curly braces Final text.
vars object with variable formats Formats variable values.

Clone this wiki locally