Ankündigung

Einklappen
Keine Ankündigung bisher.

autogenerated Dynamic Icons not working in SMARTVisu

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

    autogenerated Dynamic Icons not working in SMARTVisu

    Hello,

    I try to implement dynamic Icons into sv_nav_aside2

    Code:
    haus:[INDENT]wohnen:[/INDENT][INDENT=2]name: Wohnzimmer
    sv_page: room
    sv_img: scene_livingroom.svg
    sv_nav_aside: "{{ basic.float('n1', 'haus.wohnen.temp', '°') }}"
    sv_nav_aside2: " {{ icon.light('icon2', 'haus.wohnen.light.desk.level', 'haus.wohnen.light.desk.level') }}"
    sv_heading_center: "{{ plot.rtr('h1', 'haus.wohnen.temperature', 'haus.wohnen.temperature.setpoint', 'haus.wohnen.temperature.state') }}"[/INDENT]
    I tryed to import icons in root.html from SMARTVisu/base
    {% import "lib.html" as lib %}
    {% import "basic.html" as basic %}
    {% import "device.html" as device %}
    {% import "plot.html" as plot %}

    + {% import "icon.html" as icon %}

    but it is overwritten after each restart.

    What do I wrong at this point?
    Zuletzt geändert von hansenpaul; 18.02.2020, 08:51.

    #2
    Look into the documentation of the visu_smartvisu plugin:
    On the first run the visu plugin creates a copy of the file root.html in the pages/basedirectory of smartVISU. The copied file is called root_master.html.

    On each start of smarthome.py the visu plugin creates a new version of root.html. The new version is made of the contents of root_master.html and the necessary statements are inserted.
    In smartVISU develop version, the importing of icon.html is already integrated in root.html. Now with SV2.8 (?), you should integrate the import statement in root_master.html.

    Generally, changes should not be made in system files like root.html which are subject to changes in the course of future updates.

    Kommentar


      #3
      It works now. But I was close to it !!!

      Thanks Wolfram and "Gruß nach Gerlingen"

      Kommentar

      Lädt...
      X