/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_basic.html" %} {% block example %}
Example
{% filter trim|escape|nl2br %}{% verbatim %} {{ basic.formula('formula1', ['bath_value'], 'V') }}
{{ basic.formula('formula2', ['bath_p1', 'bath_p2', 'bath_p3'], 'W', 'SUM( VAR )') }}
{{ basic.formula('formula3', ['bath_p1', 'bath_p2', 'bath_p3'], 'W', 'AVG( VAR ) * 3 / 100') }}
{{ basic.formula('formula4', 'bath_value', 'Mwh') }}
{% endverbatim %}{% endfilter %}
a voltage: {{ basic.formula('formula1', ['bath_value'], 'V') }}
actual power: {{ basic.formula('formula2', ['bath_p1', 'bath_p2', 'bath_p3'], 'W', 'SUM( VAR )') }}
some calc: {{ basic.formula('formula3', ['bath_p1', 'bath_p2', 'bath_p3'], 'W', 'AVG( VAR ) * 3 / 100') }}
a unknown unit: {{ basic.formula('formula4', 'bath_value', 'Mwh') }}
{% endblock %}