Repository navigation
User JSON SpeedometerIndicator
roosit edited this page May 15, 2026
·
4 revisions
Back to list | Indicator page | Russian
This page describes the JSON template for the speedometer indicator for manual .vttp editing.
{
"name": "com.velitask.plagin.official.speedometer",
"data": {
"maket": { "preset": "auto" },
"properties": {
"Distance": {},
"speedScale": {"value":2},
"font": {"name":"Dialog","style":{"value":0},"size":{"value":120},"color":{"r":255,"g":255,"b":255,"a":255}},
"textTemplate": {"template":"{curr}","vars":{"curr":"%.0f"}},
"scaleColor": {"r":255,"g":255,"b":255,"a":255},
"arrowFillColor": {"r":204,"g":88,"b":84,"a":255},
"arrowStrokeColor": {"r":255,"g":255,"b":255,"a":255},
"tailColor": {"r":103,"g":136,"b":166,"a":178},
"background": {"color":{"r":204,"g":204,"b":204,"a":255},"transparency":{"value":80}}
}
}
}Reads speed from the distance sensor.
{
"Distance": {}
}| Field | Values | What it does |
|---|---|---|
| sourceId | source id in the project | In a real Mixel, selects the data source. It may be omitted in a template. |
| sensorId | sensor id in the source | In a real Mixel, selects the concrete sensor. It may be omitted in a template. |
Selects the gauge maximum: 40, 80, 160, or 320.
{
"speedScale": {"value":2}
}| Field | Values | What it does |
|---|---|---|
| value | number from the setting range | Setting value. |
Changes the size, style, and color of the speed number.
{
"font": {"name":"Dialog","style":{"value":0},"size":{"value":120},"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. |
Controls the number format in the center of the gauge.
{
"textTemplate": {"template":"{curr}","vars":{"curr":"%.0f"}}
}| Field | Values | What it does |
|---|---|---|
| template | string with variables in curly braces | Final text. |
| vars | object with variable formats | Formats variable values. |
Changes the color of scale ticks and numbers.
{
"scaleColor": {"r":255,"g":255,"b":255,"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 | Alpha: 0 is transparent, 255 is opaque. |
Changes the needle fill color.
{
"arrowFillColor": {"r":204,"g":88,"b":84,"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 | Alpha: 0 is transparent, 255 is opaque. |
Changes the needle outline color.
{
"arrowStrokeColor": {"r":255,"g":255,"b":255,"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 | Alpha: 0 is transparent, 255 is opaque. |
Changes the color of the arc behind the needle.
{
"tailColor": {"r":103,"g":136,"b":166,"a":178}
}| Field | Values | What it does |
|---|---|---|
| r | 0..255 | Red channel. |
| g | 0..255 | Green channel. |
| b | 0..255 | Blue channel. |
| a | 0..255 | Alpha: 0 is transparent, 255 is opaque. |
Changes the color and transparency of the round background.
{
"background": {"color":{"r":204,"g":204,"b":204,"a":255},"transparency":{"value":80}}
}| Field | Values | What it does |
|---|---|---|
| r | 0..255 | Red channel. |
| g | 0..255 | Green channel. |
| b | 0..255 | Blue channel. |
| a | 0..255 | Alpha: 0 is transparent, 255 is opaque. |