Ankündigung

Einklappen
Keine Ankündigung bisher.

Call to undefined method __TwigTemplate_......::gettext()

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

    Call to undefined method __TwigTemplate_......::gettext()

    Hi,

    ich habe heute mal wieder zum aktuellen developer aktualisiert. Lief eigentlich alles einwandfrei - nur ein widget läuft plötzlich nicht mehr. Und zwar bekomme ich plötzlich wenn ich die Seite über das Menü öffnen möchte, die Meldung: "Error loading page".

    Im Apache Log habe ich das hier raus gezogen:

    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error:

    Call to undefined method __TwigTemplate_70dc69cc36a803216dce889f4e30e1e7272 dfb0f554923fc54bfb7f610996bce::gettext()
    in /var/www/html/smartVISU-dev/vendor/Twig/src/Environment.php(497) : eval()'d code:1200\n
    Stack trace:\n
    #0 /var/www/html/smartVISU-dev/vendor/Twig/src/Template.php(704): __TwigTemplate_c7b4e20ae5ed4a9f316da69e37f3ba2dbbb 477f44d0fb7b83f17eea62cde2abe->getheizungsanlage('technik.heizung...')\n
    #1 /var/www/html/smartVISU-dev/vendor/Twig/src/Environment.php(497) : eval()'d code(56): Twig\\Template->getAttribute(Object(__TwigTemplate_c7b4e20ae5ed 4a 9f316da69e37f3ba2dbbb477f44d0fb7b83f17eea62cde2abe ), 'heizungsanlage', Array, 'method')\n
    #2 /var/www/html/smartVISU-dev/vendor/Twig/src/Template.php(216): __TwigTemplate_bca6e84734fb1afcae1f541d33edfe438fd 49a1b02da9fd1cc69fdea69980a78->block_content(Array, Array)\n
    #3 /var/www/html/smartVISU-dev/vendor/Twig/src/Environment.php(497) : eval()'d code(79): Twig\\Template->displayBlock('content', Array, Array)\n
    #4 /var/ww...\n
    ', referer: http://zentrale/smartVISU-dev/index.php?page=eg.flur
    In dem Stacktrace ist ja das Widget heizungsanlage genannt, was wie folgt aussieht (sry ist etwas größer):

    Code:
    {% macro heizungsanlage(id) %}
    {% import "basic.html" as basic %}
    {% set uid = uid(page, id) %}
    
        <div id="heizungsanlage" style="display: flex; min-height: 12em;">
            <svg xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" id="svg376" version="1.1" viewBox="0 0 117.475 50.8"> <!-- reserveAspectRatio="xMinYMin slice" -->
            <defs id="defs1438">
                <linearGradient id="fireGradient" x1="100%" x2="0%" y1="0%" y2="0%">
                    <stop id="stop1431" offset="0%" stop-color="#f4c708"/>
                    <stop id="stop1433" offset="50%" stop-color="#ff8806"/>
                    <stop id="stop1435" offset="100%" stop-color="#f4c708"/>
                </linearGradient>
            </defs>
            <pattern id="firePattern" width="100%" height="100%" x="0" y="0">
                <rect id="rect1440" width="200%" height="1000%" x="-150%" y="0" fill="url(#fireGradient)" transform="rotate(-65)">
                    <animate attributeName="x" attributeType="XML" dur="3s" from="-150%" repeatCount="indefinite" to="50%"/>
                </rect>
                <rect id="rect1442" width="200%" height="1000%" x="-350%" y="0" fill="url(#fireGradient)" transform="rotate(-65)">
                    <animate attributeName="x" attributeType="XML" dur="3s" from="-350%" repeatCount="indefinite" to="-150%"/>
                </rect>
            </pattern>
            <g id="HeizungsAnlagew">
                <g id="WWTempGroup" transform="matrix(.99988 0 0 .9708 -86.64 -39.665)">
                <text id="WWTemp" x="97.198" y="57.794" style="font-size:2.4000001px;text-anchor:middle;fill:#fff">
                    <tspan id="WWTempText" x="97.198" y="57.794" class="text" data-format="°" data-formula="VAR" data-item="technik.heizung.ha.TempWWist" data-widget="basic.print">--</tspan>
                </text>
                </g>
                <g id="WWSpeicher" transform="translate(-7.635 8.292) scale(.14294)" data-widget="heizung.tempGradient" data-item="technik.heizung.ha.TempWWist">
                    <path id="WW_Windung1" d="m 156.773,259.791 -58.786,-9.996 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 l 58.786,9.996 c 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung2" d="m 156.773,245.829 -58.786,-9.996 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 l 58.786,9.996 c 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung3" d="M 156.773,231.867 97.987,221.87 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 19.595,3.332 39.19,6.665 58.786,9.996 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung4" d="m 156.773,217.905 -58.786,-9.997 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 19.595,3.332 39.19,6.665 58.786,9.996 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung5" d="m 156.773,203.943 -58.786,-9.997 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 19.595,3.332 39.19,6.665 58.786,9.996 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung6" d="m 156.773,189.981 -58.786,-9.997 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 19.595,3.332 39.19,6.665 58.786,9.996 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung7" d="m 156.773,176.019 -58.786,-9.997 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 19.595,3.332 39.19,6.665 58.786,9.996 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung8" d="M 156.773,162.057 97.987,152.06 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 19.595,3.332 39.19,6.665 58.786,9.996 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung9" d="m 156.773,148.095 -58.786,-9.997 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 19.595,3.332 39.19,6.665 58.786,9.996 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung10" d="m 156.773,134.133 -58.786,-9.997 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 19.595,3.332 39.19,6.665 58.786,9.996 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung11" d="m 156.773,120.171 -58.786,-9.997 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 19.595,3.332 39.19,6.665 58.786,9.996 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Windung12" d="M 156.773,106.209 97.987,96.212 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 19.595,3.332 39.19,6.665 58.786,9.996 6.306,1.072 9.006,-8.564 2.658,-9.643 z" style="fill:#fff"/>
                    <path id="WW_Shape" d="m 177.084,281.383 c 0,2.918 -12.255,5.284 -27.372,5.284 h -46.758 c -15.116,0 -27.372,-2.366 -27.372,-5.284 V 79.898 c 0,-2.918 12.256,-5.285 27.372,-5.285 h 46.758 c 15.116,0 27.372,2.366 27.372,5.285 z" style="fill:none;stroke:#fff;stroke-width:9.99699974"/>
                </g>
                <g id="WWRohre" class="pipe" data-item="technik.heizung.ha.PumpeStatusSp" data-widget="heizung.pumpAni" style="fill:none;stroke:#fff;stroke-width:.80000001;stroke-linejoin:round" transform="translate(-8.916 -238.964)">
                <path id="WW-R-RL-1-1" d="M 64.477,281 H 35 v -19 h -8.208"/>
                <path id="WW-R-VL-1-2" d="M 26.792,285 H 46.36"/>
                <path id="WW-R-VL-1-1" d="M 52.27,285 H 64.477"/>
                </g>
                <g id="WWPumpe" transform="translate(1.138 -246.24)">
                <g id="g1235" style="fill:#fff" transform="matrix(0 -.03181 .03181 0 33.648 299.2)">
                    <path id="path1229" d="m 242.953,97.48 a 7.546,7.546 0 0 1 -7.547,7.546 H 200.19 A 7.546,7.546 0 0 1 192.643,97.48 V 81.13 a 7.547,7.547 0 0 1 7.547,-7.546 h 35.216 a 7.547,7.547 0 0 1 7.547,7.546 z"/>
                    <path id="path1231" d="m 242.953,258.47 a 7.546,7.546 0 0 1 -7.547,7.546 H 200.19 a 7.546,7.546 0 0 1 -7.547,-7.546 v -16.351 a 7.547,7.547 0 0 1 7.547,-7.546 h 35.216 a 7.547,7.547 0 0 1 7.547,7.546 z"/>
                    <path id="path1233" d="m 248.816,270.464 c 0,4.548 -2.477,8.235 -5.529,8.235 h -51.298 c -3.054,0 -5.529,-3.688 -5.529,-8.235 v -2.288 c 0,-4.548 2.476,-8.234 5.529,-8.234 h 51.298 c 3.053,0 5.529,3.687 5.529,8.234 z"/>
                </g>
                <path id="path1237" d="m 41.219766,292.52187 v 3.53721 a 0.2430284,0.2430284 0 0 1 -0.242996,0.24303 h -3.8882 a 0.2430284,0.2430284 0 0 1 -0.243029,-0.24303 v -3.53721" style="fill:none;stroke:#fff;stroke-width:.31810001"/>
                <g id="g1247" style="fill:#fff" transform="matrix(0 -.03181 .03181 0 33.648 299.2)">
                    <path id="path1239" d="m 72.247,100.311 v 137.721 c 0,6.448 10,6.448 10,0 v -137.259 -0.462 c 0,-6.449 -10,-6.449 -10,0 z"/>
                    <path id="path1241" d="m 178.167,165.334 c 0.317,-15.703 12.631,-28.016 28.333,-28.333 6.439,-0.13 6.452,-10.13 0,-10 -21.189,0.428 -37.905,17.144 -38.333,38.333 -0.131,6.452 9.87,6.44 10,0 z"/>
                    <path id="path1243" d="m 199.631,120.869 14.667,14.667 c 4.563,4.563 11.635,-2.507 7.07,-7.071 l -14.667,-14.667 c -4.563,-4.564 -11.635,2.507 -7.07,7.071 z"/>
                    <path id="path1245" d="m 206.701,150.536 14.667,-14.667 c 4.564,-4.564 -2.507,-11.635 -7.07,-7.071 l -14.667,14.667 c -4.565,4.564 2.507,11.635 7.07,7.071 z"/>
                </g>
                <circle id="circle1227" cx="-292.267" cy="39.024" r="2.205" style="fill:none;stroke:#fff;stroke-width:.31810001" transform="rotate(-90)"/>
                </g>
                <g id="HK2MischerZustandGroup" transform="matrix(1.10179 0 0 1.10179 60.652 -229.752)">
                <text id="HK2MischerZustand" x="31.838" y="243.601" style="font-size:2.4000001px;fill:#fff">
                    <tspan id="HK2MischerText" x="31.838" y="243.601" data-format="%" data-formula="VAR" data-item="technik.heizung.ha.MischerM2" data-widget="basic.print">--</tspan>
                </text>
                </g>
                <g id="HK2Mischer" style="fill:none;fill-rule:evenodd;stroke:#fff;stroke-width:.66399997" transform="translate(-69.366 -144.366) scale(.5139)">
                <path id="path7579" d="m 315.95,347.131 -5.67,2.381 v -4.706 l 5.67,2.325"/>
                <path id="path7581" d="m 315.893,347.187 5.726,2.325 v -4.706 l -5.726,2.381"/>
                <path id="path7583" d="m 315.95,347.131 2.324,-5.613 h -4.705 l 2.381,5.613"/>
                <path id="path7585" d="m 315.893,347.187 -2.324,5.613 h 4.705 l -2.381,-5.613"/>
                </g>
                <g id="HK2TempVLGroup" transform="translate(-12.634 -43.147) scale(.9708)">
                <text id="HK2TempVL" x="97.198" y="57.794" style="font-size:2.4000001px;fill:#fff">
                    <tspan id="HK2TempVLText" x="97.198" y="57.794" class="text" data-format="°" data-formula="VAR" data-item="technik.heizung.ha.TempVListM2" data-widget="basic.print">--</tspan>
                </text>
                </g>
                <g id="HK2Pumpe1" style="fill-rule:evenodd" transform="translate(85.609 13.525) scale(.03413)">
                <circle id="circle635" cx="217.956" cy="169.014" r="69.333" style="fill:none;stroke:#fff;stroke-width:10"/>
                <g id="g643" style="fill:#fff">
                    <path id="path637" d="m 242.953,97.48 a 7.546,7.546 0 0 1 -7.547,7.546 H 200.19 A 7.546,7.546 0 0 1 192.643,97.48 V 81.13 a 7.547,7.547 0 0 1 7.547,-7.546 h 35.216 a 7.547,7.547 0 0 1 7.547,7.546 z"/>
                    <path id="path639" d="m 242.953,258.47 a 7.546,7.546 0 0 1 -7.547,7.546 H 200.19 a 7.546,7.546 0 0 1 -7.547,-7.546 v -16.351 a 7.547,7.547 0 0 1 7.547,-7.546 h 35.216 a 7.547,7.547 0 0 1 7.547,7.546 z"/>
                    <path id="path641" d="m 248.816,270.464 c 0,4.548 -2.477,8.235 -5.529,8.235 h -51.298 c -3.054,0 -5.529,-3.688 -5.529,-8.235 v -2.288 c 0,-4.548 2.476,-8.234 5.529,-8.234 h 51.298 c 3.053,0 5.529,3.687 5.529,8.234 z"/>
                </g>
                <path id="path645" d="M 209.938,238.031 H 98.74 A 7.64,7.64 0 0 1 91.1,230.392 V 108.16 a 7.64,7.64 0 0 1 7.64,-7.64 h 111.198" style="fill:none;stroke:#fff;stroke-width:10"/>
                <g id="g655" style="fill:#fff">
                    <path id="path647" d="m 72.247,100.311 v 137.721 c 0,6.448 10,6.448 10,0 v -137.259 -0.462 c 0,-6.449 -10,-6.449 -10,0 z"/>
                    <path id="path649" d="m 178.167,165.334 c 0.317,-15.703 12.631,-28.016 28.333,-28.333 6.439,-0.13 6.452,-10.13 0,-10 -21.189,0.428 -37.905,17.144 -38.333,38.333 -0.131,6.452 9.87,6.44 10,0 z"/>
                    <path id="path651" d="m 199.631,120.869 14.667,14.667 c 4.563,4.563 11.635,-2.507 7.07,-7.071 l -14.667,-14.667 c -4.563,-4.564 -11.635,2.507 -7.07,7.071 z"/>
                    <path id="path653" d="m 206.701,150.536 14.667,-14.667 c 4.564,-4.564 -2.507,-11.635 -7.07,-7.071 l -14.667,14.667 c -4.565,4.564 2.507,11.635 7.07,7.071 z"/>
                </g>
                </g>
                <g id="HK2Rohre" class="pipe" data-item="technik.heizung.ha.PumpeStatusM2" data-widget="heizung.pumpAni" style="fill:none;stroke-width:.80000001;stroke-linejoin:round" transform="translate(-8.916 -238.964)">
                <path id="HK2-R-RL-2-1" d="m 104.844,273 h 18.447 l 0.047,-29.064 h -6.184" style="stroke:#fffffd"/>
                <path id="HK2-R-VL-2-2" d="m 107.827,243.936 h -5.869 v 11.6" style="stroke:#fffff8"/>
                <path id="HK2-R-VL-2-1" d="m 101.953,261.68 v 8.413" style="stroke:#fff"/>
                <path id="HK2-R-RL-1-1" d="m 76.985,281 h 24.923 v -5.093" style="stroke:#fff"/>
                <path id="HK2-R-VL-1-1" d="M 99,273 H 76.985" style="stroke:#fff"/>
                </g>
                <g id="HK2BetriebsArtGroup" transform="translate(-7.487 -52.765) scale(1.14311)">
                <text id="HK2BetriebsArt" x="97.198" y="57.794" style="font-size:2.4000001px;text-anchor:middle;fill:#fff">
                    <tspan id="HK2BetriebsArtText" x="97.198" y="57.794" class="text" data-formula="VAR" data-item="technik.heizung.ha.BetriebArtM2" data-widget="basic.print">--</tspan>
                </text>
                </g>
                <g id="HK2" style="stroke-width:.80000001" transform="translate(67.213 -237.881)">
                <text id="text85" x="36.365" y="243.744" style="font-size:2.4000001px;text-anchor:middle;fill:#fff">
                    <tspan id="tspan122" x="36.365" y="243.744">HK2</tspan>
                </text>
                <circle id="HK2-Kreislauf" cx="36.362" cy="242.853" r="4.664" style="fill:none;stroke:#fff;stroke-width:.34099999"/>
                </g>
                <g id="HK1Pumpe" data-widget="basic.color" style="paint-order:markers fill stroke" transform="translate(21.651 10.318) scale(.03413)">
                <circle id="circle527" cx="217.956" cy="169.014" r="69.333" style="fill:none;stroke:#fff;stroke-width:10;paint-order:markers fill stroke"/>
                <g id="g535" style="fill:#fff;paint-order:markers fill stroke">
                    <path id="path529" d="m 242.953,97.48 a 7.546,7.546 0 0 1 -7.547,7.546 H 200.19 A 7.546,7.546 0 0 1 192.643,97.48 V 81.13 a 7.547,7.547 0 0 1 7.547,-7.546 h 35.216 a 7.547,7.547 0 0 1 7.547,7.546 z" style="paint-order:markers fill stroke"/>
                    <path id="path531" d="m 242.953,258.47 a 7.546,7.546 0 0 1 -7.547,7.546 H 200.19 a 7.546,7.546 0 0 1 -7.547,-7.546 v -16.351 a 7.547,7.547 0 0 1 7.547,-7.546 h 35.216 a 7.547,7.547 0 0 1 7.547,7.546 z" style="paint-order:markers fill stroke"/>
                    <path id="path533" d="m 248.816,270.464 c 0,4.548 -2.477,8.235 -5.529,8.235 h -51.298 c -3.054,0 -5.529,-3.688 -5.529,-8.235 v -2.288 c 0,-4.548 2.476,-8.234 5.529,-8.234 h 51.298 c 3.053,0 5.529,3.687 5.529,8.234 z" style="paint-order:markers fill stroke"/>
                </g>
                <path id="path537" d="M 209.938,238.031 H 98.74 A 7.64,7.64 0 0 1 91.1,230.392 V 108.16 a 7.64,7.64 0 0 1 7.64,-7.64 h 111.198" style="fill:none;stroke:#fff;stroke-width:10;paint-order:markers fill stroke"/>
                <g id="g547" style="fill:#fff;paint-order:markers fill stroke">
                    <path id="path539" d="m 72.247,100.311 v 137.721 c 0,6.448 10,6.448 10,0 v -137.259 -0.462 c 0,-6.449 -10,-6.449 -10,0 z" style="paint-order:markers fill stroke"/>
                    <path id="path541" d="m 178.167,165.334 c 0.317,-15.703 12.631,-28.016 28.333,-28.333 6.439,-0.13 6.452,-10.13 0,-10 -21.189,0.428 -37.905,17.144 -38.333,38.333 -0.131,6.452 9.87,6.44 10,0 z" style="paint-order:markers fill stroke"/>
                    <path id="path543" d="m 199.631,120.869 14.667,14.667 c 4.563,4.563 11.635,-2.507 7.07,-7.071 l -14.667,-14.667 c -4.563,-4.564 -11.635,2.507 -7.07,7.071 z" style="paint-order:markers fill stroke"/>
                    <path id="path545" d="m 206.701,150.536 14.667,-14.667 c 4.564,-4.564 -2.507,-11.635 -7.07,-7.071 l -14.667,14.667 c -4.565,4.564 2.507,11.635 7.07,7.071 z" style="paint-order:markers fill stroke"/>
                </g>
                </g>
                <g id="HK1Rohre" class="pipe" data-item="technik.heizung.ha.PumpeStatusM1" data-widget="heizung.pumpAni" style="fill:none;stroke:#fff;stroke-width:.80000001;stroke-linejoin:round" transform="translate(-8.916 -238.964)">
                <path id="path1014" d="M 43.004,243.936 H 38 v 8.393"/>
                <path id="HK1-R-VL-1-1" d="M 38,258.36 V 277 h 26.477"/>
                <path id="HK1-R-VL-1-2" d="M 64.477,273 H 58 v -29.064 h -5.669"/>
                </g>
                <g id="HK1BetriebsArtGroup" transform="translate(-72.467 -52.765) scale(1.14311)">
                <text id="HK1BetriebsArt" x="97.198" y="57.794" style="font-size:2.4000001px;text-anchor:middle;fill:#fff">
                    <tspan id="HK1BetriebsArtText" x="97.198" y="57.794" class="text" data-formula="VAR" data-item="technik.heizung.ha.BetriebArtM1" data-widget="basic.print">--</tspan>
                </text>
                </g>
                <g id="HK1" transform="translate(2.39 -237.881)">
                <text id="HK1T" x="36.356" y="243.728" style="font-size:2.4000001px;text-anchor:middle;fill:#fff">
                    <tspan id="HK1Text" x="36.356" y="243.728">HK1</tspan>
                </text>
                <circle id="HK1Kreislauf" cx="36.362" cy="242.853" r="4.664" style="fill:none;stroke:#fff;stroke-width:.34099999"/>
                </g>
                <g id="KesselTempGroup" transform="translate(-30.73 -17.066) scale(.9708)">
                <text id="KesselTemp" x="104.382" y="48.148" style="font-size:2.4000001px;text-anchor:middle;fill:#fff">
                    <tspan id="KesselTempText" x="104.382" y="48.148" class="text" data-format="°" data-formula="VAR" data-item="technik.heizung.ha.TempKist" data-widget="basic.print">--</tspan>
                </text>
                </g>
                <g id="Kessel" transform="translate(48.115 21.73) scale(.09679)">
                <g id="KesselWTausch" style="fill:#fff">
                    <path id="path799" d="M 163.549,137.892 113.025,129.3 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 l 50.524,8.592 c 6.306,1.071 9.006,-8.564 2.658,-9.643 z"/>
                    <path id="path801" d="M 163.549,149.892 113.025,141.3 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 l 50.524,8.592 c 6.306,1.071 9.006,-8.564 2.658,-9.643 z"/>
                    <path id="path803" d="M 163.549,161.892 113.025,153.3 c -6.306,-1.072 -9.006,8.563 -2.658,9.643 l 50.524,8.592 c 6.306,1.071 9.006,-8.564 2.658,-9.643 z"/>
                </g>
                <g id="KesselAmaturen" style="fill:#fff">
                    <path id="path837" d="m 103.515,95.486 h 20.362 c 6.449,0 6.449,-10 0,-10 h -20.362 c -6.449,0 -6.449,10 0,10 z"/>
                    <path id="path839" d="m 147.599,95.486 h 3.935 c 2.726,0 5,-2.274 5,-5 0,-2.726 -2.274,-5 -5,-5 h -3.935 c -2.726,0 -5,2.274 -5,5 0,2.726 2.274,5 5,5 z"/>
                </g>
                <g id="KesselShape" style="fill:none;stroke:#fff;stroke-width:10">
                    <path id="KesselBedienfeld" d="m 204.067,283.394 a 3.772,3.772 0 0 1 -3.772,3.773 H 78.606 a 3.773,3.773 0 0 1 -3.773,-3.773 V 109.578 a 3.773,3.773 0 0 1 3.773,-3.773 h 121.688 a 3.772,3.772 0 0 1 3.772,3.773 v 173.816 z"/>
                    <path id="KesselFlammeGross" d="m 167.22,233.733 c 0,19.484 -13.012,35.28 -29.062,35.28 -16.052,0 -32.35,-13.602 -31.667,-33.074 0.41,-11.66 7.34,-16.117 12.464,-24.624 5.328,-8.848 8.781,-27.77 11.562,-29.358 0.704,-0.402 7.111,8.176 8.546,18.5 2.483,17.843 12.267,-6.938 12.87,-6.334 1.956,1.955 4.721,4.934 6.234,7.34 5.63,8.947 9.053,20.092 9.053,32.27 z" data-item="technik.heizung.ha.BrennerStufe" data-widget="heizung.fireAni"/>
                    <path id="KesselFlammeKlein" d="m 153.09,247.418 c 0,11.502 -7.682,20.827 -17.157,20.827 -9.476,0 -19.097,-8.03 -18.694,-19.524 0.242,-6.884 4.333,-9.516 7.358,-14.537 3.146,-5.225 5.184,-16.395 6.826,-17.332 0.416,-0.237 4.198,4.827 5.045,10.921 1.466,10.534 7.242,-4.095 7.598,-3.739 1.154,1.156 2.786,2.913 3.68,4.334 3.323,5.28 5.344,11.861 5.344,19.05 z" data-item="technik.heizung.ha.BrennerStufe" data-widget="heizung.fireAni"/>
                    <path id="path833" d="m 164.227,101.805 a 4,4 0 0 1 -4,4 H 94.333 a 4,4 0 0 1 -4,-4 V 79.167 a 4,4 0 0 1 4,-4 h 65.894 a 4,4 0 0 1 4,4 z"/>
                </g>
                </g>
            </g>
            </svg>
        </div>
        <script type="text/javascript">
            $(document).on('pageshow', function(event, data) {
                $(".block:first").css("width", "100%");
                $("#svg376").css("width", "100%");
            })
        </script>
        <p style="text-align: center; font-variant: sub;">Aktualisiert am {{ basic.print(uid~'LastUpdate', 'technik.heizung.ha.LastUpdate', 'long') }}</p>
        </div>
        <div data-role="collapsible">
            <h3>Details</h3>
            <table class="myStyle">
                <tr>
                    <td class="myStyle">
                        <label>Brennerstufe:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.text(uid~'BrennerStufe', 'technik.heizung.ha.BrennerStufe', 'Ein', 'Aus') }}
                    </td>
                        <td class="myStyle">
                        <label>Kessel Temp.:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.print(uid~'TempKist', 'technik.heizung.ha.TempKist', '°') }} / {{ basic.print(uid~'TempKsoll', 'technik.heizung.ha.TempKsoll', '°') }}
                    </td>
                </tr>
                <tr>
                    <td class="myStyle" style="width: 20%;">
                        <label>WW Temp:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.print(uid~'TempWWist', 'technik.heizung.ha.TempWWist', '°') }} / {{ basic.print(uid~'TempWWsoll', 'technik.heizung.ha.TempWWsoll', '°') }}
                    </td>
                        <td class="myStyle">
                        <label>WW Pumpe:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.text(uid~'PumpeStatusSp', 'technik.heizung.ha.PumpeStatusSp', 'Ein', 'Aus') }}
                    </td>
                </tr>
                <tr>
                    <td class="myStyle" style="width: 20%;">
                        <label>HK1 Betriebsart:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.print(uid~'BetriebArtHK1', 'technik.heizung.ha.BetriebArtHK1') }}
                    </td>
                        <td class="myStyle">
                        <label>HK2 Betriebsart:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.print(uid~'BetriebArtHK2', 'technik.heizung.ha.BetriebArtHK2') }}
                    </td>
                </tr>
                <tr>
                    <td class="myStyle">
                        <label>HK1 Pumpe:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.text(uid~'PumpeStatusM1', 'technik.heizung.ha.PumpeStatusM1', 'Ein', 'Aus') }}
                    </td>
                        <td class="myStyle">
                        <label>HK2 Pumpe:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.text(uid~'PumpeStatusM2', 'technik.heizung.ha.PumpeStatusM2', 'Ein', 'Aus') }}
                    </td>
                </tr>
                <tr>
                    <td class="myStyle">
                        <label>HK1 Temp. Soll:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.print(uid~'TempRaumNorSollM1', 'technik.heizung.ha.TempRaumNorSollM1', '°') }}
                    </td>
                        <td class="myStyle">
                        <label>HK2 Temp. Soll:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.print(uid~'TempRaumNorSollM2', 'technik.heizung.ha.TempRaumNorSollM2', '°') }}
                    </td>
                </tr>
                <tr>
                    <td class="myStyle"></td>
                    <td class="myStyle"></td>
                        <td class="myStyle">
                        <label>HK2 Temp. Vorlauf:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.print(uid~'TempVListM2', 'technik.heizung.ha.TempVListM2', '°') }} / {{ basic.print(uid~'TempVLsollM2', 'technik.heizung.ha.TempVLsollM2', '°') }}
                    </td>
                </tr>
                <tr>
                    <td class="myStyle"></td>
                    <td class="myStyle"></td>
                        <td class="myStyle">
                        <label>HK2 Mischer:</label>
                    </td>
                        <td class="myStyle">
                        {{ basic.print(uid~'MischerM2', 'technik.heizung.ha.MischerM2', '%') }}
                    </td>
                </tr>
            </table>
    {% endmacro %}
    Alle meinen anderen Widgets laufen wie vorher.... hat wer eine Idee was das sein kann?

    Gruß
    Zuletzt geändert von wvhn; 30.12.2020, 11:03. Grund: Status gelöst gesetzt

    #2
    Da sind noch Aufrufe von basic.text enthalten, das seit v2.9 deprecated ist und im develop gelöscht wurde.

    Gruß
    Wolfram

    Kommentar


      #3
      Danke für den Tipp!

      Da ich hier im Forum noch nichts dazu gefunden habe, wie man basic.text in basic.print umbaut - hier mal wie ich das gelößt habe:

      Aus dem

      Code:
                      <td class="myStyle">
                          {{ basic.text(uid~'PumpeStatusSp', 'technik.heizung.ha.PumpeStatusSp', 'Ein', 'Aus') }}
                      </td>
      wird das hier:

      Code:
                      <td class="myStyle">
                          <span id="{{ uid~'PumpeStatusSp' }}"></span>
                          {{ basic.print('', 'technik.heizung.ha.PumpeStatusSp', 'script', '$("#'~uid~'PumpeStatusSp").text((VAR1 == 1) ? "Ein" : "Aus")') }}
                      </td>
      Gruß
      Zuletzt geändert von TCr82; 29.12.2020, 01:40.

      Kommentar


        #4
        Danke für den Tipp. Das sieht ein wenig exotisch aus, ist aber ein gutes Beispiel für die Verwendung von Skripten in basic.print
        Hier ist basic.symbol besser geeignet.

        Normalerweise würde der Templatechecker einen Hinweis geben, wie veraltete / gelöschte Widgets zu ersetzen sind. Dazu müssen die eigenen Widgets aber bestimmte Formatstandards befolgen, um geprüft werden zu können. Dies ist in der Readme.md in ./lib/templatechecker beschrieben.

        In v2.9.x (Master) kann man zudem auch in den widget-htmls nachsehen. Die veralteten Widgets sind dort jeweils im unteren Teil gesammelt und enthalten die Replacement Strings, die der Templatechecker für seine Ersatzempfehlungen verwendet. Im develop habe ich diese in ein neues Modul für den Templatechecker gepackt.

        Gruß
        Wolfram

        Kommentar


          #5
          Zitat von wvhn Beitrag anzeigen
          Danke für den Tipp. Das sieht ein wenig exotisch aus, ist aber ein gutes Beispiel für die Verwendung von Skripten in basic.print
          Hier ist basic.symbol besser geeignet.
          Hast du da ein Beispiel wie obiges so Umgebaut werden sollte (um es hier an gleicher Stelle zu dokumentieren)?
          Weil ich will ja kein Bild / Symbol ausgeben...

          Kommentar


            #6
            Schau dir mal die docu an. Wenn du kein icon angibst, kommt auch nur Text

            Kommentar


              #7
              Code:
              {{ basic.symbol(uid~'PumpeStatusSp', 'technik.heizung.ha.PumpeStatusSp', ['Aus', 'Ein'], '', '','>') }}
              oder
              Code:
              {{ basic.symbol(uid~'PumpeStatusSp', 'technik.heizung.ha.PumpeStatusSp', ['Aus', 'Ein'], '', [0,1] ) }}

              Zuletzt geändert von wvhn; 30.12.2020, 10:37.

              Kommentar


                #8
                danke

                Kommentar

                Lädt...
                X