/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ /** * The diagram showing curves of relative humidity and effective temperature superimposed upon rectangular coordinates. The comfort-zones indicate when humans feel good. * * @param unique id for this widget * @param a item for the temperature * @param a item for the humidity */ {% macro comfortchart(id, item_temp, item_humidity) %}
{% endmacro %} /** * A simple widget for plotting charts with multiple y-axis (based on macro period) * * @param unique id for this widget * @param series of item/s. More item/s in array form: [ item1 , item2 ] * @param the mode: 'avg', 'sum', 'min', 'max' * @param the minimum time (x-axis): '1h', '2h'... (duration-format) * @param the maximum time (x-axis): '', '1h', '2h'... (duration-format, default: now) * @param the minimum for each y-axis (optional) use [ min_y-axis1, min_y-axis2, ...] * @param the maximum for each y-axis (optional) use [ max_y-axis1, max_y-axis2, ...] * @param the number of points in the period (optional) * @param label/s for each series (optional) * @param color/s for each series e. g. '#f00' for red (optional, default: sutiable for design) * @param exposure is type/s for each series: 'line', 'stair', 'spline', 'area', 'areaspline', 'column' (optional, default 'line') * @param title/s for the x-axis and y-axis (optional) * @param minimum time while zooming in sec (optional, duration-format) * @param assignment of the series to the axis (optional) * @param y-axis setup for left '0' and right '1' hand (optional) * @param y-axis color might be applied (optional) * * @see misc/fundamentals#Array-Form * @see misc/fundamentals#Duration-Format */ {% macro multiaxis( id, item, mode, tmin, tmax, ymin, ymax, count, label, color, exposure, axis, zoom, assign, opposite, ycolor) %} {% set tmax = (tmax|lower=='0h' or tmax==0)? 'now' : tmax %}
{% endmacro %} /** * A simple widget for plotting charts * * @param unique id for this widget * @param series of item/s. More item/s in array form: [ item1 , item2 ] * @param the mode: 'avg', 'sum', 'min', 'max' * @param the minimum time (x-axis): '1h', '2h'... (duration-format) * @param the maximum time (x-axis): '', '1h', '2h'... (duration-format, default: now) * @param the minimum y-axis (optional) * @param the maximum y-axis (optional) * @param the number of points in the period * @param label/s for each series (optional) * @param color/s for each series e. g. '#f00' for red (optional, default: sutiable for design) * @param type/s for each series: 'line', 'stair', 'spline', 'area', 'areaspline', 'column' (optional, default 'line') * @param title/s for the x-axis and y-axis * @param minimum time while zooming in sec (optional, duration-format) * @param number of samples (points) (optional, default 100) * * @see misc/fundamentals#Array-Form * @see misc/fundamentals#Duration-Format */ {% macro period(id, item, mode, tmin, tmax, ymin, ymax, count, label, color, exposure, axis, zoom) %} {% set tmax = (tmax|lower=='0h' or tmax==0)? 'now' : tmax %}
{% endmacro %} /** * A temperature-chart for use with an rtr. Plots actual and set temperature. If the state is given it will be shown as pie. * * @param unique id for this widget * @param series of a item for the actual-temperature * @param series of a item for the set-temperature * @param series of a item for the state of the actor. It is shown as percental value within the pie. (> 0 is considered as 'on') * @param number of samples (points) (optional, default 100) */ {% macro rtr(id, item_actual, item_set, item_state, count) %}
{% endmacro %} /** * A complete house temperature plot. The rose shows all rooms with there actual and set temperature in one diagramm. * * @param unique id for this widget * @param a item for the actual-temperature. More item/s in array form: [ item1 , item2 ] * @param a item for the set-temperature. More item/s in array form: [ item1 , item2 ] * @param label/s for each axis * * @see misc/fundamentals#Array-Form */ {% macro temprose(id, item_actual, item_set, axis) %} {% if once('highcharts-more') %} {% endif %}
{% endmacro %} /** * A simple widget for plotting item min/max/avg chart * * @param unique id for this widget * @param the item. Only one item supported. * @param the minimum time (x-axis): '1h', '2h'... (duration-format) * @param the maximum time (x-axis): '', '1h', '2h'... (duration-format, default: now) * @param the minimum y-axis (optional) * @param the maximum y-axis (optional) * @param a unit, tries to get the format for that unit from the language-file (optional) * @param title/s for the x-axis and y-axis (optional) * @param count number of data points to load, default 100 * * @see misc/fundamentals#Duration-Format */ {% macro minmaxavg(id, item, tmin, tmax, ymin, ymax, unit, axis, count) %} {% set tmax = (tmax|lower=='0h' or tmax==0)? 'now' : tmax %} {% if once('highcharts-more') %} {% endif %}
{% endmacro %}