Repository navigation
User JSON TimeTextIndicator
roosit edited this page May 15, 2026
·
4 revisions
Back to list | Indicator page | Russian
This page describes the JSON template for the timeText indicator for manual .vttp editing.
{
"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"}}
}
}
}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. |
Aligns the text.
{
"textAlign": {"value":0}
}| Field | Values | What it does |
|---|---|---|
| value or nested fields | depends on the setting type | Stores the setting value. |
Selects the time zone.
{
"timeZone": {"value":""}
}| Field | Values | What it does |
|---|---|---|
| value or nested fields | depends on the setting type | Stores the setting value. |
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. |
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. |
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. |