NEWS
[Vorlage]-Zeit herunterzählen bis GoogleTermin Eintritt
-
@hanan oh mann - das ist lange her - ich muss das erstmal wieder finden - ich schau mal
@liv-in-sky
Das Skript funktioniert, sehe ich im Debug output, doch können die beiden Daten nichtmehr in die jeweiligen Datenpunkte geschrieben werden. -
Hallo liv-in-sky
Seit dem Update auf v5.1.23 funktioniert das Schreiben in die Datenpunkte nicht mehr.
Hast Du mir eventuell einen Tipp?Datenpunkt für suchBegriff
{ "_id": "0_userdata.0.Variablen.Vis_Schalter.FCB_gegen", "type": "state", "common": { "name": "FCB_gegen", "role": "", "type": "string", "desc": "Manuell erzeugt", "def": "", "read": true, "write": true }, "native": {}, "acl": { "object": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator", "state": 1636 }, "from": "system.adapter.admin.0", "user": "system.user.admin", "ts": 1630321470550 }Datenpunkt für eventDatum
{ "type": "state", "common": { "read": true, "write": true, "name": "FC Basel", "type": "string", "def": "29.08.2021 16:30:00", "role": null }, "native": {}, "_id": "countdown.0.setup.FC Basel", "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" }, "from": "system.adapter.admin.0", "user": "system.user.admin", "ts": 1630320897926 }poste bitte das script - ich muss das importieren
-
poste bitte das script - ich muss das importieren
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="toV%#XU#+u-q8j}%lQO5">i</variable> <variable id="=laq7tvUO(q,%US6)j!u">j</variable> <variable id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</variable> <variable id="dl(4-B)s(J1z0(yKCcPM">eventDatum</variable> <variable id="xKL%f`?jvCh0ok?{c^rL">stunde</variable> <variable id="4_[a*D)c$D0Fg1e?^r-#">minute</variable> <variable type="timeout" id="timeout4">timeout4</variable> <variable type="cron" id="datumSchedule">datumSchedule</variable> <variable type="timeout" id="timeout2">timeout2</variable> </variables> <block type="procedures_defcustomreturn" id=".4jhH[;Isgq*k0Elo0tw" x="163" y="-712"> <mutation statements="false"> <arg name="i" varid="toV%#XU#+u-q8j}%lQO5"></arg> <arg name="j" varid="=laq7tvUO(q,%US6)j!u"></arg> </mutation> <field name="NAME">StringManipulation2</field> <field name="SCRIPT">DQoNCi8vbG9nKEpTT04uc3RyaW5naWZ5KGkpKQ0KbGV0IG15RXJnZWJuaXM9LTE7DQoNCmZvciAobGV0IGFhPTA7YWE8aS5sZW5ndGg7YWErKyl7DQogIC8vICBsb2coaVthYV0uZXZlbnQpDQogICAgaWYoaVthYV0uZXZlbnQuaW5jbHVkZXMoaikpIHsvKmxvZyhpW2FhXS5ldmVudCk7Ki9teUVyZ2VibmlzPWlbYWFdLmRhdGU7c3VjaEJlZ3JpZmY9aVthYV0uZXZlbnQ7YnJlYWt9DQogICANCn0NCg0KDQovL2xvZyhteUVyZ2VibmlzKQ0KcmV0dXJuIG15RXJnZWJuaXM7</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> </block> <block type="on_ext" id="qMd2zp!`jX-7i1:h/_G;" x="-287" y="-662"> <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="kr$tstAFs]QhLrKlNNoz"> <field name="oid">countdown.0.countdowns.FC Basel.reached</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="$g`#_r*#6^uxk0K|Q|Tt"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="]sXJg]u-cPjXadE5=hG1" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{!Rnk_(=3t]X67`petBQ"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="mTL6SIt(Aj~_.;mH3=xR"> <field name="ATTR">val</field> <field name="OID">countdown.0.countdowns.FC Basel.reached</field> </block> </value> <value name="B"> <block type="logic_boolean" id="-6I4]}?W]Xv:4E=2q#i4"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id=".cvPRJXKUfkd4*DBc@IW"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="2=ZjTG(T#VNZbpFE]Zzd"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="W6z=qlg;ult*~@$K!0ri"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="1Na}tzv^U0BpCL+?qud}"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="v_r~x-0mXdB:rHJSK.gK"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id="~0{ny@u#Q8+yY-AOe:):" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="d@K~FVUoKm}~Y~(k2ObJ" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="kloYtw+X3N4YvdcPj%uD"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="z-4a^}oAR]v6`qKT^Fni"> <field name="ATTR">val</field> <field name="OID">countdown.0.countdowns.FC Basel.reached</field> </block> </value> <value name="B"> <block type="logic_boolean" id="8HLnr6B`/LTuA9O:1[Rp"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="v_f#g|UNmN+B?=wm(01d"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=":1EY%O5Fw5mBph*IF]Xa"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="M#70+@ciE48e!Dm{RuJR"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="[Y1?|yhYN89xcT~o[Qf_"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Z.0oguVR%/AWy3TO]x!R"> <field name="ATTR">val</field> <field name="OID">countdown.0.countdowns.FC Basel.endDate</field> </block> </value> <value name="B"> <block type="text" id="v5KT*)FSpKtToJ7K:[@("> <field name="TEXT">Invalid date</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="oS*Vfh7N8]Hu9=*V%W6t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=")(C6tn!lD(v?|{_tYt;Q"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="4RjTm,E[-};p]-jxu-Ze"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">countdown.0.setup.FC Basel</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="+7kxy.u*8]]~r#ftU0/y"> <field name="TEXT"></field> </block> </value> <next> <block type="control" id="pEj1$]dz*s]leHe`YR#-"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_gegen</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">120</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="mj,l#mf/+X7x|D%x.Cf}"> <field name="TEXT"></field> </block> </value> <next> <block type="control" id="LVXT1Gs5f3a:Vw,C3f?a"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">120</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="^j1BUs13H$ii7XTRc@fy"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="schedule" id="/Z@?iF|RB-}UWrCdgO8l"> <field name="SCHEDULE">*/30 8-21 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="k$7XJl4TwwsH#F^BA]o!"> <value name="IF0"> <block type="logic_operation" id="#HG.._U-Ge,?pWE#S[:X" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="9f+@Q))b-J0s6E[!|u12"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="oqo=zB1v[Zu2]hs{Q0^|"> <field name="ATTR">val</field> <field name="OID">countdown.0.countdowns.FC Basel.reached</field> </block> </value> <value name="B"> <block type="logic_boolean" id="yElSM@?hiE5nlmJBWK1/"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id=";c.w*taLtS%5+thu.:Z6"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Ho.I%k;m:ufg)Fk3G;3]"> <field name="ATTR">val</field> <field name="OID">countdown.0.countdowns.FC Basel.endDate</field> </block> </value> <value name="B"> <block type="text" id="hH9![JK-i;6O5)JWf$hG"> <field name="TEXT">Invalid date</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Yn_03ee.K$F#2@`28d/M"> <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field> <value name="VALUE"> <block type="text" id="_%5/XWgSJPtR10.BNE?,"> <field name="TEXT">Basel</field> </block> </value> <next> <block type="variables_set" id="[xt^RuL~Y|TiS0Re2?+#"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> <value name="VALUE"> <block type="procedures_callcustomreturn" id="g?#2EB$^BkG@k+r=Bv|]"> <mutation name="StringManipulation2"> <arg name="i"></arg> <arg name="j"></arg> </mutation> <value name="ARG0"> <block type="get_value" id="?}[v,-QV{dczpnW|a=qd"> <field name="ATTR">val</field> <field name="OID">ical.2.data.table</field> </block> </value> <value name="ARG1"> <block type="variables_get" id="K2N=*^9uaX6H0}j]s5=*"> <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field> </block> </value> </block> </value> <next> <block type="controls_if" id="/zQZ~5M`WY$~j~oKdH5z"> <value name="IF0"> <block type="logic_compare" id="Z?!zm|/x#bu*Q7]r4,%4"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="F$bDE3t^u;v%QO/XXCr6"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <value name="B"> <block type="math_number" id="NcEs_VXKEGxjrfy]h3_["> <field name="NUM">-1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="GYrFB;7cr*:#h}.et0I~"> <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field> <value name="VALUE"> <block type="text_getSubstring" id="-/-p`iD:y_vgxgLa5+dk"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="6{Y.CU(rNYFSz7JKw6gr"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <value name="AT1"> <block type="math_number" id="Kq.B-X,mqp;-N#)X=Q+P"> <field name="NUM">12</field> </block> </value> <value name="AT2"> <block type="math_number" id="t@;2+]ISoUKt$e,;oqY3"> <field name="NUM">13</field> </block> </value> </block> </value> <next> <block type="variables_set" id="vT$zjFC6[`*5|+?^FUYb"> <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field> <value name="VALUE"> <block type="text_getSubstring" id="iKSGk7wasI6U%DoU%/~`"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="|d#VH=fnVXwAs^x#8Z{d"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <value name="AT1"> <block type="math_number" id="t#m1rz,4t`GTw`v1v_YC"> <field name="NUM">15</field> </block> </value> <value name="AT2"> <block type="math_number" id="Jz.]{TpX{G65p$t=zQmh"> <field name="NUM">16</field> </block> </value> </block> </value> <next> <block type="debug" id="dCLeDz(n@AvlXBiXCXw."> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="J42$[^PW@Pg,FMd8dx~}"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="t]8dz(9aJ4fbLd(JPv5p"> <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field> </block> </value> <next> <block type="debug" id="--O3@Ew@70yHrA|80r^B"> <field name="Severity">log</field> <value name="TEXT"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="vUqJQDqZYEP1~M}JHa]U"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="KmvnGC^%j/LAP~CH2O.="> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <next> <block type="debug" id="@D}2|sZ`qt0Jw`}~MHoZ"> <field name="Severity">log</field> <value name="TEXT"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="*!vl!IxcFiTS+=$S@iu*"> <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field> </block> </value> <next> <block type="debug" id="U/?(?G1iL7EA@=.oE`-#"> <field name="Severity">log</field> <value name="TEXT"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="^8:$QQ;mFMZx^e-Y%)S6"> <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field> </block> </value> <next> <block type="timeouts_settimeout" id=":8H?ff.:HrbvkOig[yJ["> <field name="NAME">timeout4</field> <field name="DELAY">3</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="controls_if" id="^-$KSt-IwY$gkV9zU9Pd"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="4o(6_1vMy*Fpu#As|X14"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="b-p,2nK}n*ke1Xi9wl`g"> <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field> </block> </value> <value name="B"> <block type="time_get" id="Bi$kG3R-!qDo[PIR;#wq"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">h</field> </block> </value> </block> </value> <statement name="DO0"> <block type="schedule_create" id="4Q,qI3!9]bUX-]NQvf-P"> <field name="NAME">datumSchedule</field> <value name="SCHEDULE"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_cron" id="?75wOi3|4ORjpXgU9SSn"> <field name="CRON">* * * * *</field> </shadow> <block type="text_join" id="A*!}}?bQe6=SR5,+#z@4"> <mutation items="6"></mutation> <value name="ADD0"> <block type="variables_get" id="hJOK@v*3*~(!S5cOgth;"> <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field> </block> </value> <value name="ADD1"> <block type="text" id="=cxyzRaBVprL+dg3GT/{"> <field name="TEXT"> </field> </block> </value> <value name="ADD2"> <block type="variables_get" id="*Tk9Oa|zErcUBQUUxT!U"> <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field> </block> </value> <value name="ADD3"> <block type="text" id="U=3Zo6aR4L#}:M|v)x:M"> <field name="TEXT"> *</field> </block> </value> <value name="ADD4"> <block type="text" id="U.G0Et9x?LX,p)Rxpg-e"> <field name="TEXT"> *</field> </block> </value> <value name="ADD5"> <block type="text" id="*[F-,a-H0aNhT2AJ6JmU"> <field name="TEXT"> *</field> </block> </value> </block> </value> <statement name="STATEMENT"> <block type="control" id="Mbk~Q;0UP@A8@^F[0Mou"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">countdown.0.setup.FC Basel</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="r?o81v9MAq6qgqme2YN?"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <next> <block type="control" id="Nz%11urUbBT2c_+6~vUK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_gegen</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id=":D;!al^ufSTpm5dn;HqV"> <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field> </block> </value> <next> <block type="timeouts_settimeout" id="ryfODWCYatf{RY8|7?C%"> <field name="NAME">timeout2</field> <field name="DELAY">10</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="schedule_clear" id="@}/RY2BL~F{L#mhFxsM="> <field name="NAME">datumSchedule</field> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="control" id="--.){w[29%H}dCX)QZre"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">countdown.0.setup.FC Basel</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="0qiq9Ta*z-gm~VXO{T]/"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <next> <block type="control" id="J@u{-ak8EhzU+j]BLUpd"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_gegen</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="=`c+9CFW^h@u=EyPJ34$"> <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </xml> -
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="toV%#XU#+u-q8j}%lQO5">i</variable> <variable id="=laq7tvUO(q,%US6)j!u">j</variable> <variable id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</variable> <variable id="dl(4-B)s(J1z0(yKCcPM">eventDatum</variable> <variable id="xKL%f`?jvCh0ok?{c^rL">stunde</variable> <variable id="4_[a*D)c$D0Fg1e?^r-#">minute</variable> <variable type="timeout" id="timeout4">timeout4</variable> <variable type="cron" id="datumSchedule">datumSchedule</variable> <variable type="timeout" id="timeout2">timeout2</variable> </variables> <block type="procedures_defcustomreturn" id=".4jhH[;Isgq*k0Elo0tw" x="163" y="-712"> <mutation statements="false"> <arg name="i" varid="toV%#XU#+u-q8j}%lQO5"></arg> <arg name="j" varid="=laq7tvUO(q,%US6)j!u"></arg> </mutation> <field name="NAME">StringManipulation2</field> <field name="SCRIPT">DQoNCi8vbG9nKEpTT04uc3RyaW5naWZ5KGkpKQ0KbGV0IG15RXJnZWJuaXM9LTE7DQoNCmZvciAobGV0IGFhPTA7YWE8aS5sZW5ndGg7YWErKyl7DQogIC8vICBsb2coaVthYV0uZXZlbnQpDQogICAgaWYoaVthYV0uZXZlbnQuaW5jbHVkZXMoaikpIHsvKmxvZyhpW2FhXS5ldmVudCk7Ki9teUVyZ2VibmlzPWlbYWFdLmRhdGU7c3VjaEJlZ3JpZmY9aVthYV0uZXZlbnQ7YnJlYWt9DQogICANCn0NCg0KDQovL2xvZyhteUVyZ2VibmlzKQ0KcmV0dXJuIG15RXJnZWJuaXM7</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> </block> <block type="on_ext" id="qMd2zp!`jX-7i1:h/_G;" x="-287" y="-662"> <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="kr$tstAFs]QhLrKlNNoz"> <field name="oid">countdown.0.countdowns.FC Basel.reached</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="$g`#_r*#6^uxk0K|Q|Tt"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="]sXJg]u-cPjXadE5=hG1" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{!Rnk_(=3t]X67`petBQ"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="mTL6SIt(Aj~_.;mH3=xR"> <field name="ATTR">val</field> <field name="OID">countdown.0.countdowns.FC Basel.reached</field> </block> </value> <value name="B"> <block type="logic_boolean" id="-6I4]}?W]Xv:4E=2q#i4"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id=".cvPRJXKUfkd4*DBc@IW"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="2=ZjTG(T#VNZbpFE]Zzd"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="W6z=qlg;ult*~@$K!0ri"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="1Na}tzv^U0BpCL+?qud}"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="v_r~x-0mXdB:rHJSK.gK"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id="~0{ny@u#Q8+yY-AOe:):" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="d@K~FVUoKm}~Y~(k2ObJ" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="kloYtw+X3N4YvdcPj%uD"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="z-4a^}oAR]v6`qKT^Fni"> <field name="ATTR">val</field> <field name="OID">countdown.0.countdowns.FC Basel.reached</field> </block> </value> <value name="B"> <block type="logic_boolean" id="8HLnr6B`/LTuA9O:1[Rp"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="v_f#g|UNmN+B?=wm(01d"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=":1EY%O5Fw5mBph*IF]Xa"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="M#70+@ciE48e!Dm{RuJR"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="[Y1?|yhYN89xcT~o[Qf_"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Z.0oguVR%/AWy3TO]x!R"> <field name="ATTR">val</field> <field name="OID">countdown.0.countdowns.FC Basel.endDate</field> </block> </value> <value name="B"> <block type="text" id="v5KT*)FSpKtToJ7K:[@("> <field name="TEXT">Invalid date</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="oS*Vfh7N8]Hu9=*V%W6t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=")(C6tn!lD(v?|{_tYt;Q"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="4RjTm,E[-};p]-jxu-Ze"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">countdown.0.setup.FC Basel</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="+7kxy.u*8]]~r#ftU0/y"> <field name="TEXT"></field> </block> </value> <next> <block type="control" id="pEj1$]dz*s]leHe`YR#-"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_gegen</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">120</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="text" id="mj,l#mf/+X7x|D%x.Cf}"> <field name="TEXT"></field> </block> </value> <next> <block type="control" id="LVXT1Gs5f3a:Vw,C3f?a"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_Matsch</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">120</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="^j1BUs13H$ii7XTRc@fy"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="schedule" id="/Z@?iF|RB-}UWrCdgO8l"> <field name="SCHEDULE">*/30 8-21 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="k$7XJl4TwwsH#F^BA]o!"> <value name="IF0"> <block type="logic_operation" id="#HG.._U-Ge,?pWE#S[:X" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="9f+@Q))b-J0s6E[!|u12"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="oqo=zB1v[Zu2]hs{Q0^|"> <field name="ATTR">val</field> <field name="OID">countdown.0.countdowns.FC Basel.reached</field> </block> </value> <value name="B"> <block type="logic_boolean" id="yElSM@?hiE5nlmJBWK1/"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id=";c.w*taLtS%5+thu.:Z6"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Ho.I%k;m:ufg)Fk3G;3]"> <field name="ATTR">val</field> <field name="OID">countdown.0.countdowns.FC Basel.endDate</field> </block> </value> <value name="B"> <block type="text" id="hH9![JK-i;6O5)JWf$hG"> <field name="TEXT">Invalid date</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Yn_03ee.K$F#2@`28d/M"> <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field> <value name="VALUE"> <block type="text" id="_%5/XWgSJPtR10.BNE?,"> <field name="TEXT">Basel</field> </block> </value> <next> <block type="variables_set" id="[xt^RuL~Y|TiS0Re2?+#"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> <value name="VALUE"> <block type="procedures_callcustomreturn" id="g?#2EB$^BkG@k+r=Bv|]"> <mutation name="StringManipulation2"> <arg name="i"></arg> <arg name="j"></arg> </mutation> <value name="ARG0"> <block type="get_value" id="?}[v,-QV{dczpnW|a=qd"> <field name="ATTR">val</field> <field name="OID">ical.2.data.table</field> </block> </value> <value name="ARG1"> <block type="variables_get" id="K2N=*^9uaX6H0}j]s5=*"> <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field> </block> </value> </block> </value> <next> <block type="controls_if" id="/zQZ~5M`WY$~j~oKdH5z"> <value name="IF0"> <block type="logic_compare" id="Z?!zm|/x#bu*Q7]r4,%4"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="F$bDE3t^u;v%QO/XXCr6"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <value name="B"> <block type="math_number" id="NcEs_VXKEGxjrfy]h3_["> <field name="NUM">-1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="GYrFB;7cr*:#h}.et0I~"> <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field> <value name="VALUE"> <block type="text_getSubstring" id="-/-p`iD:y_vgxgLa5+dk"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="6{Y.CU(rNYFSz7JKw6gr"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <value name="AT1"> <block type="math_number" id="Kq.B-X,mqp;-N#)X=Q+P"> <field name="NUM">12</field> </block> </value> <value name="AT2"> <block type="math_number" id="t@;2+]ISoUKt$e,;oqY3"> <field name="NUM">13</field> </block> </value> </block> </value> <next> <block type="variables_set" id="vT$zjFC6[`*5|+?^FUYb"> <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field> <value name="VALUE"> <block type="text_getSubstring" id="iKSGk7wasI6U%DoU%/~`"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="|d#VH=fnVXwAs^x#8Z{d"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <value name="AT1"> <block type="math_number" id="t#m1rz,4t`GTw`v1v_YC"> <field name="NUM">15</field> </block> </value> <value name="AT2"> <block type="math_number" id="Jz.]{TpX{G65p$t=zQmh"> <field name="NUM">16</field> </block> </value> </block> </value> <next> <block type="debug" id="dCLeDz(n@AvlXBiXCXw."> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="J42$[^PW@Pg,FMd8dx~}"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="t]8dz(9aJ4fbLd(JPv5p"> <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field> </block> </value> <next> <block type="debug" id="--O3@Ew@70yHrA|80r^B"> <field name="Severity">log</field> <value name="TEXT"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="vUqJQDqZYEP1~M}JHa]U"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="KmvnGC^%j/LAP~CH2O.="> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <next> <block type="debug" id="@D}2|sZ`qt0Jw`}~MHoZ"> <field name="Severity">log</field> <value name="TEXT"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="*!vl!IxcFiTS+=$S@iu*"> <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field> </block> </value> <next> <block type="debug" id="U/?(?G1iL7EA@=.oE`-#"> <field name="Severity">log</field> <value name="TEXT"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="^8:$QQ;mFMZx^e-Y%)S6"> <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field> </block> </value> <next> <block type="timeouts_settimeout" id=":8H?ff.:HrbvkOig[yJ["> <field name="NAME">timeout4</field> <field name="DELAY">3</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="controls_if" id="^-$KSt-IwY$gkV9zU9Pd"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="4o(6_1vMy*Fpu#As|X14"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="b-p,2nK}n*ke1Xi9wl`g"> <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field> </block> </value> <value name="B"> <block type="time_get" id="Bi$kG3R-!qDo[PIR;#wq"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">h</field> </block> </value> </block> </value> <statement name="DO0"> <block type="schedule_create" id="4Q,qI3!9]bUX-]NQvf-P"> <field name="NAME">datumSchedule</field> <value name="SCHEDULE"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="field_cron" id="?75wOi3|4ORjpXgU9SSn"> <field name="CRON">* * * * *</field> </shadow> <block type="text_join" id="A*!}}?bQe6=SR5,+#z@4"> <mutation items="6"></mutation> <value name="ADD0"> <block type="variables_get" id="hJOK@v*3*~(!S5cOgth;"> <field name="VAR" id="4_[a*D)c$D0Fg1e?^r-#">minute</field> </block> </value> <value name="ADD1"> <block type="text" id="=cxyzRaBVprL+dg3GT/{"> <field name="TEXT"> </field> </block> </value> <value name="ADD2"> <block type="variables_get" id="*Tk9Oa|zErcUBQUUxT!U"> <field name="VAR" id="xKL%f`?jvCh0ok?{c^rL">stunde</field> </block> </value> <value name="ADD3"> <block type="text" id="U=3Zo6aR4L#}:M|v)x:M"> <field name="TEXT"> *</field> </block> </value> <value name="ADD4"> <block type="text" id="U.G0Et9x?LX,p)Rxpg-e"> <field name="TEXT"> *</field> </block> </value> <value name="ADD5"> <block type="text" id="*[F-,a-H0aNhT2AJ6JmU"> <field name="TEXT"> *</field> </block> </value> </block> </value> <statement name="STATEMENT"> <block type="control" id="Mbk~Q;0UP@A8@^F[0Mou"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">countdown.0.setup.FC Basel</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="r?o81v9MAq6qgqme2YN?"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <next> <block type="control" id="Nz%11urUbBT2c_+6~vUK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_gegen</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id=":D;!al^ufSTpm5dn;HqV"> <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field> </block> </value> <next> <block type="timeouts_settimeout" id="ryfODWCYatf{RY8|7?C%"> <field name="NAME">timeout2</field> <field name="DELAY">10</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="schedule_clear" id="@}/RY2BL~F{L#mhFxsM="> <field name="NAME">datumSchedule</field> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="control" id="--.){w[29%H}dCX)QZre"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">countdown.0.setup.FC Basel</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="0qiq9Ta*z-gm~VXO{T]/"> <field name="VAR" id="dl(4-B)s(J1z0(yKCcPM">eventDatum</field> </block> </value> <next> <block type="control" id="J@u{-ak8EhzU+j]BLUpd"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">0_userdata.0.Variablen.Vis_Schalter.FCB_gegen</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="=`c+9CFW^h@u=EyPJ34$"> <field name="VAR" id="l6*`|-^*E}19Ax.o8gS3">suchBegriff</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </xml>@hanan sagte in [Vorlage]-Zeit herunterzählen bis GoogleTermin Eintritt:
<xml xmlns="https://developers.google.com/blockly/xml">
ich muss gestehen, ich glaube, ich habe den countdown adapter etwas missbraucht - ich schau mal, ob ich morgen ein anderes script zusammenbringe
der countdown adapter ist bei dir noch gestartet ?
-
@hanan sagte in [Vorlage]-Zeit herunterzählen bis GoogleTermin Eintritt:
<xml xmlns="https://developers.google.com/blockly/xml">
ich muss gestehen, ich glaube, ich habe den countdown adapter etwas missbraucht - ich schau mal, ob ich morgen ein anderes script zusammenbringe
der countdown adapter ist bei dir noch gestartet ?
Habe oben eben nochmals mein aktuelles Blockly-Skript eingefügt...
Jep, und ich beschreibe im Ordner setup den Datenpunkt FC Basel mit dem eventDatum, welches eben nicht mehr übernommen wird.
-
Habe oben eben nochmals mein aktuelles Blockly-Skript eingefügt...
Jep, und ich beschreibe im Ordner setup den Datenpunkt FC Basel mit dem eventDatum, welches eben nicht mehr übernommen wird.
@hanan ist bei mir auch - da machen wir uns einen neuen datenpunkt und schreiben den mit dem richtigen namen - in der vis nimmst du dann den neuen dp zur anzeige des namen
-
Habe oben eben nochmals mein aktuelles Blockly-Skript eingefügt...
Jep, und ich beschreibe im Ordner setup den Datenpunkt FC Basel mit dem eventDatum, welches eben nicht mehr übernommen wird.
-
Hmmmm....
Komisch, jetzt hat es soeben geklappt. Verstehe ich nichts mehr.
Die Datenpunkte wurden um 16:30 Uhr plötzlich beschrieben.ich gebe dir ein neues script, welches auch den countdown adapter nutzt
-
Hmmmm....
Komisch, jetzt hat es soeben geklappt. Verstehe ich nichts mehr.
Die Datenpunkte wurden um 16:30 Uhr plötzlich beschrieben. -
Einen neuen Datenpunkt im countdowns/setup/FC Basel kann ich doch seit v5.1.23 nicht mehr erstellen oder?
das macht der adapter - hast du im adapter setting den counter angelegt - oder geht das nicht mehr
-
@hanan wir machen morgen weiter
-
@hanan melde dich, wenn/wann du morgen zeit hast
-
hier mal ein neues script - hier wird direkt der countdown adapter verwendet
- du musst das suchwort eingeben (FC Basel - denke ich)
- in der vis und im script wird nun ein eigener datenpunkt (musst du erstellen) für deinen termin-namen verwendet - die anderen datenpunkte sind weiterhin unter dem countdown-adapter zu finden
- du kannst einfach ein paar termine eingeben (bei mir war es im test googletest) um 15: 00 und um 15:30 und um 16:00 - dann sollte das script alle termine abarbeiten und immer den nächsten nehmen um ihn anzuzeigen
bei mir klappt es
-
hier mal ein neues script - hier wird direkt der countdown adapter verwendet
- du musst das suchwort eingeben (FC Basel - denke ich)
- in der vis und im script wird nun ein eigener datenpunkt (musst du erstellen) für deinen termin-namen verwendet - die anderen datenpunkte sind weiterhin unter dem countdown-adapter zu finden
- du kannst einfach ein paar termine eingeben (bei mir war es im test googletest) um 15: 00 und um 15:30 und um 16:00 - dann sollte das script alle termine abarbeiten und immer den nächsten nehmen um ihn anzuzeigen
bei mir klappt es
@liv-in-sky
Hallo liv-in-sky
Danke für Deine Arbeit, doch ich kann es erst Morgenabend testen, da ich immer noch auf der Arbeit bin (sch....tag).
Liebe Grüsse und einen schönen Abend. -
@liv-in-sky
Hallo liv-in-sky
Danke für Deine Arbeit, doch ich kann es erst Morgenabend testen, da ich immer noch auf der Arbeit bin (sch....tag).
Liebe Grüsse und einen schönen Abend.@hanan kein thema - wenn es paßt - einfach melden
-
@hanan kein thema - wenn es paßt - einfach melden
@liv-in-sky
Hallo liv-in-sky
Habe das Skript importiert und die Datenpunkte angepasst.
:clap: super Arbeit, funz auf anhieb.
Besten Dank nochmals für Deine Hilfe.
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden
