NEWS
[gelöst] Fehlermeldung bei Blockly Script
-
Hallo zusammen
hab mal wieder ne Frage. Ich habe dieses Blockly von Knuddel verwendet
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="schedule" id="S},%B!W7FjU|w+;Bi3u/" x="-662" y="-338"><field name="SCHEDULE">*/1 * * * *</field> <statement name="STATEMENT"><block type="comment" id="x#L9[%LY|Yrx`l)DWm|n"><field name="COMMENT">Uptime Master</field> <next><block type="variables_set" id="c;vRX]+MD3w~Fa4u0_oA"><field name="VAR">master_uptime_gesamt</field> <value name="VALUE"><block type="get_value" id="#=Ud:?8|Bc0R?oq(}{Vz"><field name="ATTR">val</field> <field name="OID">rpi2.0.uptime.uptime</field></block></value> <next><block type="variables_set" id=":+s25++7%;E1ZPSp_bNH"><field name="VAR">master_uptime_tage</field> <value name="VALUE"><block type="math_round" id="V_n,Z?87Yzo#1@Gk)B_|"><field name="OP">ROUNDDOWN</field> <value name="NUM"><shadow type="math_number" id="w)m[6-o#SFO|})aX;^Sn"><field name="NUM">3.1</field></shadow> <block type="math_arithmetic" id="#vPh0eWHzHbmc0{P(xGl"><field name="OP">DIVIDE</field> <value name="A"><shadow type="math_number" id="bahI:FVxEi%`f[PVR#?r"><field name="NUM">1</field></shadow> <block type="get_value" id="[]}_AgMQs2tS-b3SOG6:"><field name="ATTR">val</field> <field name="OID">rpi2.0.uptime.uptime</field></block></value> <value name="B"><shadow type="math_number" id="cBfkqtHp/(na=hF*Xs;{"><field name="NUM">86400</field></shadow></value></block></value></block></value> <next><block type="variables_set" id="xf#[c;spkxV;?_=;2t4]"><field name="VAR">master_uptime_zw</field> <value name="VALUE"><block type="math_arithmetic" id="g85j0([NmkejbN]_LFQ;"><field name="OP">MINUS</field> <value name="A"><shadow type="math_number" id="}H73ztKqU,dkWZ,F,i*R"><field name="NUM">1</field></shadow> <block type="variables_get" id="-VqLq_~+I^S2}L3!#xzI"><field name="VAR">master_uptime_gesamt</field></block></value> <value name="B"><shadow type="math_number" id="P5_|Dw(]!C*d/0LDlJX["><field name="NUM">86400</field></shadow> <block type="math_arithmetic" id="8KQWiO_0+1E7KPBL`BnK"><field name="OP">MULTIPLY</field> <value name="A"><shadow type="math_number" id=",I@|[8va{Mw(V#ASt9{M"><field name="NUM">1</field></shadow> <block type="variables_get" id="HYJ?9+`q-3)^O0iZJD-["><field name="VAR">master_uptime_tage</field></block></value> <value name="B"><shadow type="math_number" id="@(,y`FuDg+P*5o[794U6"><field name="NUM">86400</field></shadow></value></block></value></block></value> <next><block type="variables_set" id="eAJhBVv3}N8LUFKRAWGZ"><field name="VAR">master_uptime_std</field> <value name="VALUE"><block type="math_round" id="/RbEc%QP!6/M9EimZe]N"><field name="OP">ROUNDDOWN</field> <value name="NUM"><shadow type="math_number" id="w)m[6-o#SFO|})aX;^Sn"><field name="NUM">0</field></shadow> <block type="math_arithmetic" id="BFHl3E~ysn|,xUa5Vb8#"><field name="OP">DIVIDE</field> <value name="A"><shadow type="math_number" id="bahI:FVxEi%`f[PVR#?r"><field name="NUM">1</field></shadow> <block type="variables_get" id="7=o8aPA{`ENu)Ede_%B@"><field name="VAR">master_uptime_zw</field></block></value> <value name="B"><shadow type="math_number" id="6k]Nz4u+nuL.OON8Z+?j"><field name="NUM">3600</field></shadow></value></block></value></block></value> <next><block type="variables_set" id=".+IdB1+tIgC(cXj^#9gr"><field name="VAR">master_uptime_zw2</field> <value name="VALUE"><block type="math_arithmetic" id="Tb1}ci*dwi]?N(+VZS0*"><field name="OP">MINUS</field> <value name="A"><shadow type="math_number" id="}H73ztKqU,dkWZ,F,i*R"><field name="NUM">1</field></shadow> <block type="variables_get" id="pl@KE2~vpoFkF~SSzk%%"><field name="VAR">master_uptime_zw</field></block></value> <value name="B"><shadow type="math_number" id="P5_|Dw(]!C*d/0LDlJX["><field name="NUM">0</field></shadow> <block type="math_arithmetic" id="pIkaJRUH0EN9i5BFh|Ou"><field name="OP">MULTIPLY</field> <value name="A"><shadow type="math_number" id=",I@|[8va{Mw(V#ASt9{M"><field name="NUM">1</field></shadow> <block type="variables_get" id="^B.o=TuQbG!2~GNM/e-d"><field name="VAR">master_uptime_std</field></block></value> <value name="B"><shadow type="math_number" id="jHJ,OA,V7xyG1^Be^jW."><field name="NUM">3600</field></shadow></value></block></value></block></value> <next><block type="variables_set" id="6GHul#I2g`ZkYC1e~C{1"><field name="VAR">master_uptime_min</field> <value name="VALUE"><block type="math_round" id="I%[WOX~v6)8yc}K1_|nS"><field name="OP">ROUNDDOWN</field> <value name="NUM"><shadow type="math_number" id="w)m[6-o#SFO|})aX;^Sn"><field name="NUM">3.1</field></shadow> <block type="math_arithmetic" id="kqIicz=;J=5v)|+`2Vs)"><field name="OP">DIVIDE</field> <value name="A"><shadow type="math_number" id="}H73ztKqU,dkWZ,F,i*R"><field name="NUM">1</field></shadow> <block type="variables_get" id="/E]PwFOERrG;mY.@U?fN"><field name="VAR">master_uptime_zw2</field></block></value> <value name="B"><shadow type="math_number" id=":5Jjoq2?fnn.3?nX.qu5"><field name="NUM">60</field></shadow></value></block></value></block></value> <next><block type="update" id="(g+SDiV]@I6UoHl8jE.i"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.master_uptime</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text_join" id="|gSv+WZHIMcsYv;iY}y5"><mutation items="6"></mutation> <value name="ADD0"><block type="variables_get" id=";lH~jePSwnZZ`B9Uf9#8"><field name="VAR">master_uptime_tage</field></block></value> <value name="ADD1"><block type="text" id="_N5MntuQ3.OAGrQ,UEnV"><field name="TEXT">Tag(e),</field></block></value> <value name="ADD2"><block type="variables_get" id=".4sH_?4VFhqf^8u!M7F9"><field name="VAR">master_uptime_std</field></block></value> <value name="ADD3"><block type="text" id="V0sqG%|UzZe:%=_GTSO%"><field name="TEXT">Stunde(n),</field></block></value> <value name="ADD4"><block type="variables_get" id="~~tdGbeXHF,RXc4-gV[i"><field name="VAR">master_uptime_min</field></block></value> <value name="ADD5"><block type="text" id="1oy#IR@#^HupeI(++C48"><field name="TEXT"> Minute(n)</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>und bekomme jetzt diese Warnung
javascript.0 2019-03-29 22:18:00.007 warn at Timer.listOnTimeout (timers.js:290:5)
javascript.0 2019-03-29 22:18:00.007 warn at tryOnTimeout (timers.js:323:5)
javascript.0 2019-03-29 22:18:00.007 warn at ontimeout (timers.js:498:11)
javascript.0 2019-03-29 22:18:00.007 warn at Timeout._onTimeout (/opt/iobroker/node_modules/node-schedule/lib/schedule.js:501:7)
javascript.0 2019-03-29 22:18:00.006 warn at /opt/iobroker/node_modules/node-schedule/lib/schedule.js:543:11
javascript.0 2019-03-29 22:18:00.006 warn at Job.invoke (/opt/iobroker/node_modules/node-schedule/lib/schedule.js:173:10)
javascript.0 2019-03-29 22:18:00.006 warn at Job.nodeSchedule.scheduleJob [as job] (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1181:34)
javascript.0 2019-03-29 22:18:00.006 warn at Object.<anonymous> (script.js.umrechnen.uptime_Proxmox:12:3)
javascript.0 2019-03-29 22:18:00.006 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
javascript.0 2019-03-29 22:18:00.006 warn Wrong type of javascript.0.scriptEnabled.umrechnen.uptime_Proxmox: "string". Please fix, while deprecated and will not work in next versions.kann mir jemand sagen an was das liegt.
Grüße Andre
-
Hallo zusammen
hab mal wieder ne Frage. Ich habe dieses Blockly von Knuddel verwendet
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="schedule" id="S},%B!W7FjU|w+;Bi3u/" x="-662" y="-338"><field name="SCHEDULE">*/1 * * * *</field> <statement name="STATEMENT"><block type="comment" id="x#L9[%LY|Yrx`l)DWm|n"><field name="COMMENT">Uptime Master</field> <next><block type="variables_set" id="c;vRX]+MD3w~Fa4u0_oA"><field name="VAR">master_uptime_gesamt</field> <value name="VALUE"><block type="get_value" id="#=Ud:?8|Bc0R?oq(}{Vz"><field name="ATTR">val</field> <field name="OID">rpi2.0.uptime.uptime</field></block></value> <next><block type="variables_set" id=":+s25++7%;E1ZPSp_bNH"><field name="VAR">master_uptime_tage</field> <value name="VALUE"><block type="math_round" id="V_n,Z?87Yzo#1@Gk)B_|"><field name="OP">ROUNDDOWN</field> <value name="NUM"><shadow type="math_number" id="w)m[6-o#SFO|})aX;^Sn"><field name="NUM">3.1</field></shadow> <block type="math_arithmetic" id="#vPh0eWHzHbmc0{P(xGl"><field name="OP">DIVIDE</field> <value name="A"><shadow type="math_number" id="bahI:FVxEi%`f[PVR#?r"><field name="NUM">1</field></shadow> <block type="get_value" id="[]}_AgMQs2tS-b3SOG6:"><field name="ATTR">val</field> <field name="OID">rpi2.0.uptime.uptime</field></block></value> <value name="B"><shadow type="math_number" id="cBfkqtHp/(na=hF*Xs;{"><field name="NUM">86400</field></shadow></value></block></value></block></value> <next><block type="variables_set" id="xf#[c;spkxV;?_=;2t4]"><field name="VAR">master_uptime_zw</field> <value name="VALUE"><block type="math_arithmetic" id="g85j0([NmkejbN]_LFQ;"><field name="OP">MINUS</field> <value name="A"><shadow type="math_number" id="}H73ztKqU,dkWZ,F,i*R"><field name="NUM">1</field></shadow> <block type="variables_get" id="-VqLq_~+I^S2}L3!#xzI"><field name="VAR">master_uptime_gesamt</field></block></value> <value name="B"><shadow type="math_number" id="P5_|Dw(]!C*d/0LDlJX["><field name="NUM">86400</field></shadow> <block type="math_arithmetic" id="8KQWiO_0+1E7KPBL`BnK"><field name="OP">MULTIPLY</field> <value name="A"><shadow type="math_number" id=",I@|[8va{Mw(V#ASt9{M"><field name="NUM">1</field></shadow> <block type="variables_get" id="HYJ?9+`q-3)^O0iZJD-["><field name="VAR">master_uptime_tage</field></block></value> <value name="B"><shadow type="math_number" id="@(,y`FuDg+P*5o[794U6"><field name="NUM">86400</field></shadow></value></block></value></block></value> <next><block type="variables_set" id="eAJhBVv3}N8LUFKRAWGZ"><field name="VAR">master_uptime_std</field> <value name="VALUE"><block type="math_round" id="/RbEc%QP!6/M9EimZe]N"><field name="OP">ROUNDDOWN</field> <value name="NUM"><shadow type="math_number" id="w)m[6-o#SFO|})aX;^Sn"><field name="NUM">0</field></shadow> <block type="math_arithmetic" id="BFHl3E~ysn|,xUa5Vb8#"><field name="OP">DIVIDE</field> <value name="A"><shadow type="math_number" id="bahI:FVxEi%`f[PVR#?r"><field name="NUM">1</field></shadow> <block type="variables_get" id="7=o8aPA{`ENu)Ede_%B@"><field name="VAR">master_uptime_zw</field></block></value> <value name="B"><shadow type="math_number" id="6k]Nz4u+nuL.OON8Z+?j"><field name="NUM">3600</field></shadow></value></block></value></block></value> <next><block type="variables_set" id=".+IdB1+tIgC(cXj^#9gr"><field name="VAR">master_uptime_zw2</field> <value name="VALUE"><block type="math_arithmetic" id="Tb1}ci*dwi]?N(+VZS0*"><field name="OP">MINUS</field> <value name="A"><shadow type="math_number" id="}H73ztKqU,dkWZ,F,i*R"><field name="NUM">1</field></shadow> <block type="variables_get" id="pl@KE2~vpoFkF~SSzk%%"><field name="VAR">master_uptime_zw</field></block></value> <value name="B"><shadow type="math_number" id="P5_|Dw(]!C*d/0LDlJX["><field name="NUM">0</field></shadow> <block type="math_arithmetic" id="pIkaJRUH0EN9i5BFh|Ou"><field name="OP">MULTIPLY</field> <value name="A"><shadow type="math_number" id=",I@|[8va{Mw(V#ASt9{M"><field name="NUM">1</field></shadow> <block type="variables_get" id="^B.o=TuQbG!2~GNM/e-d"><field name="VAR">master_uptime_std</field></block></value> <value name="B"><shadow type="math_number" id="jHJ,OA,V7xyG1^Be^jW."><field name="NUM">3600</field></shadow></value></block></value></block></value> <next><block type="variables_set" id="6GHul#I2g`ZkYC1e~C{1"><field name="VAR">master_uptime_min</field> <value name="VALUE"><block type="math_round" id="I%[WOX~v6)8yc}K1_|nS"><field name="OP">ROUNDDOWN</field> <value name="NUM"><shadow type="math_number" id="w)m[6-o#SFO|})aX;^Sn"><field name="NUM">3.1</field></shadow> <block type="math_arithmetic" id="kqIicz=;J=5v)|+`2Vs)"><field name="OP">DIVIDE</field> <value name="A"><shadow type="math_number" id="}H73ztKqU,dkWZ,F,i*R"><field name="NUM">1</field></shadow> <block type="variables_get" id="/E]PwFOERrG;mY.@U?fN"><field name="VAR">master_uptime_zw2</field></block></value> <value name="B"><shadow type="math_number" id=":5Jjoq2?fnn.3?nX.qu5"><field name="NUM">60</field></shadow></value></block></value></block></value> <next><block type="update" id="(g+SDiV]@I6UoHl8jE.i"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.master_uptime</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text_join" id="|gSv+WZHIMcsYv;iY}y5"><mutation items="6"></mutation> <value name="ADD0"><block type="variables_get" id=";lH~jePSwnZZ`B9Uf9#8"><field name="VAR">master_uptime_tage</field></block></value> <value name="ADD1"><block type="text" id="_N5MntuQ3.OAGrQ,UEnV"><field name="TEXT">Tag(e),</field></block></value> <value name="ADD2"><block type="variables_get" id=".4sH_?4VFhqf^8u!M7F9"><field name="VAR">master_uptime_std</field></block></value> <value name="ADD3"><block type="text" id="V0sqG%|UzZe:%=_GTSO%"><field name="TEXT">Stunde(n),</field></block></value> <value name="ADD4"><block type="variables_get" id="~~tdGbeXHF,RXc4-gV[i"><field name="VAR">master_uptime_min</field></block></value> <value name="ADD5"><block type="text" id="1oy#IR@#^HupeI(++C48"><field name="TEXT"> Minute(n)</field></block></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>und bekomme jetzt diese Warnung
javascript.0 2019-03-29 22:18:00.007 warn at Timer.listOnTimeout (timers.js:290:5)
javascript.0 2019-03-29 22:18:00.007 warn at tryOnTimeout (timers.js:323:5)
javascript.0 2019-03-29 22:18:00.007 warn at ontimeout (timers.js:498:11)
javascript.0 2019-03-29 22:18:00.007 warn at Timeout._onTimeout (/opt/iobroker/node_modules/node-schedule/lib/schedule.js:501:7)
javascript.0 2019-03-29 22:18:00.006 warn at /opt/iobroker/node_modules/node-schedule/lib/schedule.js:543:11
javascript.0 2019-03-29 22:18:00.006 warn at Job.invoke (/opt/iobroker/node_modules/node-schedule/lib/schedule.js:173:10)
javascript.0 2019-03-29 22:18:00.006 warn at Job.nodeSchedule.scheduleJob [as job] (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1181:34)
javascript.0 2019-03-29 22:18:00.006 warn at Object.<anonymous> (script.js.umrechnen.uptime_Proxmox:12:3)
javascript.0 2019-03-29 22:18:00.006 warn at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1258:20)
javascript.0 2019-03-29 22:18:00.006 warn Wrong type of javascript.0.scriptEnabled.umrechnen.uptime_Proxmox: "string". Please fix, while deprecated and will not work in next versions.kann mir jemand sagen an was das liegt.
Grüße Andre
-
jetzt hab ich diese Fehlermeldung
script.js.umrechnen.uptime_Proxmox: setForeignState(id=javascript.0.scriptEnabled.umrechnen.uptime_Proxmox, state={"val":"13T 9 Std 6 Min","ack":true}) - was not executed, while debug mode is active
-
@Andre-R sagte in Fehlermeldung bei Blockly Script:
was not executed, while debug mode is active
vielen vielen Dank hat funktioniert
