Skip to content

User JSON

roosit edited this page Nov 15, 2026 · 5 revisions

plugin-official indicator JSON templates

Home | Indicators | Русский

Each page contains the full indicator template with default values and a separate description of every setting. An empty object {} in a setting means the default value. The format of the .vttp file itself (layers, placement, default values) is described below, after the list of indicators, in the section "Template file format".

Indicator What JSON can configure
Video Video source, adaptive fitting, scaling, border, sound, and volume.
Audio Audio source, waveform window, sound, and volume.
Image Image source, adaptive fitting, scaling, and border.
Slider Slide duration and pause, time mode, appear and leave effects, their duration, and anchor point.
Speedometer Distance source, scale, font, text template, colors, and background.
Distance Text Distance source, fonts, alignment, units of measurement, and text template.
Elevation Chart Slope source, map and elevation scale, chart line, colors, and fill transparency.
Speed Chart Distance source, map and speed scale, line, fill colors, and average speed color.
Slope Text Slope source, font, alignment, units of measurement, and text template.
Slope and Speed Slope and distance sources, font, slope and speed colors, alignment.
Temperature Text Temperature source, font, alignment, units of measurement, and text template.
Heart Text Heart rate source, font, alignment, and text template.
Power Text Power source, font, alignment, and text template.
Balance Text Sensor, font, alignment, and text template.
Gears Text Sensor, font, alignment, and text template.
Device Grade Text Sensor, font, alignment, and text template.
G-force Sensor, units, circle limit, dot direction, trail length, behavior during a pause, peak display, number of digits, font, and colors.
G-force Text Sensor, font, alignment, units, text template, and behavior during a pause.
Accelerometer Text Sensor, font, alignment, units of measurement, and text template.
Gyroscope Text Sensor, font, alignment, and text template.
Orientation Text Sensor, font, alignment, and text template.
Attitude Text Sensor, font, alignment, and text template.
Pedal Efficiency Text Sensor, font, alignment, and text template.
Pedal Smoothness Text Sensor, font, alignment, and text template.
Pedal Dynamics Text Sensor, font, alignment, and text template.
Lap Text Lap data source, font, alignment, and text template.
Speed Text Speed source, font, alignment, units of measurement, and text template.
Cadence Text Cadence source, font, alignment, and text template.
Time Text Reference source, font, alignment, time zone, time and duration formats, text template.
Subtitles Subtitle source, display method, font, highlight, backing, alignment, and level of detail.
Text Text, font, and alignment.
File extension Source file, font, and padding.
Coordinates Text Geolocation source, font, alignment, format, and precision.
Map Geolocation source, zoom, transparency, border, 3D view, rotation, and figures: track, position, boundaries, and labels.
Compass Geolocation source and compass colors.
Rectangle Fill color and transparency, border.
Ellipse Fill color, stroke color and thickness.
Line Line and direction.

Template file format

A template is a text .vttp file in JSON format. You can build it by hand or with the help of an AI assistant, and then apply it to a source in a project.

How to get and apply a file

  • To get a ready file as a sample, set up the layers in the application and choose File → Export → Template....
  • To apply a file, put it in the project folder (.vttp files from nested folders also work), select a source and open Tools → Apply Template.... In the "Applying a template" dialog, choose the required file from the list.

General structure

The top level of the file needs a single key layers — an array of layers. Each layer is an object with two fields:

Field Values What it does
name string Which indicator to create. For official indicators: com.velitask.plagin.official.<indicator name>, for example com.velitask.plagin.official.speedText. The indicator name is given in the name field of the full template on the indicator's page. Note the spelling: plagin, not plugin.
data object The layer settings: placement, indicator setting values, and common parameters.

Layers are drawn in the order they appear in the array: each next layer is laid over the previous ones. In system templates the video comes first, followed by the indicators.

A file exported from the application may contain other service keys; they are not needed for manual assembly.

The data fields

All fields are optional.

Field Values What it does
maket object Placement of the layer in its parent, see below. Without the field the layer is placed automatically (auto).
properties object The indicator settings: the key is the setting name, the value is its JSON. The full templates on the indicator pages are exactly the contents of this field for one layer, not the whole file.
figures array The layer figures. Only the "Map" indicator has them; the format is described on the page Map. Without the field, the map gets the default figures.
layers array Nested layers in the same {name, data} format.
visible {"value": true} or {"value": false} Show the layer. By default the layer is shown.
transparency {"value": 0..100} Layer transparency in percent: 0 opaque, 100 fully transparent. The default is 0.
title string The layer name in the layer list. Without the field the name is not set.

Layer placement: maket

The preset field selects the placement method:

preset What it does Additional fields
auto The indicator itself picks the position and size. Used if maket is not specified. none
fill The layer takes the whole area of its parent. none
proportional The position and size are set as fractions of the parent size. x, y — the position of the top-left corner (default 0); w, h — the width and height (default 1).

The fractions are floating-point numbers: 0.5 means half of the parent width or height. For example, {"preset": "proportional", "x": 0.05, "y": 0.7, "w": 0.3, "h": 0.25} is a block in the bottom-left corner. An unknown preset value is handled as auto.

Default values and what is picked automatically

  • An empty object {} for a setting and a missing key both mean the default value. It is enough to specify only the settings you want to change.
  • Sources and sensors (video, speed, distance, geolocation, etc.) are not specified in a template: they are picked automatically when the template is applied to a source. So leave {} for such settings.
  • If an indicator with the given name is not found (a typo, the plugin is not installed), the layer is silently skipped and the other layers are applied.
  • The allowed value ranges are not checked when JSON is read. Do not go beyond the bounds given on the indicator pages. The exception is the layer transparency: the value is clamped to the range 0..100.
  • If the file is not valid JSON or the structure is broken (for example, data is not an object), the template is not applied.

Example: video and speed

A file of two layers: a video over the whole area and a speed text in the bottom-left corner. The video has all settings at their defaults; the speed text has a font and a text template set.

{
  "layers": [
    {
      "name": "com.velitask.plagin.official.video",
      "data": {
        "maket": { "preset": "fill" },
        "properties": {
          "videoSource": {},
          "border": {}
        }
      }
    },
    {
      "name": "com.velitask.plagin.official.speedText",
      "data": {
        "maket": {
          "preset": "proportional",
          "x": 0.05,
          "y": 0.75,
          "w": 0.3,
          "h": 0.2
        },
        "title": "Speed",
        "properties": {
          "Speed": {},
          "Distance": {},
          "font": {
            "name": "Dialog",
            "style": 1,
            "size": 64,
            "color": { "r": 255, "g": 255, "b": 255, "a": 255 }
          },
          "textTemplate": {
            "template": "{currNum} {currUnit}",
            "vars": {
              "currNum": "%.0f",
              "currUnit": "%s"
            }
          }
        }
      }
    }
  ]
}

For the setting values and their allowed ranges, see the indicator pages: Video, Speed Text.

Clone this wiki locally