NEWS
Blockly optimieren -Tabelle erstellen
-
Hallo Zusammen,
Ich habe mir hier ein Blockly gebastelt welches mir eine Tabelle als HTML-Code in einen Datenpunkt schreibt
Diese Tabelle ist in allen meiner VIS die Selbe daher hatte ich mir gedacht ich mache es per Datenpunkt um bei Änderungen nicht jede VIS anzupackenHier mal mein Blockly
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="G?SIXbu-FT4]mx)qtM+3">Tabelle - Name01</variable> <variable id="URufIUXh~cKXbF_qiT@:">Tabelle - Wert01</variable> <variable id="X{YCwT6)UO~XY`Vc}2I4">anlegen_in</variable> <variable id="7V5(bDg2/5uMeAnbi3*j">Kodiaq - Tabelle Fenster zusammenbauen</variable> <variable id="$RIK(0f);.l=!pQfVAU#">Kodiaq - Tabelle Fenster</variable> <variable id=";wUJIl|1iJEZBn8f%fdu">Tabelle - Name02</variable> <variable id="83y$#lEKXlRaN}+?`mNh">Tabelle - Wert02</variable> <variable type="timeout" id="start">start</variable> <variable id="PY6(zME8yA[7bv?BF7s7">Tabelle - Name03</variable> <variable id="aP.ypz9.=}H_,X(T($S.">Tabelle - Wert03</variable> <variable id="E5kPQfZKYeXR7a2.;~so">Tabelle - Name04</variable> <variable id="-|E:2l+GfRtH.urUTV|T">Tabelle - Wert04</variable> </variables> <block type="procedures_defcustomnoreturn" id="D:0E=~0D8*EFnn8f|sd." x="13" y="-13"> <mutation statements="false"></mutation> <field name="NAME">Datenpunkte_erstellen</field> <field name="SCRIPT">LyoqCiAqIENyZWF0ZSBzdGF0ZXMgdW5kZXIgMF91c2VyZGF0YS4wIG9yIGphdmFzY3JpcHQueAogKiBDdXJyZW50IFZlcnNpb246ICAgICBodHRwczovL2dpdGh1Yi5jb20vTWljLU0vaW9icm9rZXIuY3JlYXRlVXNlclN0YXRlcwogKiBTdXBwb3J0OiAgICAgICAgICAgICBodHRwczovL2ZvcnVtLmlvYnJva2VyLm5ldC90b3BpYy8yNjgzOS8KICogQXV0b3I6ICAgICAgICAgIC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wogICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgY2FsbGJhY2sgPT09ICdmdW5jdGlvbicpIHsgLy8gZXhlY3V0ZSBpZiBhIGZ1bmN0aW9uIHdhcyBwcm92aWRlZCB0byBwYXJhbWV0ZXIgY2FsbGJhY2sKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIEZ1bmN0aW9uIHRvIGNhbGxiYWNrIHBhcmFtZXRlciB3YXMgcHJvdmlkZWQnKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKCk7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfSk7CiAgICB9IGVsc2UgewogICAgICAgIC8vIENyZWF0ZSBTdGF0ZXMgdW5kZXIgMF91c2VyZGF0YS4wCiAgICAgICAgbGV0IG51bVN0YXRlcyA9IHN0YXRlc1RvQ3JlYXRlLmxlbmd0aDsKICAgICAgICBsZXQgY291bnRlciA9IC0xOwogICAgICAgIHN0YXRlc1RvQ3JlYXRlLmZvckVhY2goZnVuY3Rpb24obG9vcFBhcmFtKSB7CiAgICAgICAgICAgIGNvdW50ZXIgKz0gMTsKICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nICgnW0RlYnVnXSBDdXJyZW50bHkgcHJvY2Vzc2luZyBmb2xsb3dpbmcgc3RhdGU6IFsnICsgbG9vcFBhcmFtWzBdICsgJ10nKTsKICAgICAgICAgICAgaWYoICgkKGxvb3BQYXJhbVswXSkubGVuZ3RoID4gMCkgJiYgKGV4aXN0c1N0YXRlKGxvb3BQYXJhbVswXSkpICkgeyAvLyBXb3JrYXJvdW5kIGR1ZSB0byBodHRwczovL2dpdGh1Yi5jb20vaW9Ccm9rZXIvaW9Ccm9rZXIuamF2YXNjcmlwdC9pc3N1ZXMvNDc4CiAgICAgICAgICAgICAgICAvLyBTdGF0ZSBpcyBleGlzdGluZy4KICAgICAgICAgICAgICAgIGlmIChXQVJOICYmICFmb3JjZSkgbG9nKCdTdGF0ZSBbJyArIGxvb3BQYXJhbVswXSArICddIGlzIGFscmVhZHkgZXhpc3RpbmcgYW5kIHdpbGwgbm8gbG9uZ2VyIGJlIGNyZWF0ZWQuJywgJ3dhcm4nKTsKICAgICAgICAgICAgICAgIGlmICghV0FSTiAmJiBMT0dfREVCVUcpIGxvZygnW0RlYnVnXSBTdGF0ZSBbJyArIGxvb3BQYXJhbVswXSArICddIGlzIGFscmVhZHkgZXhpc3RpbmcuIE9wdGlvbiBmb3JjZSAoPW92ZXJ3cml0ZSkgaXMgc2V0IHRvIFsnICsgZm9yY2UgKyAnXS4nKTsKICAgICAgICAgICAgICAgIGlmKCFmb3JjZSkgewogICAgICAgICAgICAgICAgICAgIC8vIFN0YXRlIGV4aXN0cyBhbmQgc2hhbGwgbm90IGJlIG92ZXJ3cml0dGVuIHNpbmNlIGZvcmNlPWZhbHNlCiAgICAgICAgICAgICAgICAgICAgLy8gU28sIHdlIGRvIG5vdCBwcm9jZWVkLgogICAgICAgICAgICAgICAgICAgIG51bVN0YXRlcy0tOwogICAgICAgICAgICAgICAgICAgIGlmIChudW1TdGF0ZXMgPT09IDApIHsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIEFsbCBzdGF0ZXMgc3VjY2Vzc2Z1bGx5IHByb2Nlc3NlZCEnKTsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBjYWxsYmFjayA9PT0gJ2Z1bmN0aW9uJykgeyAvLyBleGVjdXRlIGlmIGEgZnVuY3Rpb24gd2FzIHByb3ZpZGVkIHRvIHBhcmFtZXRlciBjYWxsYmFjawogICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIEFuIG9wdGlvbmFsIGNhbGxiYWNrIGZ1bmN0aW9uIHdhcyBwcm92aWRlZCwgd2hpY2ggd2UgYXJlIGdvaW5nIHRvIGV4ZWN1dGUgbm93LicpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKCk7CiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7ICAvLyBubyBjYWxsYmFjaywgcmV0dXJuIGFueXdheQogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgLy8gV2UgbmVlZCB0byBnbyBvdXQgYW5kIGNvbnRpbnVlIHdpdGggbmV4dCBlbGVtZW50IGluIGxvb3AuCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjsgLy8gaHR0cHM6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvMTg0NTI5MjAvY29udGludWUtaW4tY3Vyc29yLWZvcmVhY2gKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9IC8vIGlmKCFmb3JjZSkKICAgICAgICAgICAgfQoKICAgICAgICAgICAgLy8gU3RhdGUgaXMgbm90IGV4aXN0aW5nIG9yIGZvcmNlID0gdHJ1ZSwgc28gd2UgYXJlIGNvbnRpbnVpbmcgdG8gY3JlYXRlIHRoZSBzdGF0ZSB0aHJvdWdoIHNldE9iamVjdCgpLgogICAgICAgICAgICBsZXQgb2JqID0ge307CiAgICAgICAgICAgIG9iai50eXBlID0gJ3N0YXRlJzsKICAgICAgICAgICAgb2JqLm5hdGl2ZSA9IHt9OwogICAgICAgICAgICBvYmouY29tbW9uID0gbG9vcFBhcmFtWzFdOwogICAgICAgICAgICBzZXRPYmplY3QobG9vcFBhcmFtWzBdLCBvYmosIGZ1bmN0aW9uIChlcnIpIHsKICAgICAgICAgICAgICAgIGlmIChlcnIpIHsKICAgICAgICAgICAgICAgICAgICBsb2coJ0Nhbm5vdCB3cml0ZSBvYmplY3QgZm9yIHN0YXRlIFsnICsgbG9vcFBhcmFtWzBdICsgJ106ICcgKyBlcnIpOwogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICBpZiAoTE9HX0RFQlVHKSBsb2coJ1tEZWJ1Z10gTm93IHdlIGFyZSBjcmVhdGluZyBuZXcgc3RhdGUgWycgKyBsb29wUGFyYW1bMF0gKyAnXScpCiAgICAgICAgICAgICAgICAgICAgbGV0IGluaXQgPSBudWxsOwogICAgICAgICAgICAgICAgICAgIGlmKGxvb3BQYXJhbVsxXS5kZWYgPT09IHVuZGVmaW5lZCkgewogICAgICAgICAgICAgICAgICAgICAgICBpZihsb29wUGFyYW1bMV0udHlwZSA9PT0gJ251bWJlcicpIGluaXQgPSAwOwogICAgICAgICAgICAgICAgICAgICAgICBpZihsb29wUGFyYW1bMV0udHlwZSA9PT0gJ2Jvb2xlYW4nKSBpbml0ID0gZmFsc2U7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmKGxvb3BQYXJhbVsxXS50eXBlID09PSAnc3RyaW5nJykgaW5pdCA9ICcnOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGluaXQgPSBsb29wUGFyYW1bMV0uZGVmOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgICAgICBzZXRTdGF0ZShsb29wUGFyYW1bMF0sIGluaXQsIHRydWUsIGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIHNldFN0YXRlIGR1cmNoZ2Vmw7xocnQ6ICcgKyBsb29wUGFyYW1bMF0pOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgbnVtU3RhdGVzLS07CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAobnVtU3RhdGVzID09PSAwKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIEFsbCBzdGF0ZXMgcHJvY2Vzc2VkLicpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgY2FsbGJhY2sgPT09ICdmdW5jdGlvbicpIHsgLy8gZXhlY3V0ZSBpZiBhIGZ1bmN0aW9uIHdhcyBwcm92aWRlZCB0byBwYXJhbWV0ZXIgY2FsbGJhY2sKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIEZ1bmN0aW9uIHRvIGNhbGxiYWNrIHBhcmFtZXRlciB3YXMgcHJvdmlkZWQnKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9LCBERUxBWSArICgyMCAqIGNvdW50ZXIpICk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgIH0pOwogICAgfQp9CgovLyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIwoKLy9EYXRlbnB1bmt0ZSBmw7xyIFNlbmRlciBlcnN0ZWxsZW4gbWl0IFNtYXJ0TmFtZW4gZsO8ciBpb3QKbGV0IHN0YXRlc1RvQ3JlYXRlID0gWwogICAgWycwX3VzZXJkYXRhLjAuMDAyX251clZJUy4wMV9BdXRvcy5Ta29kYV9Lb2RpYXEuS29kaWFxLVRhYmVsbGUtRmVuc3RlcicsIHsnbmFtZSc6J0tvZGlhcSAtIFRhYmVsbGUgRmVuc3RlcicsICd0eXBlJzonc3RyaW5nJywgJ3JlYWQnOnRydWUsICd3cml0ZSc6dHJ1ZSwgJ3JvbGUnOicnLCAnZGVmJzonJywgInNtYXJ0TmFtZSI6IGZhbHNlIH1dLAoKXTsKY3JlYXRlVXNlclN0YXRlcyhhbmxlZ2VuX2luLHRydWUsIHN0YXRlc1RvQ3JlYXRlKTsKCi8vIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCgovL0Z1bmt0aW9uIG1haW4gbWl0IFZlcnrDtmdlcnVuZyBhdWZydWZlbgp0aW1lb3V0ID0gc2V0VGltZW91dChmdW5jdGlvbiAoKSB7Cm1haW4oKTsKfSwgNTAwMCk7CgoK</field> <comment pinned="false" h="80" w="160">Datenpunkte erstellen</comment> </block> <block type="variables_set" id=";|DO=41gye|--JIr*tF]" x="562" y="-13"> <field name="VAR" id="G?SIXbu-FT4]mx)qtM+3">Tabelle - Name01</field> <value name="VALUE"> <block type="text" id="gj4SsC%^fIHLGsS[I5uv"> <field name="TEXT">Fenster vorn links</field> </block> </value> <next> <block type="variables_set" id="c25Z#@pF|zC[,ksyrF:l"> <field name="VAR" id=";wUJIl|1iJEZBn8f%fdu">Tabelle - Name02</field> <value name="VALUE"> <block type="text" id="_`$hdG#iDK*ZGZbyIi4]"> <field name="TEXT">Fenster vorn rechts</field> </block> </value> <next> <block type="variables_set" id="!h;VpaiWQWZL*~Lnb?Z!"> <field name="VAR" id="PY6(zME8yA[7bv?BF7s7">Tabelle - Name03</field> <value name="VALUE"> <block type="text" id="u4L=nL^e=xzAux:CQ{pF"> <field name="TEXT">Fenster hinten links</field> </block> </value> <next> <block type="variables_set" id="m1d_0uaq$?:}HIsSd?(6"> <field name="VAR" id="E5kPQfZKYeXR7a2.;~so">Tabelle - Name04</field> <value name="VALUE"> <block type="text" id="C_^X(HD82z..I1bNAO!("> <field name="TEXT">Fenster hinten rechts</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> <block type="variables_set" id=";?fMsQ~nMP,W:*R,z,hL" x="12" y="37"> <field name="VAR" id="X{YCwT6)UO~XY`Vc}2I4">anlegen_in</field> <value name="VALUE"> <block type="text" id="TZDVFCHb+7p4,v#~lC!*"> <field name="TEXT">0_userdata.0</field> </block> </value> <next> <block type="timeouts_settimeout" id="8FQd(trxfKDt`(FG0(?="> <field name="NAME">start</field> <field name="DELAY">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="procedures_callcustomnoreturn" id="}{A#y;jy-Pl_)n6[of`b"> <mutation name="Datenpunkte_erstellen"></mutation> </block> </statement> </block> </next> </block> <block type="variables_set" id="o6(/rp*NPGH?Zf@Awy=i" x="1088" y="-12"> <field name="VAR" id="URufIUXh~cKXbF_qiT@:">Tabelle - Wert01</field> <value name="VALUE"> <block type="get_value" id="mr-P_.HuzjrKcHD|HZL."> <field name="ATTR">val</field> <field name="OID">vw-connect.0.TMBJB7NS7KN400337.status.data_0x030105FFFF.field_0x0301050004.value</field> </block> </value> <next> <block type="variables_set" id="6NawGa7?B[qOrg~|8[~R"> <field name="VAR" id="83y$#lEKXlRaN}+?`mNh">Tabelle - Wert02</field> <value name="VALUE"> <block type="get_value" id="@P@S3-;V~1Iiy;Ezo-VZ"> <field name="ATTR">val</field> <field name="OID">vw-connect.0.TMBJB7NS7KN400337.status.data_0x030105FFFF.field_0x0301050006.value</field> </block> </value> <next> <block type="variables_set" id="wwe7P%!QsW2qe|2ZqV;-"> <field name="VAR" id="aP.ypz9.=}H_,X(T($S.">Tabelle - Wert03</field> <value name="VALUE"> <block type="get_value" id="^#+ebENGTKv3])UCTPIM"> <field name="ATTR">val</field> <field name="OID">vw-connect.0.TMBJB7NS7KN400337.status.data_0x030105FFFF.field_0x0301050006.value</field> </block> </value> <next> <block type="variables_set" id="[N#H*#Si5~LCW-l:hfzT"> <field name="VAR" id="-|E:2l+GfRtH.urUTV|T">Tabelle - Wert04</field> <value name="VALUE"> <block type="get_value" id="zKcJ3jp%5G!#ZYclSU`r"> <field name="ATTR">val</field> <field name="OID">vw-connect.0.TMBJB7NS7KN400337.status.data_0x030105FFFF.field_0x0301050006.value</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> <block type="procedures_defnoreturn" id="|r?w}:z)r=!T3O=4ydx]" collapsed="true" x="337" y="138"> <field name="NAME">main</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="variables_set" id=".gQp2+8;_3/q8_Uwr:F/"> <field name="VAR" id="$RIK(0f);.l=!pQfVAU#">Kodiaq - Tabelle Fenster</field> <value name="VALUE"> <block type="text_join" id="]$B5QV^ydMJ7Ox*Vk,L("> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="z$A`(VFvUcL{CgqQKX]4"> <field name="VAR" id="X{YCwT6)UO~XY`Vc}2I4">anlegen_in</field> </block> </value> <value name="ADD1"> <block type="text" id="jE]@{6x/=YXCcP(*}MB_"> <field name="TEXT">0_userdata.0.002_nurVIS.01_Autos.Skoda_Kodiaq.Kodiaq-Tabelle-Fenster</field> </block> </value> </block> </value> <next> <block type="on" id=")-$uf.d{w#)]d~T*A~%."> <field name="OID">0_userdata.0.002_nurVIS.01_Autos.Skoda_Kodiaq.Kodiaq-Aktuallisierungszeit</field> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="update" id="LsPmm=q(aCPBB8cpUi!_"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.002_nurVIS.01_Autos.Skoda_Kodiaq.Kodiaq-Tabelle-Fenster</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="%aj]Q%@gSOR^Wy9q`)o?"> <field name="VAR" id="7V5(bDg2/5uMeAnbi3*j">Kodiaq - Tabelle Fenster zusammenbauen</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> <block type="variables_set" id="+6dh)DU_Imk;yHMblGfc" x="13" y="212"> <field name="VAR" id="7V5(bDg2/5uMeAnbi3*j">Kodiaq - Tabelle Fenster zusammenbauen</field> <value name="VALUE"> <block type="text_join" id="Sd{Wd$LcrNn?.1SgG9,T"> <mutation items="22"></mutation> <value name="ADD0"> <block type="text" id="R-8|Yzm!}3CEFwaQS*Y8"> <field name="TEXT"><table class="ws_table"><tbody></field> </block> </value> <value name="ADD1"> <block type="text" id="-K$w8kxPvLeh/P7Lp5gy"> <field name="TEXT"><tr><td class="ws_table_name"></field> </block> </value> <value name="ADD2"> <block type="variables_get" id="Kk2#@$6-yDC$^M?zqt;F"> <field name="VAR" id="G?SIXbu-FT4]mx)qtM+3">Tabelle - Name01</field> </block> </value> <value name="ADD3"> <block type="text" id="[Zk`Xx5ovF.c%;hcs?%T"> <field name="TEXT"></td><td align=center></field> </block> </value> <value name="ADD4"> <block type="variables_get" id="q;)}|(kZ4a}HzOb}8:FK"> <field name="VAR" id="URufIUXh~cKXbF_qiT@:">Tabelle - Wert01</field> </block> </value> <value name="ADD5"> <block type="text" id="~3Q[[**r@/UnK9~cs@d("> <field name="TEXT"> %</td></tr></field> </block> </value> <value name="ADD6"> <block type="text" id="`(Mo%SAAbC5d[Y+/p3rD"> <field name="TEXT"><tr><td class="ws_table_name"></field> </block> </value> <value name="ADD7"> <block type="variables_get" id="{9j8T}~CE95}_7l8L$u1"> <field name="VAR" id=";wUJIl|1iJEZBn8f%fdu">Tabelle - Name02</field> </block> </value> <value name="ADD8"> <block type="text" id="2ZMf2wizUIbtMnl}w;j`"> <field name="TEXT"></td><td align=center></field> </block> </value> <value name="ADD9"> <block type="variables_get" id="^-I_e(Df^D95c]4brr|5"> <field name="VAR" id="83y$#lEKXlRaN}+?`mNh">Tabelle - Wert02</field> </block> </value> <value name="ADD10"> <block type="text" id="$y(pYG;!g{.M!cmQw-^@"> <field name="TEXT"> %</td></tr></field> </block> </value> <value name="ADD11"> <block type="text" id="-*Rac#B[DsUx08qzvX1+"> <field name="TEXT"><tr><td class="ws_table_name"></field> </block> </value> <value name="ADD12"> <block type="variables_get" id="U^6|}S)aT;aTBtb%zo1t"> <field name="VAR" id="PY6(zME8yA[7bv?BF7s7">Tabelle - Name03</field> </block> </value> <value name="ADD13"> <block type="text" id="^[bqO~i`q8Lq:C@iU`H-"> <field name="TEXT"></td><td align=center></field> </block> </value> <value name="ADD14"> <block type="variables_get" id="0EY:wc?rl0~7(xkpD9R`"> <field name="VAR" id="aP.ypz9.=}H_,X(T($S.">Tabelle - Wert03</field> </block> </value> <value name="ADD15"> <block type="text" id="JfBCnRCm/pwGv*^V@y@t"> <field name="TEXT"> %</td></tr></field> </block> </value> <value name="ADD16"> <block type="text" id="?PWu{2%I/XhgNlt*o]!("> <field name="TEXT"><tr><td class="ws_table_name"></field> </block> </value> <value name="ADD17"> <block type="variables_get" id="ssS_lY-?DyHUn@cf6D?Q"> <field name="VAR" id="E5kPQfZKYeXR7a2.;~so">Tabelle - Name04</field> </block> </value> <value name="ADD18"> <block type="text" id="0:X24uyFYT!qy;[NECdd"> <field name="TEXT"></td><td align=center></field> </block> </value> <value name="ADD19"> <block type="variables_get" id="73L?cL;auY}PMrj?bzjL"> <field name="VAR" id="-|E:2l+GfRtH.urUTV|T">Tabelle - Wert04</field> </block> </value> <value name="ADD20"> <block type="text" id="uz:6k@W[,XLp]`i6sPQ%"> <field name="TEXT"> %</td></tr></field> </block> </value> <value name="ADD21"> <block type="text" id="H4k(R!^%S`fB:nO{V;ff"> <field name="TEXT"></tbody></table></field> </block> </value> </block> </value> </block> </xml>
Was mich jetzt dabei stört ist das ich, wenn ich eine Zeile in der Tabelle hinzufügen möchte, soviel Blöcke i, Bereich "Kodiaq - Tabelle Fenster zusammenbauen" hinzufügen muss
Hat jemand eine Idee wie man das opti,ieren kann?
-
@wszene Ich mache so eine HTML Tabelle mit NodeRed - aber das ist egal, weil es hier um HTML Funktionalität geht.
Deshalb mal kurz eine Idee die man vielleicht umsetzen könnte, wenn Du Dir mal meinen HTML Code anschaust:
<table id="t01"> <tr><th width=200>Bezeichnung</th><th width=80>Temperatur</th><th width=80>Leistung</th><th width=180>id</th><th width=300>Firmware</th><th width=130>IP-Adresse</th></tr> <tr ng-repeat="(key, y) in msg.payload"> <td>{{y.friendlyName}}</td><td align=right>{{y.temperature}}</td><td align=right>{{y.power}}</td><td>{{y.id}}</td><td style="color:{{y.icon.color}};text-align:center">{{y.fw_ver}}</td> <td align=center>{{y.ip}}</td> <!-- Bei Arrays kann man $index nehmen sonst bei ng-repeat key und value definieren <td class="material-icons" style="color:{{y.icon.color}}; text-align:right" ng-click="msg.payload=msg.payload[$index]; msg.topic=msg.payload.topic; send(msg)" >{{y.icon.name}}</td> --> <td class="material-icons" style="color:{{y.icon.color}}" ng-click="msg.payload=msg.payload[key]; msg.topic= 'Firmware Update of ' + msg.payload.id; send(msg)" >{{y.icon.name}}</td> <td class="material-icons" ng-click="msg.payload=msg.payload[key]; msg.topic= 'Reboot of ' + msg.payload.id; send(msg)" >replay</td> <td class="material-icons"><a ng-href="http://{{y.ip}}">exit_to_app</a></td> <td class="material-icons" style="color:{{y.state.color}}" ng-click="msg.payload=msg.payload[key]; msg.topic= 'State of ' + msg.payload.id; msg.key=key; send(msg)" >{{y.state.icon}}</td> <td class="material-icons" style="color:{{y.link.color}}" ng-click="msg.payload=msg.payload[key]; msg.topic= 'Link of ' + msg.payload.id; send(msg)" >{{y.link.icon}}</td> </tr> </table>
In diesem Fall ist es in der msg.payload ein Objekt mit mehren Objekten
<tr ng-repeat="(key, y) in msg.payload">
solche Objekte sind bei mir beispielsweise Datenpunkte in iobroker.
Also mein Ansatz wäre erst mal am HTML Code zu optimieren, wenn da diese AngularJS in vis funktionieren. Das kann ich nicht beurteilen. Aber ich glaube hier gibts auch einige die HTML Widgets gemacht haben und damit automatisch Tabellen erzeugen. https://docs.angularjs.org/api/ng/directive/ngRepeat
Aber hier gibts eine Menge HTML Gurus. Jedenfalls halte ich es für wichtiger erst mal den HTML Code zu optimieren - als das blockly.
In der Beschreibung zu ngRepeat kann man auch mit $index über ein Array arbeiten. Also im Prinzip muss Dein blockly nur ein Objekt oder Array erzeugen und der HTML-Code iteriert über dieses!
So schaut dann bei mir so eine Tabelle mit den obigen Objekten aus:
Wie Du siehst - ich definiere meine Tabellen Zeile einmal und lasse dann über ng-repeat automatisch über das Objekt iterieren.
-
Das sieht wirklich sehr interessant aus aber für mich leider zu hoch
Das mit dem Array habe ich mir auch vorgestellt habe auch schon Bilder von Blocklys gesehen wo so etwas erstellt wird aber ich schaffe es leider nicht so etwas selbst zu bauen.
des Weiteren hätte ich auch gern eine Tabelle gebaut wo ich auf der rechten Seite nicht nur die Werte sehen kann sondern auch schalten
Aber das wäre ein Traum -
@wszene sagte in Blockly optimieren -Tabelle erstellen:
Das sieht wirklich sehr interessant aus aber für mich leider zu hoch
Das mit dem Array habe ich mir auch vorgestellt habe auch schon Bilder von Blocklys gesehen wo so etwas erstellt wird aber ich schaffe es leider nicht so etwas selbst zu bauen.
des Weiteren hätte ich auch gern eine Tabelle gebaut wo ich auf der rechten Seite nicht nur die Werte sehen kann sondern auch schalten
Aber das wäre ein TraumJa so habe ich das bei mir in Node-Red Dashboard gemacht. Die Icons rechts zeigen nicht nur Status an, sondern damit kann ich ein Firmware-Update, Neustart etc. anstoßen.
Aber ich glaube da kann wahrscheinlich @OliverIO helfen. Der ist fit in Javascript, blockly, in vis und in HTML und weiß wahrscheinlich auch ob es sowas schon gibt. Sorry dass ich Dich hier zitiere - aber Du bist hier einfach der Guru für so was.
-
macht man mit listen und schleife - dann muss du nur jede liste um wert erweitern
noch besser wäre eine schleife mit einem selektor (https://forum.iobroker.net/topic/28021/html-table-für-vis-oder-iqontrol-js-und-blockly) - dann frägt das script alle datenpunkte ab, die ein adapter liefert - ist mir aber mit blockly zu umständlich
mit diesem script hier kann man z.b. schalten in der tabelle - da wird ein kleines script in den html code eingebaut
https://forum.iobroker.net/topic/28953/sonoff-geräte-als-html-tabelle-vis-iqontrol
-
Ich danke dir das hat mir sehr geholfen
Was mich nur noch nicht einleuchtet ist
Wie ist der technische Hintergrund davon
Wie funktioniert das das ich eine Variable setzte mit sich selbst
Diese Variable wird ja eine Zeile drüber gefüllt dann befüllst du die selbe Variable nochmal mit sich selbst
Das geht mir noch nicht in den KopfHier mal mein Blockly wie es jetzt bei mir läuft
Wenn ich jetzt noch Erfahre wie ich in die 2te Spalte ein Widget setzten kan mit dem ich true/false schalten kann wäre das perfekt für alles was ich brauche in meiner VIS
-
@wszene er nimmt die variable, wasja text ist und der baustein addiert einfach den text in jeder zeile - so "wächst" der text bzw wird die tabellle erstellt
nix weiter als test addition
wegen des buttons/schalten schauen wir morgen mal
-
ich danke dir
So habe ich das jetzt verstandenIch würde mich freuen wenn wir das mit den Buttons hinbekommen das würde mir verdammt viel erleichtern
-
ich habe hier mal ein script für die erstellung der tabelle - es gibt viele settings , um die tabelle für deine vis anzugleichen
damit kannst du alles, was boolean ist einrichten und schalten - oder auch ein zweites script für ein weiteres widget mit anderen daten
es müssen da sicher noch einige sachen angeglichen werden - z.b. ob überhaupt bei jedem datenpunkt ein schalter sein muss
aber zum test und zur entscheidung - ob du das überhaupt so willst - erst mal ein script import
die tabelle refresht sich, wenn einer der datenpunkte in der datenpunkt-liste geschalten wird
du musst auch die variable dpVIS intragen im blockly - das muss ein datenpunkt vom typ zeichenkette sein - diesen datenpunkt gibst du dann als binding ( in { } ) in einem html standard widget ein ( siehe bild in: https://forum.iobroker.net/post/565707)
das ganze muss dann noch in dein anderes script integriert werden
-
Danke schonmal ich bin gerade am probieren
Ist dieser Teil der Name des Datenpunktes welchen ich erstellen soll
Also in meinem Fall habe ich den Datenpunkt0_userdata.0.002_nurVIS.03_Tabellen.Tabelle-Lampen
erstellt
-
@wszene dann trage dort deinen datenpunkt ein
hauptsache es ist ein string-datenpunkt und existiert
-
@liv-in-sky
Das ist das RAW von dem Datenpunkt{ "from": "system.adapter.javascript.0", "user": "system.user.admin", "ts": 1611484777652, "common": { "name": "Tabelle - Lampen", "type": "string", "role": "", "def": "", "read": true, "write": true, "smartName": false }, "native": {}, "acl": { "object": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator", "state": 1636 }, "_id": "0_userdata.0.002_nurVIS.03_Tabellen.Tabelle-Lampen", "type": "state" }
und schreibe ich da in das Textfeld den kompletten Namen des Datenpunktes?
-
@wszene sagte in Blockly optimieren -Tabelle erstellen:
0_userdata.0.002_nurVIS.03_Tabellen.Tabelle-Lampen
nicht den namen - die _id
0_userdata.0.002_nurVIS.03_Tabellen.Tabelle-Lampen
-
ich habe jetzt das Blockly so nach gebaut
leider bekomme ich keinen Inhalt in den DP aber folgende Fehler im Log
avascript.0 2021-01-24 12:26:06.169 info (1616) Stop script script.js.001_VIS.Tabellen.Tabelle_-_Lampen javascript.0 2021-01-24 12:25:31.761 error (1616) at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 12:25:31.761 error (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 12:25:31.761 error (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 12:25:31.760 error (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 12:25:31.757 error (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 12:25:31.757 error (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 12:25:31.757 error (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:23:11) javascript.0 2021-01-24 12:25:31.757 error (1616) at tabelleMit3Werten (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:337:6) javascript.0 2021-01-24 12:25:31.756 error (1616) at writeHTML (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:325:7) javascript.0 2021-01-24 12:25:31.756 error (1616) at tabelleFinish (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:431:51) javascript.0 2021-01-24 12:25:31.756 error (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: ReferenceError: dpVIS is not defined javascript.0 2021-01-24 12:25:31.752 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: [[null,null,null],[null,null,null],[null,null,null],[null,null,null],[null,null,null],[null,null,null]] javascript.0 2021-01-24 12:25:31.751 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 12:25:31.751 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 12:25:31.751 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 12:25:31.751 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 12:25:31.750 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 12:25:31.750 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 12:25:31.750 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 12:25:31.749 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 12:25:31.748 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 12:25:31.748 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: undefined javascript.0 2021-01-24 12:25:31.748 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 12:25:31.747 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 12:25:31.747 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 12:25:31.747 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 12:25:31.747 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 12:25:31.746 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 12:25:31.746 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 12:25:31.746 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 12:25:31.744 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 12:25:31.744 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: undefined javascript.0 2021-01-24 12:25:31.744 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 12:25:31.744 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 12:25:31.743 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 12:25:31.743 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 12:25:31.743 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 12:25:31.742 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 12:25:31.742 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 12:25:31.742 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 12:25:31.740 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 12:25:31.740 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: undefined javascript.0 2021-01-24 12:25:31.740 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 12:25:31.740 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 12:25:31.739 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 12:25:31.739 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 12:25:31.739 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 12:25:31.739 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 12:25:31.738 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 12:25:31.738 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 12:25:31.736 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 12:25:31.736 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: undefined javascript.0 2021-01-24 12:25:31.735 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 12:25:31.735 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 12:25:31.734 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 12:25:31.734 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 12:25:31.733 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 12:25:31.733 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 12:25:31.733 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 12:25:31.733 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 12:25:31.731 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 12:25:31.731 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: undefined javascript.0 2021-01-24 12:25:31.730 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 12:25:31.730 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 12:25:31.730 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 12:25:31.730 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 12:25:31.729 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 12:25:31.728 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 12:25:31.727 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 12:25:31.727 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 12:25:31.725 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 12:25:31.724 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: undefined javascript.0 2021-01-24 12:25:31.724 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: 6 javascript.0 2021-01-24 12:25:31.723 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: geschaltet javascript.0 2021-01-24 12:25:18.720 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: registered 0 subscriptions and 0 schedules javascript.0 2021-01-24 12:25:18.714 info (1616) Start javascript script.js.001_VIS.Tabellen.Tabelle_-_Lampen
-
@wszene der wert bzw. die variable dpVIS ist nicht definiert worden
das wird im inner-script gebraucht !!!
-
wo der getState warnung herkommt, weiß ich gerade nicht
javascript.0 2021-01-24 12:25:31.725 warn (1616) getState "undefined" not found (3)
probier mal diese änderung und zeige das log nochmal
-
@liv-in-sky
Ich habe es jetzt mal so umgebaut
Hier das Log
javascript.0 2021-01-24 14:45:43.734 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: [[null,null,null],[null,null,null],[null,null,null],[null,null,null],[null,null,null],[null,null,null]] javascript.0 2021-01-24 14:45:43.734 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.734 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.733 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.733 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.733 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.733 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.732 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.732 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 14:45:43.730 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.730 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: null javascript.0 2021-01-24 14:45:43.730 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.730 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.729 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.729 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.729 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.729 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.728 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.728 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:19:19) javascript.0 2021-01-24 14:45:43.721 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.720 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.720 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.720 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.720 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.719 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.719 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.719 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.718 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 14:45:43.717 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.717 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: null javascript.0 2021-01-24 14:45:43.716 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.716 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.716 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.716 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.715 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.715 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.715 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.714 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:19:19) javascript.0 2021-01-24 14:45:43.713 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.713 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.712 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.712 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.712 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.712 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.712 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.711 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.711 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 14:45:43.709 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.709 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: null javascript.0 2021-01-24 14:45:43.709 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.709 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.708 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.708 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.708 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.708 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.708 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.707 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:19:19) javascript.0 2021-01-24 14:45:43.706 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.705 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.705 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.705 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.705 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.704 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.704 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.704 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.703 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 14:45:43.702 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.702 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: null javascript.0 2021-01-24 14:45:43.701 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.701 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.701 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.701 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.700 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.700 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.700 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.700 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:19:19) javascript.0 2021-01-24 14:45:43.698 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.697 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.697 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.697 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.697 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.696 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.696 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.696 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.696 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 14:45:43.694 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.694 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: null javascript.0 2021-01-24 14:45:43.694 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.693 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.693 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.693 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.693 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.692 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.692 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.692 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:19:19) javascript.0 2021-01-24 14:45:43.688 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.688 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.688 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.688 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.687 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.687 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.687 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.686 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.686 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:20:64) javascript.0 2021-01-24 14:45:43.685 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.685 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: null javascript.0 2021-01-24 14:45:43.684 warn (1616) at processImmediate (internal/timers.js:461:21) javascript.0 2021-01-24 14:45:43.684 warn (1616) at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:234:41) javascript.0 2021-01-24 14:45:43.684 warn (1616) at change (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5346:46) javascript.0 2021-01-24 14:45:43.684 warn (1616) at Array.forEach (<anonymous>) javascript.0 2021-01-24 14:45:43.684 warn (1616) at /opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:5352:41 javascript.0 2021-01-24 14:45:43.684 warn (1616) at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:487:29) javascript.0 2021-01-24 14:45:43.683 warn (1616) at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1071:38) javascript.0 2021-01-24 14:45:43.683 warn (1616) at Object.<anonymous> (script.js.001_VIS.Tabellen.Tabelle_-_Lampen:19:19) javascript.0 2021-01-24 14:45:43.681 warn (1616) getState "undefined" not found (3) javascript.0 2021-01-24 14:45:43.681 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: 6 javascript.0 2021-01-24 14:45:43.680 info (1616) script.js.001_VIS.Tabellen.Tabelle_-_Lampen: geschaltet
-
@wszene zähle dpVIs ... - das ist völlig verwirrend
ich brauche dpVIS mit einer datenpunkt id , um das die tabelle darin zu speichern - sonst nix - in der schleife hat das nix zu suchen
-
also - hierm al das ergebnis - du kannst nun einstellen, ob nur bild oder schaltbares bild
im beispiel - obere lanmpe ist nicht schaltbar
hier musst du deine sachen im bezug zu den bildern eintragen
die gelben pfeile musst du dir kopieren - dort wurde geändert
-
hier mal die settings für die tabelle für deine vis
- weite(breite) der tabelle - damit sie immer gleich breit wird
- überschriften - hintergrundfarbe
- schriftgröße für hochauflösende