Repository navigation
User JSON TemperatureTextIndicator
roosit edited this page May 22, 2026
·
2 revisions
Back to list | Indicator page | Russian
This page describes the JSON template for the temperatureText indicator for manual .vttp editing.
{
"name": "com.velitask.plagin.official.temperatureText",
"data": {
"maket": { "preset": "auto" },
"properties": {
"Temperature": {},
"font": {"name":"Dialog","style":{"value":0},"size":{"value":48},"color":{"r":255,"g":255,"b":255,"a":255}},
"textAlign": {"value":0},
"measurement": {"system":{"value":0},"format":{"value":1},"temperature":{"value":0}},
"textTemplate": {"template":"{currNum} {currUnit}","vars":{"currNum":"%.1f","currUnit":"%s","celsius":"%.1f"}}
}
}
}Selects the temperature sensor.
{
"Temperature": {}
}| 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. |
Changes the 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 |
|---|---|---|
| name | font name | Selects the font family. |
| style.value | number | Stores font style. |
| size.value | number | Font size. |
| color |
r/g/b/a 0..255 |
Text color and opacity. |
Aligns text inside the layer.
{
"textAlign": {"value":0}
}| Field | Values | What it does |
|---|---|---|
| value or nested fields | depends on the setting type | Stores alignment value. |
Selects measurement system, temperature scale, and unit label format.
{
"measurement": {"system":{"value":0},"format":{"value":1},"temperature":{"value":0}}
}| Field | Values | What it does |
|---|---|---|
| system.value |
0 inherit, 1 metric, 2 imperial, 3 nautical, 4 mixed |
Selects the common measurement system or global setting inheritance. |
| format.value |
0 full, 1 normal, 2 short, 3 symbol |
Selects unit label format. |
| temperature.value |
0 Celsius, 1 Fahrenheit, 2 Kelvin |
Selects the temperature scale. |
When system.value = 0, the indicator inherits global unit settings, and the concrete scale may be ignored by the runtime.
Defines current temperature text. The template can show converted value, its unit, and raw Celsius temperature.
{
"textTemplate": {"template":"{currNum} {currUnit}","vars":{"currNum":"%.1f","currUnit":"%s","celsius":"%.1f"}}
}| Field | Values | What it does |
|---|---|---|
| template | string with variables in curly braces | Final text. |
| vars | object with variable formats | Formats variable values. |
| Variable | Default format | What it shows |
|---|---|---|
{currNum} |
%.1f |
Current temperature in the selected scale. |
{currUnit} |
%s |
Measurement unit for {currNum}. |
{celsius} |
%.1f |
Current temperature in Celsius, regardless of the selected scale. |