Basic-Widgets

basic.checkbox basic.color basic.flip basic.glue basic.icon basic.input basic.listview basic.offset basic.print basic.select basic.shifter basic.shutter basic.slider basic.stateswitch basic.symbol basic.tank basic.trigger basic.button basic.dual basic.colordisc basic.float basic.formula basic.rgb basic.multistate basic.switch basic.text basic.value


basic.formula

Deprecatedas of version 2.9, use 'basic.print' instead.

calculate values and display

Parameters
{{ basic.formula(id, item, unit, formula, threshold, color) }}
id
unique id for this widget (optional)
item
one or more item(s). More items in array-form: [ item1 , item2 ]
unit
unit for displaying, if that unit is found in the language-file that formating is been used (optional)
formula
formula to use: SUM(VAR), AVG(VAR), SUB(VAR), VAR1 + VAR2, ... "VAR" is replaced with all item(s), "VAR1", "VAR2"... is replaced with the appropriate item of the list (optional, default: VAR)
threshold
array of thresholds; the color according to greatest reached threshold is applied. Use '' to define base color. (optional)
color
array of colors; 'icon1' or e. g. '#f00' for red (optional)
This widget is deprecated and may be removed in later versions.
Please look into basic.print for replacement and further information.

Author:Martin Gleiss and others
inspired by Raik Alber

Widgets

Design

Misc