/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author Martin Gleiß
* @copyright 2012 - 2015
* @license GPL [http://www.gnu.de]
* -----------------------------------------------------------------------------
*/
{% extends "widget_device.html" %}
{% block example %}
The widget displays the UZSU entries as a graph and allows modifications:
- a click onto an existing point opens it's settings dialog
- a click into the graph opens a dialog to add a new entry for the selected time and value
- single entries can be altered by dragging the respective points on the graph
- for sunrise/sunset based entries, the min/max times can be altered by dragging the horizontal dashed lines
- by dragging the sun symbols,interpolation will be simulated with the selected sun times. Settings remain unchanged.
- the interpolation method can be chosen by clicking on the symbols in the upper right area
Combine the widget with device.uzsuicon in order to access all entries for an item.
Example
{% filter trim|escape|nl2br %}{% verbatim %}
{{ device.uzsuicon('', 'uzsuitem', '', 'jquery_clock', 'jquery_clock', 'num') }}
{{ device.uzsugraph('', 'uzsuitem', '', 1, 'num', [0,100,10]) }}
{{ device.uzsugraph('', 'uzsuitem2', 'Boolean', 1, 'bool', ['On:1', 'Off:0'], 'false') }}
{% endverbatim %}{% endfilter %}
>
{{ device.uzsuicon('', 'uzsuitem', '', 'jquery_clock', 'jquery_clock', 'num') }}
{{ device.uzsugraph('', 'uzsuitem', '', 1, 'num', [0,100,10]) }}
{{ device.uzsugraph('', 'uzsuitem2', 'Boolean', 1, 'bool', ['On:1', 'Off:0'], 'false') }}
{% endblock %}