Hallo Leute,
ich habe mal geupdatet, nun auf 7.8 (downgrad komme ich nicht weiter als 7.5).
Habe ein Blockly erzeugt, darin wird eine Log datei beschrieben, wie immer in all meinen Blocklys.
dann pollt es mir die Logdatei komplett zu.
Eine Zeitsteuerung von 1Minute und dass sich der Wert der abgefragt wird, auch nur jede Sekunde ändert, ist ihm völlig egal, es pollt wie wild in die Datei... ??
selbst der Adapter schreit mit mehr als 1000 Einträge pro Minute, ich soll den Code checken...
(was im Blockly berechnet wird, sei mal nicht die Frage hier )
Tja, what happend??
hab den Test gemacht, den Logbuch Aufruf in ein neues Blockly rein, per Sekunde einen Eintrag schreiben, funktioniert. Wo hat er nun ein Problem mit diesem Blockly?
Spoiler
<xml xmlns="https://developers.google.com/blockly/xml ">
<variables>
<variable id="J:yxl|pwa1-z)3RkGte">datum</variable> <variable id="vnxy-zAYQ!WmR=
GMR{K">txt</variable>
<variable id="#xITsfGI+-@|oOg]q-">minCurrentGrid</variable> <variable id="_nYG=b]oPnQuV]_5(!Wl">maxCurrent40A</variable> </variables> <block type="comment" id="szY96~1Y45x0Tz0j3id(" x="-1237" y="-187"> <field name="COMMENT">----> LOG</field> </block> <block type="procedures_defcustomnoreturn" id="O;Py{#|AP1i%q3vFz*_8" x="-1238" y="-138"> <mutation statements="false"> <arg name="datum" varid="
J:yxl|pwa1-z)3RkGte"></arg>
<arg name="txt" varid="vnxy-zAYQ!WmR=GMR{K"></arg> </mutation> <field name="NAME">Logfile</field> <field name="SCRIPT">aWYgKGdldFN0YXRlKCcwX3VzZXJkYXRhLjAuVmljdHJvbi5EZWJ1Z0FrdGl2JykudmFsKSB7CiAgcmVxdWlyZSgnZnMnKS5hcHBlbmRGaWxlU3luYygnL29wdC9pb2Jyb2tlci9sb2cvJyArIGRhdHVtICsgJyAtIHZpY3Ryb25fQkFULmxvZycsIGZvcm1hdERhdGUobmV3IERhdGUoKSwgImhoOm1tOnNzIikgKyAiIFx0IiArIHR4dCArICJcbiIpO30=</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> </block> <block type="comment" id="v/OAP)rrC-1Hj9$7M)*_" x="-1238" y="-88"> <field name="COMMENT">Grid----------------------------------------------</field> <next> <block type="schedule" id="QTV/CuZEAyvi/R{/7?.w"> <field name="SCHEDULE">* * * * *</field> <statement name="STATEMENT"> <block type="on_ext" id="(M?lpznC[8
S=nq3GIG"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="cCgPR$%^85m{:B~ZH8(+"> <field name="oid">mqtt.2.N.c0619ab4bea6.grid.41.Ac.Power</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="/2*}Culw^H[AnG[V3g?8"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="b]:~UVPMtsPt[==dwIHk"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id=":|
|0wuE|x@1a6Vv74;3">
<field name="ATTR">val</field>
<field name="OID">mqtt.2.N.c0619ab4bea6.grid.41.Ac.Power</field>
</block>
</value>
<value name="B">
<block type="math_number" id=")-!I@qbrbh]hZMj%qv="> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="~+]d4QZ18dJeuG2P$*59"> <field name="VAR" id="#xITsfGI+-@|oOg]q-_
">minCurrentGrid</field>
<value name="VALUE">
<block type="math_number" id="4qOxKNC,Ire6hCGcyJf=">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="controls_if" id="WX()i^x1M{=nCwcc~mZ}">
<value name="IF0">
<block type="logic_compare" id="u_R])mQ}Em4h9vjUA!z|">
<field name="OP">NEQ</field>
<value name="A">
<block type="get_value" id="3x05pA@=q(yNemmbxkSH">
<field name="ATTR">val</field>
<field name="OID">mqtt.2.N.c0619ab4bea6.grid.41.Ac.L1.Current</field>
</block>
</value>
<value name="B">
<block type="math_number" id="F0ekl.O:$0{qX2@K;yBY">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="E)htJ0XZ2eu4OKWRHbB"> <field name="VAR" id="#xITsfGI+-@|oOg]q-_
">minCurrentGrid</field>
<value name="VALUE">
<block type="get_value" id="nLAL1jda%mqt]loFr^9O">
<field name="ATTR">val</field>
<field name="OID">mqtt.2.N.c0619ab4bea6.grid.41.Ac.L1.Current</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="j,QNpUXOpJ~qje2kGx_"> <value name="IF0"> <block type="logic_compare" id="mg9Nk[VMu%)5M4k:{OEG"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="X@6viV;|lc8Ki@pTE6f$"> <field name="ATTR">val</field> <field name="OID">mqtt.2.N.c0619ab4bea6.grid.41.Ac.L2.Current</field> </block> </value> <value name="B"> <block type="variables_get" id="D(ptEU_%qF!B6+bDFZ0S"> <field name="VAR" id="#xITsfGI+-@|oOg]q-_
">minCurrentGrid</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="2wBS-F;*4^Ky-SjSJUt"> <field name="VAR" id="#xITsfGI+-@|oOg]q-_
">minCurrentGrid</field>
<value name="VALUE">
<block type="get_value" id="Htd$yKBHl!=@e8%)VDw?">
<field name="ATTR">val</field>
<field name="OID">mqtt.2.N.c0619ab4bea6.grid.41.Ac.L2.Current</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="^EXX}~64Wv@uS?uFdid"> <value name="IF0"> <block type="logic_compare" id="ZRF^6H5Tacbz3OBBW~ob"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="f)=u:SCSc]_q/DhZoxl*"> <field name="ATTR">val</field> <field name="OID">mqtt.2.N.c0619ab4bea6.grid.41.Ac.L3.Current</field> </block> </value> <value name="B"> <block type="variables_get" id="3;G[[$F{mIHBr-lme8!4"> <field name="VAR" id="#xITsfGI+-@|oOg]q-_
">minCurrentGrid</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="4mSsNxxu%0d$XPI.wOz"> <field name="VAR" id="#xITsfGI+-@|oOg]q-_
">minCurrentGrid</field>
<value name="VALUE">
<block type="variables_get" id="+6]4c!fl^6@H%!~sCM~L">
<field name="VAR" id="#xITsfGI+-@|oOg]q-">minCurrentGrid</field> </block> </value> </block> </statement> <next> <block type="control" id="lD*t01;|+d|t*tOH=ZcW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Victron.Grid_Feed_Current</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="5E_8#_G8JRxaGFvYaBCh"> <field name="VAR" id="#xITsfGI+-@|oOg]q-_
">minCurrentGrid</field>
</block>
</value>
<next>
<block type="procedures_callcustomnoreturn" id="h@s8/p,#Nti1$1*%wXP@">
<mutation name="Logfile">
<arg name="datum"></arg>
<arg name="txt"></arg>
</mutation>
<value name="ARG0">
<block type="time_get" id="XsvO(#D9F2EhFkKd~!B">
<mutation xmlns="http://www.w3.org/1999/xhtml " format="false" language="false"></mutation>
<field name="OPTION">YYYY.MM.DD</field>
</block>
</value>
<value name="ARG1">
<block type="text_join" id="b~NW#$:66[=b``J#S)p#">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="V8X!4FL6G!FU)l4gX.y;">
<field name="TEXT">EM24-Grid / Grid_Feed_Current: </field>
</block>
</value>
<value name="ADD1">
<block type="get_value" id="L-#WxAH9H^e[Ug#hKBKQ">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Victron.Grid_Feed_Current</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="control" id="H^(8!B~+Q~gfdpt[[;;"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Victron.Grid_Feed_Current</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="+QP.dT3_EerlA!#$Ojt4"> <field name="NUM">0</field> </block> </value> <next> <block type="procedures_callcustomnoreturn" id=",EZS_tNpx=2*H~@XfJBL"> <mutation name="Logfile"> <arg name="datum"></arg> <arg name="txt"></arg> </mutation> <value name="ARG0"> <block type="time_get" id="wDKk-)u:(RW:t!R^,veI"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">YYYY.MM.DD</field> </block> </value> <value name="ARG1"> <block type="text" id="xy|MvfLL
nfN6XAP[lDK">
<field name="TEXT">EM24-Grid / no Feed to Grid</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
<block type="comment" id="^n;,(gLpaBY5qFGmsm:" x="-312" y="-88"> <field name="COMMENT">40A----------------------------------------------</field> <next> <block type="schedule" id="s-CVXmKrZ[yM|bTnwr}R"> <field name="SCHEDULE">* * * * *</field> <statement name="STATEMENT"> <block type="on_ext" id="
13)m{L-=LW7e:(PEK^U">
<mutation xmlns="http://www.w3.org/1999/xhtml " items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="_M?.c{z]lB4r}g;yz}b"> <field name="oid">mqtt.2.N.c0619ab4bea6.acload.40.Ac.Power</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="5D7m#,Ou!X,4u9C)1jSR"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="see*
wgmcA/RG{ShwfHa">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="DF4l6Em5eUdwqxKl3=^%">
<field name="ATTR">val</field>
<field name="OID">mqtt.2.N.c0619ab4bea6.acload.40.Ac.Power</field>
</block>
</value>
<value name="B">
<block type="math_number" id="#4}3MZK+E+BeFv*.^N8"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="%|NB,etoTy8~hiB1+En3"> <field name="VAR" id="_nYG=b]oPnQuV]_5(!Wl">maxCurrent40A</field> <value name="VALUE"> <block type="math_number" id="2]H_UD
AZrPhI^|YsT_P">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="controls_if" id="XcI]C%H7SUCG[L%GO90|">
<value name="IF0">
<block type="logic_compare" id="Z G%cY{G#E}|o8,|T0(w">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="Tg_EcKBOC
P,XuW-[n"> <field name="ATTR">val</field> <field name="OID">mqtt.2.N.c0619ab4bea6.acload.40.Ac.L1.Current</field> </block> </value> <value name="B"> <block type="math_number" id="/wAEq=ZtHBSoN|j:cb@i"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="a46[lQH47@m+Z7ZC0c3#"> <field name="VAR" id="_nYG=b]oPnQuV]_5(!Wl">maxCurrent40A</field> <value name="VALUE"> <block type="get_value" id="]K$nf+Lb}2;jEcyTaGfw"> <field name="ATTR">val</field> <field name="OID">mqtt.2.N.c0619ab4bea6.acload.40.Ac.L1.Current</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="2zgXd(Po~xy5$[HK
">
<value name="IF0">
<block type="logic_compare" id="b9IUvCu@6Ll?y4nAhj}k">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="071_Py{NV{G +|J5U^-@">
<field name="ATTR">val</field>
<field name="OID">mqtt.2.N.c0619ab4bea6.acload.40.Ac.L2.Current</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="gI4|4ESzvvQzS{SG0}R"> <field name="VAR" id="_nYG=b]oPnQuV]_5(!Wl">maxCurrent40A</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="5p~0H#p.Eq{1)Z_K%Nx)"> <field name="VAR" id="_nYG=b]oPnQuV]_5(!Wl">maxCurrent40A</field> <value name="VALUE"> <block type="get_value" id="sGcfB~jg8JGyGLtCv6M!"> <field name="ATTR">val</field> <field name="OID">mqtt.2.N.c0619ab4bea6.acload.40.Ac.L2.Current</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="T?_TK463vbyME#O
CXG">
<value name="IF0">
<block type="logic_compare" id="3w|3T@YLn~)_Gpc9qcMd">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="d,J]3g{^J-!G1_EM;G$"> <field name="ATTR">val</field> <field name="OID">mqtt.2.N.c0619ab4bea6.acload.40.Ac.L3.Current</field> </block> </value> <value name="B"> <block type="variables_get" id="!LJV,Hx=QH#4R9z1k{d|"> <field name="VAR" id="_nYG=b]oPnQuV]_5(!Wl">maxCurrent40A</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="O~d6%s,Lt^R7jxhM8?)$"> <field name="VAR" id="_nYG=b]oPnQuV]_5(!Wl">maxCurrent40A</field> <value name="VALUE"> <block type="get_value" id="#2xnQ@(q3)TOLFHW7;H{"> <field name="ATTR">val</field> <field name="OID">mqtt.2.N.c0619ab4bea6.acload.40.Ac.L3.Current</field> </block> </value> </block> </statement> <next> <block type="control" id="ysa9{^3GX;BM+.cl)fFy"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Victron.40A_Load_Current</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="rm=EZ}_:JH=|/u.O(Fhi"> <field name="VAR" id="_nYG=b]oPnQuV]_5(!Wl">maxCurrent40A</field> </block> </value> <next> <block type="procedures_callcustomnoreturn" id="iM|L]N?;}[ZbzBgd2HAK"> <mutation name="Logfile"> <arg name="datum"></arg> <arg name="txt"></arg> </mutation> <value name="ARG0"> <block type="time_get" id="ZeJu.hyH
:f^$@:-}p52">
<mutation xmlns="http://www.w3.org/1999/xhtml " format="false" language="false"></mutation>
<field name="OPTION">YYYY.MM.DD</field>
</block>
</value>
<value name="ARG1">
<block type="text_join" id="660+cRh ?lfucq}b~][]">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="text" id="@[j-(=OJB9:~BNf#We~(">
<field name="TEXT">EM24-40A / 40A_Load_Current: </field>
</block>
</value>
<value name="ADD1">
<block type="get_value" id="FsLJ7oZxL}3##^:L3_z|">
<field name="ATTR">val</field>
<field name="OID">javascript.0.Victron.40A_Load_Current</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="control" id="nVvGS^HoC+Cw,l! c*">
<mutation xmlns="http://www.w3.org/1999/xhtml " delay_input="false"></mutation>
<field name="OID">javascript.0.Victron.40A_Load_Current</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_number" id=",udl.9}YAwI9ThU_34j ">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="procedures_callcustomnoreturn" id="N_QD|5?/avzYw^O,m@]Q">
<mutation name="Logfile">
<arg name="datum"></arg>
<arg name="txt"></arg>
</mutation>
<value name="ARG0">
<block type="time_get" id="Zpfv7LMdlB64`X1MNiak">
<mutation xmlns="http://www.w3.org/1999/xhtml " format="false" language="false"></mutation>
<field name="OPTION">YYYY.MM.DD</field>
</block>
</value>
<value name="ARG1">
<block type="text" id="LO;uc4YvJ_4E83ZUruH^">
<field name="TEXT">EM24-40A / no Load</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</xml>