Hi there,
I try to plot my RTR values into top of room page using sv_heading_center.
ruslts in smartVISU
"
Error occurred in twig-template engine! error:
Unexpected character "'".
file: haus.wohnen.html
line: 68
"
If I use
SmarVISU page room page has no errer but.
Can anybody help out there?
I try to plot my RTR values into top of room page using sv_heading_center.
Code:
haus:[INDENT]wohnen:[/INDENT][INDENT=2]name: Wohnzimmer
sv_page: room
sv_img: scene_livingroom.svg
sv_nav_aside: "{{ basic.float('item.name', 'haus.wohnen.temp', '°') }}"
#sv_heading_center: "{{ basic.float('item.name', 'haus.wohnen.temp', '°') }} {{ plot.rtr('item-plot', 'item', 'item.setpoint', 'item.state') }} {{ basic.float('item.name', 'haus.wohnen.temp', '°') }}"
#sv_heading_center: "{{ plot.rtr('c1, 'haus.wohnen.temperature', 'haus.wohnen.temperature.setpoint', 'haus.wohnen.temperature.state') }}"
sv_heading_center: "{{ plot.rtr('c1, 'haus.wohnen.temperature', 'haus.wohnen.temperature.setpoint', 'haus.wohnen.temperature.state') }}"[/INDENT]
....[INDENT=3]temperature:[/INDENT][INDENT=4]name: Temperatur Graph
type: num
knx_dpt: 9
knx_cache: 3/1/3
knx_status: 3/1/3
sqlite: 'yes'
visu_acl: rw
#sv_widget: "{{ device.rtr('item', 'item.name', 'item', 'item.setpoint', 'item.mode', 'item.night', 'item.frost', 'item.state') }}"
sv_widget: "{{ plot.rtr('item-plot', 'item', 'item.setpoint', 'item.state') }}"
setpoint:[/INDENT][INDENT=5]type: num
sqlite: 'yes'
visu_acl: rw
knx_dpt: 9
knx_cache: 3/2/6
knx_send: 3/2/6[/INDENT][INDENT=4]
state:[/INDENT][INDENT=5]type: num
sqlite: 'yes'
visu_acl: rw
knx_dpt: 5001
knx_cache: 1/1/6
knx_send: 1/1/6[/INDENT]
"
Error occurred in twig-template engine! error:
Unexpected character "'".
file: haus.wohnen.html
line: 68
"
HTML-Code:
/**
* -----------------------------------------------------------------------------
* @package smartVISU
* @author Martin Gleiß
* @copyright 2012
* @license GPL [http://www.gnu.de]
* -----------------------------------------------------------------------------
*/
{% extends "rooms.html" %}
{% block content %}
<h1><img class="icon" src='{{ icon0 }}scene_livingroom.svg' />Wohnzimmer</h1>
<div class="preblock">
<table width="100%">
<tr>
<td align="left">
</td>
<td align="center">
{{ plot.rtr('c1, 'haus.wohnen.temperature', 'haus.wohnen.temperature.setpoint', 'haus.wohnen.temperature.state') }}
</td>
<td align="right">
</td>
</tr>
</table>
</div>
<div class="block">
<div class="set-2" data-role="collapsible-set" data-theme="c" data-content-theme="a" data-mini="true">
<div data-role="collapsible" data-collapsed="false">
<h3>Light All</h3>
{{ device.dimmer('ds1', 'Gang', 'haus.wohnen.light.desk.state', 'haus.wohnen.light.desk.level')}} <br> {{ device.dimmer('ds2', 'CouchTisch', 'haus.wohnen.light.couch.state', 'haus.wohnen.light.couch.level') }} <br> {{ device.dimmer('ds3', 'EssTisch', 'haus.wohne$
</div>
</div>
</div>
<div class="block">
<div class="set-2" data-role="collapsible-set" data-theme="c" data-content-theme="a" data-mini="true">
<div data-role="collapsible" data-collapsed="false">
<h3>Shutter</h3>
<br> {{ device.shutter ('haus.wohnen.blind', 'Shutter', 'haus.wohnen.blind.move', '', 'haus.wohnen.blind.pos') }} <br><br>
</div>
</div>
</div>
<div class="block">
<div class="set-2" data-role="collapsible-set" data-theme="c" data-content-theme="a" data-mini="true">
<div data-role="collapsible" data-collapsed="false">
<h3>Temperatur</h3>
{{ device.rtr('haus.wohnen.temp', 'Temperatur', 'haus.wohnen.temp', 'haus.wohnen.temp.setpoint', 'haus.wohnen.temp.mode', 'haus.wohnen.temp.night', 'haus.wohnen.temp.frost', 'haus.wohnen.temp.state') }}
</div>
</div>
</div>
<div class="block">
<div class="set-2" data-role="collapsible-set" data-theme="c" data-content-theme="a" data-mini="true">
<div data-role="collapsible" data-collapsed="false">
<h3>Temperatur Graph</h3>
{{ plot.rtr('haus.wohnen.temperature-plot', 'haus.wohnen.temperature', 'haus.wohnen.temperature.setpoint', 'haus.wohnen.temperature.state') }}
</div>
</div>
</div>
{% endblock %}
If I use
Code:
sv_heading_center: "{{ basic.float('f1', 'haus.wohnen.temperature', '°') }} {{ plot.rtr('c2', 'haus.wohnen.temperature', 'haus.wohnen.temperature.setpoint', 'haus.wohnen.temperature.state') }} {{ basic.float('f2', 'haus.wohnen.temperature', '°') }}"
- basic.float is working
- plot.rtr is not shown
- basic.float is working
- plot.rtr is not shown
- basic.float is working
Can anybody help out there?


Kommentar