The Formula feature enables users to modify the visualization of data in specific widgets. Located inside the configuration tab of most widgets, a Formula can be applied to all fields of a stored register, including variable, value, unit, group, location, and metadata.
The system receives input data from a variable in your Device, applies a formula to generate a temporary output value, and displays that output in the widget. This output is only for visualization and is not saved as a variable in device data storage.
Example flow:
Example formula (text):
$value$ * 2 + 5
The Formula configuration is available inside most widget configuration panels. It produces a temporary, visual-only value and does not alter the stored device data.

Typical elements in the Formula panel include:
Example formula (temperature conversion):
($VALUES$ - 273.15) * 9/5 + 32
When configuring a formula you can choose between two source types:
$value$ * 2 + 5value field (and optionally a unit).
Example JSON for a temperature conversion variable:
{
"variable": "equation_f_c",
"unit": "°C",
"value": "($value$-32)*5/9"
}
The following operators are available in Formula expressions:
$value$ + 1000$value$ / 2.14$value$ inch to cm$value$==1 ? $VALUE$ ON : OFF$VALUE$ >> 1sqrt ($value$)More operators can be found on Math.js.
The Date() function formats date and time values dynamically.
Syntax
Date(source, format_string)
DATE_FORMAT, TIME_FORMAT).Special variables are replaced at runtime based on the current TagoRUN user’s settings.
Date($METADATA.shipped_at$, "$DATE_FORMAT$ $TIME_FORMAT$")Date($VALUE$, "$DATE_FORMAT$ HH:mm:ss")Date($VALUE$, "YYYY-MM-DDTHH:mm:ss[Z]")Date($TIME$, "HH:mm")To visualize a temperature in Fahrenheit when the device stores Celsius:
$VALUE$ celsius to fahrenheit
or
($VALUE$ × 9/5) + 32
More options are available in the dropdown list of the Formula field.
After converting a value, you can set the unit that appears next to it. Use the Unit Origin field to define where the displayed unit comes from. Learn more about Display Units.
The formula does not adjust the widget’s data range. The Min and Max values are still controlled by the settings in the Data Range tab.
Dynamic Formulas allow formulas to adapt based on user preferences or browser settings. To use them:
Dynamic Formulas are especially useful for letting users choose units (Celsius, Fahrenheit, Kelvin) or other display options that automatically adjust across dashboards.