Skip to content

User JSON GForceIndicator

roosit edited this page Nov 15, 2026 · 1 revision

G-force JSON

Back to list | Indicator page | Русский

Purpose

This page describes the JSON template of the gforce indicator for manual editing of .vttp: which fields exist and which values are allowed.

Full Template

{
  "name": "com.velitask.plagin.official.gforce",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "GForce": {},
      "measurement": {"system":{"value":0},"format":{"value":0},"acceleration":{"value":0}},
      "scale": {"value":1},
      "direction": {"value":0},
      "trailSec": {"value":2},
      "pause": {"value":0},
      "showPeak": {"value":false},
      "fractionDigits": {"value":2},
      "background": {"color":{"r":0,"g":0,"b":0,"a":255},"transparency":{}},
      "rings": {"color":{"r":167,"g":171,"b":179,"a":255},"transparency":{}},
      "point": {"r":74,"g":144,"b":226,"a":255},
      "trail": {"r":74,"g":144,"b":226,"a":255},
      "peak": {"r":245,"g":194,"b":66,"a":255},
      "font": {"name":"Dialog","style":0,"size":30,"color":{"r":230,"g":231,"b":234,"a":255}}
    }
  }
}

Settings

GForce

Chooses the G-force sensor the values are taken from.

{
  "GForce": {}
}
Field Values What it does
sourceId {"value": number} The source identifier in the project. Absent in a template.
sensorId {"value": number} The sensor identifier in the source. Absent in a template.

In a template, leave an empty object {}: the source and sensor will be picked when the indicator is added to a project.

measurement

The measurement system, the unit caption format and the acceleration unit ("Units").

{
  "measurement": {"system":{"value":0},"format":{"value":0},"acceleration":{"value":0}}
}
Field Values What it does
system.value 0..4 The measurement system.
format.value 0..3 The unit caption format.
acceleration.value 0, 1 The acceleration unit.
system.value System
0 From global settings (default)
1 Metric
2 Imperial
3 Nautical
4 Mixed
format.value Caption format
0 Full
1 Normal
2 Short
3 Symbol
acceleration.value Unit
0 g
1 m/s²

With system 0 the acceleration field is not used: the unit is taken from the general application settings. If you set system 1-3, keep acceleration equal to 0 (g): with another value the system switches to "Mixed".

scale

The circle limit: the G-force on the outer ring ("Circle limit").

{
  "scale": {"value":1}
}
Field Values What it does
value 0, 1, 2, 3 The index of the selected limit.
value Circle limit
0 1 g
1 1.5 g (default)
2 2 g
3 3 g

direction

Defines which way the point moves ("Point direction").

{
  "direction": {"value":0}
}
Field Values What it does
value 0, 1 The mode index.
value Mode
0 Felt force (default)
1 Acceleration

trailSec

The length of the trail behind the point in seconds ("Trail length, s").

{
  "trailSec": {"value":2}
}
Field Values What it does
value integer 0..10; 2 by default How many of the last seconds the trail shows. 0 turns the trail off.

pause

What to show when the frame falls into a recording pause ("During a pause").

{
  "pause": {"value":0}
}
Field Values What it does
value 0, 1 The option index.
value Option
0 Center and dash (default): the point is in the center, "—" instead of the values.
1 Last value: the point and the captions follow the last data before the pause.

showPeak

Turns the peak marker on ("Show peak").

{
  "showPeak": {"value":false}
}
Field Values What it does
value true, false; false by default Whether to draw a diamond at the point of the largest G-force since the start of the recording.

fractionDigits

The number of digits after the decimal point in the captions ("Digits after the decimal point").

{
  "fractionDigits": {"value":2}
}
Field Values What it does
value integer 0..3; 2 by default Digits after the decimal point in the total value and the components.

background

The color of the circle and its transparency ("Background color").

{
  "background": {"color":{"r":0,"g":0,"b":0,"a":255},"transparency":{}}
}
Field Values What it does
color.r 0..255 Red channel.
color.g 0..255 Green channel.
color.b 0..255 Blue channel.
color.a 0..255 Transparency of the color itself: 0 is fully transparent, 255 is opaque.
transparency.value 0..100 The background transparency in percent: 0 is opaque, 100 is fully transparent. The default is 65. An empty object {} means the default value 65; to set your own, use {"value": 65}.

rings

The color of the rings, axes and captions and the transparency of the lines ("Rings and labels color").

{
  "rings": {"color":{"r":167,"g":171,"b":179,"a":255},"transparency":{}}
}
Field Values What it does
color.r 0..255 Red channel.
color.g 0..255 Green channel.
color.b 0..255 Blue channel.
color.a 0..255 Transparency of the color itself: 0 is fully transparent, 255 is opaque.
transparency.value 0..100 The transparency of the rings and axes in percent: 0 is opaque, 100 is fully transparent. The default is 55. An empty object {} means the default value 55; to set your own, use {"value": 55}. The captions are drawn with the color without this transparency.

point

The color of the current G-force point ("Point color").

{
  "point": {"r":74,"g":144,"b":226,"a":255}
}
Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Transparency: 0 is fully transparent, 255 is opaque.

trail

The color of the trail behind the point ("Trail color"). The older parts of the trail become more transparent by themselves.

{
  "trail": {"r":74,"g":144,"b":226,"a":255}
}
Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Transparency: 0 is fully transparent, 255 is opaque.

peak

The color of the peak marker ("Peak color").

{
  "peak": {"r":245,"g":194,"b":66,"a":255}
}
Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Transparency: 0 is fully transparent, 255 is opaque.

font

The font, size and color of the captions ("Font").

{
  "font": {"name":"Dialog","style":0,"size":30,"color":{"r":230,"g":231,"b":234,"a":255}}
}
Field Values What it does
name string, the font name; Dialog by default The font family.
style 0, 1, 2 Style: 0 plain, 1 bold, 2 italic.
size integer 1..999; 30 by default The font size: this is how the large number at the bottom is output; the ring and axis captions are smaller, the components at the bottom are about 43% of the size.
color object r, g, b, a The color of the large number at the bottom, see below.

color

Field Values What it does
r 0..255 Red channel.
g 0..255 Green channel.
b 0..255 Blue channel.
a 0..255 Transparency: 0 is fully transparent, 255 is opaque.

Clone this wiki locally