Ankündigung

Einklappen

Serverwartung 21.2.



Am 21.2. im Laufe des späten Abends wird eine Serverwartung durchgeführt. Das Forum ist dadurch für gut zwei Stunden nicht erreichbar.
Es wird eine Wartungsseite geschaltet.

Mehr anzeigen
Weniger anzeigen

plot.rtr not working in sv_heading_center

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    plot.rtr not working in sv_heading_center

    Hi 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]
    ruslts in smartVISU

    "
    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', '°') }}"
    SmarVISU page room page has no errer but.
    - basic.float is working
    - plot.rtr is not shown
    - basic.float is working





    Can anybody help out there?
    Zuletzt geändert von hansenpaul; 04.02.2020, 14:53.

    #2
    Just a quick guess: try to replace "item-plot" with "c2" or so in case the dash does cause trouble ...

    Kommentar


      #3
      Zitat von bmx Beitrag anzeigen
      Just a quick guess: try to replace "item-plot" with "c2" or so in case the dash does cause trouble ...
      yes you are right tanks a lot
      Zuletzt geändert von hansenpaul; 04.02.2020, 14:51.

      Kommentar

      Lädt...
      X