NEWS
Ical JSON auslesen :-)
-
das ist meine Quelle: ical.0.data.table
Rauskommen sollen einfach noch die Termine die für den heutigen Tag offen sind :-)
@Olli_M sagte in Ical JSON auslesen :-):
Rauskommen sollen einfach noch die Termine die für den heutigen Tag offen sind :-)
das macht der ical-Adapter doch von selbst
ich kenne dei e Einstellungen nicht, aber wenn du nur heutige Termine haben willst musst du ihn auf 1 Tag einstellen
-
Hi,
ich versuche gerade mit dem ICAL Adapter die json auszulesen. hab hier auch einen Code gefunden, allerdings schreibt ihr mir die Termine Doppelt und dreifach... hier der aktuelle Blockly stand:
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="Nin}JW*y1Vp_$;},D.7Z">liste_term</variable> <variable id="1]Y7`n@:hU1lh4_N4rup">j</variable> <variable id="mOjNB}.j)RR3:k$kM.L7">obj_termin</variable> <variable id="%9%0UV]g*=a-{TDxkJ2t">termin</variable> <variable id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</variable> <variable id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</variable> <variable id="wPep`OX`O^fEpJ%f1ug~">ort</variable> </variables> <block type="schedule" id="+@r~S[6?t$[fT[H@DK@b" x="88" y="4263"> <field name="SCHEDULE">*/59 * * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="SG1#fy:/LT+_LtWOw9:="> <value name="IF0"> <block type="logic_compare" id="~K9qxlSw$|iqluYn$=E["> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="A#AM49+2rPo@~*`kpOQQ"> <field name="ATTR">val</field> <field name="OID">ical.0.data.count</field> </block> </value> <value name="B"> <block type="math_number" id="DE1qH{lXTOIL_qY{RJs#"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="`%F3I5HDMm{W_0J_o3Y)"> <field name="VAR" id="Nin}JW*y1Vp_$;},D.7Z">liste_term</field> <value name="VALUE"> <block type="get_value" id="mw}m)@^s7YhZ#N9.YJGR"> <field name="ATTR">val</field> <field name="OID">ical.0.data.table</field> </block> </value> <next> <block type="controls_for" id="##,smlQZuUU$Hp)Deinv"> <field name="VAR" id="1]Y7`n@:hU1lh4_N4rup">j</field> <value name="FROM"> <shadow type="math_number" id="A*J}_Qh+*662ncK7Jlh@"> <field name="NUM">1</field> </shadow> </value> <value name="TO"> <shadow type="math_number" id="2+Y:blScaLJrd?cNIno]"> <field name="NUM">10</field> </shadow> <block type="get_value" id="ZVp^WlNoFoFa)X$]=GVR"> <field name="ATTR">val</field> <field name="OID">ical.0.data.count</field> </block> </value> <value name="BY"> <shadow type="math_number" id="cf2:f+!=u[45[`5A^oR)"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="variables_set" id="d3!_@rJ(=rJBet8eg*aw"> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> <value name="VALUE"> <block type="lists_getIndex" id="9T);!$t,Au-eE3B~1Gv;"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="KK36xP*]R#Wbj5[ySvU{"> <field name="VAR" id="Nin}JW*y1Vp_$;},D.7Z">liste_term</field> </block> </value> <value name="AT"> <block type="variables_get" id="[9^LOR%D~X1zA:VdfwBl"> <field name="VAR" id="1]Y7`n@:hU1lh4_N4rup">j</field> </block> </value> </block> </value> <next> <block type="variables_set" id="9XU7hW*5T;uB$d$6ObCI"> <field name="VAR" id="%9%0UV]g*=a-{TDxkJ2t">termin</field> <value name="VALUE"> <block type="get_attr" id="E0Mq^IGJM,XR/(-,}CrK"> <value name="PATH"> <shadow type="text" id="[(Cf+VL;Ft7YO0(FBwSv"> <field name="TEXT">event</field> </shadow> </value> <value name="OBJECT"> <block type="variables_get" id="b_LG$ZW%TE8si5J(b:Mp"> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> </block> </value> </block> </value> <next> <block type="variables_set" id="L-4nSiPs7tQK){NhuP}A"> <field name="VAR" id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</field> <value name="VALUE"> <block type="get_attr" id="zSyV5QdK]%VDm{0U--z["> <value name="PATH"> <shadow type="text" id="kqX{$-vh9,M%3YP5wYpE"> <field name="TEXT">_date</field> </shadow> </value> <value name="OBJECT"> <block type="variables_get" id="5h-v#4$+b6F~R#^F6q~?"> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> </block> </value> </block> </value> <next> <block type="variables_set" id="jaM:)-h[SvzaVr$,1{ab"> <field name="VAR" id="wPep`OX`O^fEpJ%f1ug~">ort</field> <value name="VALUE"> <block type="get_attr" id="S@.?MCm42pqS,F.7ACRS"> <value name="PATH"> <shadow type="text" id="o#}lQtc57|^_4;Y_v?ZL"> <field name="TEXT">location</field> </shadow> </value> <value name="OBJECT"> <block type="variables_get" id="}=.Og}t-hG5EBFM#cyo#"> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> </block> </value> </block> </value> <next> <block type="variables_set" id="Xw~K{!s8GsBtx5@tIcn5"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> <value name="VALUE"> <block type="text_join" id="^JUvnmon_{lP[DJIaZ+l"> <mutation items="9"></mutation> <value name="ADD0"> <block type="variables_get" id="8?NV/z=,lX$)}a)_`g4F"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="7R{vwZ4.$e7S-Pdi^@*)"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="convert_from_date" id="`0LFOX!yru]-[dfKDn}G"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm</field> <value name="VALUE"> <block type="variables_get" id="lUF[SJ-mp}FL]KEGtHLL"> <field name="VAR" id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</field> </block> </value> </block> </value> <value name="ADD3"> <block type="text" id="GN9N$whLIIW,lY5P7Zo+"> <field name="TEXT"> - </field> </block> </value> <value name="ADD4"> <block type="variables_get" id="iXe#+!7?SY/S9X]:9Cht"> <field name="VAR" id="%9%0UV]g*=a-{TDxkJ2t">termin</field> </block> </value> <value name="ADD5"> <block type="text" id="V$=2#]/uVg5v=;6;2U`i"> <field name="TEXT"> - </field> </block> </value> <value name="ADD6"> <block type="text_charAt" id="|8k44]|H`F`[dYL:OhG`"> <mutation at="true"></mutation> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="aHEBYTk3^_wUHV(%(tdG"> <field name="VAR" id="wPep`OX`O^fEpJ%f1ug~">ort</field> </block> </value> <value name="AT"> <block type="math_number" id="ZWN|xUJM5fNI+ib[MKmY"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="ADD7"> <block type="text_charAt" id="nD94fHmAc%KHxj4T(`HX"> <mutation at="true"></mutation> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="Y420KTH%xUkk[Q~v9V$R"> <field name="VAR" id="wPep`OX`O^fEpJ%f1ug~">ort</field> </block> </value> <value name="AT"> <block type="math_number" id="5?)%`3bNl5%U$FIAO]rJ"> <field name="NUM">2</field> </block> </value> </block> </value> <value name="ADD8"> <block type="text_charAt" id="L]?F8S*.W-(F^_Oxc4jX"> <mutation at="true"></mutation> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="A?]]aP/?o^YAvl]oR**f"> <field name="VAR" id="wPep`OX`O^fEpJ%f1ug~">ort</field> </block> </value> <value name="AT"> <block type="math_number" id="lrn]ID*w(-uje)=A6-_K"> <field name="NUM">3</field> </block> </value> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="debug" id="@{98ZlH9H0-bU?NFq@.l"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="gND@X`-7D)50}m4xq,xP"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="C8VfxU%FCFnO)+a4uYf]"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> <next> <block type="telegram" id="%R4ujjx,8M^2tV9xvj`^"> <field name="INSTANCE">.0</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="|Y0fQkiSY@@x6f:|czT0"> <field name="TEXT">text</field> </shadow> <block type="variables_get" id=":NHFv)_bDjl2xvAC5Te~"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> <next> <block type="control" id="n*^frlDdedrK#tk^:::n"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.kalendertext</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="xEm6ws=h6297u9!V~eC]"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </xml> -
@Olli_M sagte: Termine Doppelt und dreifach
Wenn du uns den Inhalt der Variable liste_term in Code tags zeigst (Debug-Block), kann vielleicht geholfen werden.
Der Datenpunkt "ical.0.data.table" ist vom Typ "array"?@paul53 sagte in Ical JSON auslesen :-):
Der Datenpunkt "ical.0.data.table" ist vom Typ "array"?
ja
{ "_id": "ical.0.data.table", "type": "state", "common": { "name": "JS iCal table", "desc": "JS table: []", "type": "array", "role": "list", "read": true, "write": false }, "native": {}, "from": "system.adapter.ical.0", "ts": 1650900601279, "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" }, "user": "system.user.admin" } -
das ist meine Quelle: ical.0.data.table
Rauskommen sollen einfach noch die Termine die für den heutigen Tag offen sind :-)
-
@Olli_M sagte: Termine die für den heutigen Tag offen sind
Also nur zukünftige Termine für Heute? Versuche es mal so:

-
-
@Olli_M sagte in Ical JSON auslesen :-):
Man kann nur Tagesvorschau auf 1 stellen, dann kommt trotzdem ja die morgigen Termine :)
und mit 0?
@Olli_M sagte in Ical JSON auslesen :-):
Datum/Zeit nicht das nach SS:mm
gaaanz unten
-
schlechte GUI wenn man keinen scrollbalken sieht :-)

-
Cannot get date of "undefined": TypeError: Cannot read properties of undefined (reading 'date')
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="Q+.=qSHyf2F}f=o!IINv">anzahl</variable> <variable id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</variable> <variable id="Nin}JW*y1Vp_$;},D.7Z">liste_term</variable> <variable id="1]Y7`n@:hU1lh4_N4rup">j</variable> <variable id="mOjNB}.j)RR3:k$kM.L7">obj_termin</variable> <variable id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</variable> <variable id="]`DRupDT@DC0B+~.oF7U">uhrzeit</variable> </variables> <block type="schedule" id="+@r~S[6?t$[fT[H@DK@b" x="-87" y="4138"> <field name="SCHEDULE">*/10 * * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="?X0J$31Ml]d@H[n[Sg)]"> <field name="VAR" id="Q+.=qSHyf2F}f=o!IINv">anzahl</field> <value name="VALUE"> <block type="get_value" id="ZVp^WlNoFoFa)X$]=GVR"> <field name="ATTR">val</field> <field name="OID">ical.0.data.count</field> </block> </value> <next> <block type="controls_if" id="SG1#fy:/LT+_LtWOw9:="> <value name="IF0"> <block type="logic_compare" id="~K9qxlSw$|iqluYn$=E["> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="~Wn8e^j=Lr6S@+sbDp@E"> <field name="VAR" id="Q+.=qSHyf2F}f=o!IINv">anzahl</field> </block> </value> <value name="B"> <block type="math_number" id="DE1qH{lXTOIL_qY{RJs#"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="XB@}Qqq=D17E5,eO!@AF"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> <value name="VALUE"> <block type="text" id="I/Us.Q$lpcgQEgvht?0n"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="`%F3I5HDMm{W_0J_o3Y)"> <field name="VAR" id="Nin}JW*y1Vp_$;},D.7Z">liste_term</field> <value name="VALUE"> <block type="get_value" id="mw}m)@^s7YhZ#N9.YJGR"> <field name="ATTR">val</field> <field name="OID">ical.0.data.table</field> </block> </value> <next> <block type="controls_for" id="##,smlQZuUU$Hp)Deinv"> <field name="VAR" id="1]Y7`n@:hU1lh4_N4rup">j</field> <value name="FROM"> <shadow type="math_number" id="A*J}_Qh+*662ncK7Jlh@"> <field name="NUM">1</field> </shadow> </value> <value name="TO"> <shadow type="math_number" id="2+Y:blScaLJrd?cNIno]"> <field name="NUM">10</field> </shadow> </value> <value name="BY"> <shadow type="math_number" id="cf2:f+!=u[45[`5A^oR)"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="variables_set" id="d3!_@rJ(=rJBet8eg*aw"> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> <value name="VALUE"> <block type="lists_getIndex" id="9T);!$t,Au-eE3B~1Gv;"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="KK36xP*]R#Wbj5[ySvU{"> <field name="VAR" id="Nin}JW*y1Vp_$;},D.7Z">liste_term</field> </block> </value> <value name="AT"> <block type="variables_get" id="[9^LOR%D~X1zA:VdfwBl"> <field name="VAR" id="1]Y7`n@:hU1lh4_N4rup">j</field> </block> </value> </block> </value> <next> <block type="variables_set" id="L-4nSiPs7tQK){NhuP}A"> <field name="VAR" id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</field> <value name="VALUE"> <block type="get_attr" id="zSyV5QdK]%VDm{0U--z["> <value name="PATH"> <shadow type="text" id="kqX{$-vh9,M%3YP5wYpE"> <field name="TEXT">_date</field> </shadow> </value> <value name="OBJECT"> <block type="variables_get" id="5h-v#4$+b6F~R#^F6q~?"> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> </block> </value> </block> </value> <next> <block type="variables_set" id="B6U{/g`^_f^X+e^`jHhR"> <field name="VAR" id="]`DRupDT@DC0B+~.oF7U">uhrzeit</field> <value name="VALUE"> <block type="convert_from_date" id="iu66ZJm@PM}#BSj695.Z"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm</field> <value name="VALUE"> <block type="variables_get" id="d]RtQWqwm=zf!U#5GzO!"> <field name="VAR" id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</field> </block> </value> </block> </value> <next> <block type="controls_if" id="6ry*++!,FZI%Pn/F$4vG"> <value name="IF0"> <block type="logic_multi_and" id="|[c}rGCHkiWq3o2-PkSh"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="logic_compare" id="3sY{t,TK8ONDt!e3Yk@`"> <field name="OP">EQ</field> <value name="A"> <block type="time_get" id="qda)fb[zP9}?48GVBu/v"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">DD.MM.YY</field> </block> </value> <value name="B"> <block type="convert_from_date" id="`0LFOX!yru]-[dfKDn}G"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">DD.MM.YY</field> <value name="VALUE"> <block type="variables_get" id="lUF[SJ-mp}FL]KEGtHLL"> <field name="VAR" id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</field> </block> </value> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="aj)MD-MXKd1kJ=1TD4Y)"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="WC9:]H?TrMg$ypnfL^DQ"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm</field> </block> </value> <value name="B"> <block type="variables_get" id="`{)Y`SS3n:y^-:piuZi$"> <field name="VAR" id="]`DRupDT@DC0B+~.oF7U">uhrzeit</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Xw~K{!s8GsBtx5@tIcn5"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> <value name="VALUE"> <block type="text_join" id="^JUvnmon_{lP[DJIaZ+l"> <mutation items="9"></mutation> <value name="ADD0"> <block type="variables_get" id="8?NV/z=,lX$)}a)_`g4F"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="7R{vwZ4.$e7S-Pdi^@*)"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="iXe#+!7?SY/S9X]:9Cht"> <field name="VAR" id="]`DRupDT@DC0B+~.oF7U">uhrzeit</field> </block> </value> <value name="ADD3"> <block type="text" id="GN9N$whLIIW,lY5P7Zo+"> <field name="TEXT"> - </field> </block> </value> <value name="ADD4"> <block type="get_attr" id="KZ+VLh~x2{l0%a`0.Tdy"> <value name="PATH"> <shadow type="text" id="1tSGH^jZb:#)]ij[M9/X"> <field name="TEXT">event</field> </shadow> </value> <value name="OBJECT"> <shadow type="get_object" id="y2:90W@gg;,P4sQOy`B*"> <field name="OID">Object ID</field> </shadow> <block type="variables_get" id="gcuq?4j=q`k-%k2hga+Y"> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> </block> </value> </block> </value> <value name="ADD5"> <block type="text" id="V$=2#]/uVg5v=;6;2U`i"> <field name="TEXT"> - </field> </block> </value> <value name="ADD6"> <block type="text_getSubstring" id="RKaw~+Uc~?!ql]B*DmH9"> <mutation at1="false" at2="true"></mutation> <field name="WHERE1">FIRST</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="get_attr" id="L=^]5|GV;;mfo=$TX%0B"> <value name="PATH"> <shadow type="text" id="~Tq1$-UN#Q-ZS$t#}(:T"> <field name="TEXT">location</field> </shadow> </value> <value name="OBJECT"> <shadow type="get_object" id="y2:90W@gg;,P4sQOy`B*"> <field name="OID">Object ID</field> </shadow> <block type="variables_get" id="!;CZ/**Cv|Y{?}s}S6;["> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> </block> </value> </block> </value> <value name="AT2"> <block type="math_number" id="ZWN|xUJM5fNI+ib[MKmY"> <field name="NUM">3</field> </block> </value> </block> </value> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="debug" id="@{98ZlH9H0-bU?NFq@.l"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="gND@X`-7D)50}m4xq,xP"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="C8VfxU%FCFnO)+a4uYf]"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> <next> <block type="telegram" id="%R4ujjx,8M^2tV9xvj`^"> <field name="INSTANCE">.0</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="|Y0fQkiSY@@x6f:|czT0"> <field name="TEXT">text</field> </shadow> <block type="variables_get" id=":NHFv)_bDjl2xvAC5Te~"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> <next> <block type="control" id="n*^frlDdedrK#tk^:::n"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.kalendertext</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="xEm6ws=h6297u9!V~eC]"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </xml> -
Cannot get date of "undefined": TypeError: Cannot read properties of undefined (reading 'date')
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="Q+.=qSHyf2F}f=o!IINv">anzahl</variable> <variable id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</variable> <variable id="Nin}JW*y1Vp_$;},D.7Z">liste_term</variable> <variable id="1]Y7`n@:hU1lh4_N4rup">j</variable> <variable id="mOjNB}.j)RR3:k$kM.L7">obj_termin</variable> <variable id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</variable> <variable id="]`DRupDT@DC0B+~.oF7U">uhrzeit</variable> </variables> <block type="schedule" id="+@r~S[6?t$[fT[H@DK@b" x="-87" y="4138"> <field name="SCHEDULE">*/10 * * * * *</field> <statement name="STATEMENT"> <block type="variables_set" id="?X0J$31Ml]d@H[n[Sg)]"> <field name="VAR" id="Q+.=qSHyf2F}f=o!IINv">anzahl</field> <value name="VALUE"> <block type="get_value" id="ZVp^WlNoFoFa)X$]=GVR"> <field name="ATTR">val</field> <field name="OID">ical.0.data.count</field> </block> </value> <next> <block type="controls_if" id="SG1#fy:/LT+_LtWOw9:="> <value name="IF0"> <block type="logic_compare" id="~K9qxlSw$|iqluYn$=E["> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="~Wn8e^j=Lr6S@+sbDp@E"> <field name="VAR" id="Q+.=qSHyf2F}f=o!IINv">anzahl</field> </block> </value> <value name="B"> <block type="math_number" id="DE1qH{lXTOIL_qY{RJs#"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="XB@}Qqq=D17E5,eO!@AF"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> <value name="VALUE"> <block type="text" id="I/Us.Q$lpcgQEgvht?0n"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="`%F3I5HDMm{W_0J_o3Y)"> <field name="VAR" id="Nin}JW*y1Vp_$;},D.7Z">liste_term</field> <value name="VALUE"> <block type="get_value" id="mw}m)@^s7YhZ#N9.YJGR"> <field name="ATTR">val</field> <field name="OID">ical.0.data.table</field> </block> </value> <next> <block type="controls_for" id="##,smlQZuUU$Hp)Deinv"> <field name="VAR" id="1]Y7`n@:hU1lh4_N4rup">j</field> <value name="FROM"> <shadow type="math_number" id="A*J}_Qh+*662ncK7Jlh@"> <field name="NUM">1</field> </shadow> </value> <value name="TO"> <shadow type="math_number" id="2+Y:blScaLJrd?cNIno]"> <field name="NUM">10</field> </shadow> </value> <value name="BY"> <shadow type="math_number" id="cf2:f+!=u[45[`5A^oR)"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="variables_set" id="d3!_@rJ(=rJBet8eg*aw"> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> <value name="VALUE"> <block type="lists_getIndex" id="9T);!$t,Au-eE3B~1Gv;"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="KK36xP*]R#Wbj5[ySvU{"> <field name="VAR" id="Nin}JW*y1Vp_$;},D.7Z">liste_term</field> </block> </value> <value name="AT"> <block type="variables_get" id="[9^LOR%D~X1zA:VdfwBl"> <field name="VAR" id="1]Y7`n@:hU1lh4_N4rup">j</field> </block> </value> </block> </value> <next> <block type="variables_set" id="L-4nSiPs7tQK){NhuP}A"> <field name="VAR" id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</field> <value name="VALUE"> <block type="get_attr" id="zSyV5QdK]%VDm{0U--z["> <value name="PATH"> <shadow type="text" id="kqX{$-vh9,M%3YP5wYpE"> <field name="TEXT">_date</field> </shadow> </value> <value name="OBJECT"> <block type="variables_get" id="5h-v#4$+b6F~R#^F6q~?"> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> </block> </value> </block> </value> <next> <block type="variables_set" id="B6U{/g`^_f^X+e^`jHhR"> <field name="VAR" id="]`DRupDT@DC0B+~.oF7U">uhrzeit</field> <value name="VALUE"> <block type="convert_from_date" id="iu66ZJm@PM}#BSj695.Z"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm</field> <value name="VALUE"> <block type="variables_get" id="d]RtQWqwm=zf!U#5GzO!"> <field name="VAR" id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</field> </block> </value> </block> </value> <next> <block type="controls_if" id="6ry*++!,FZI%Pn/F$4vG"> <value name="IF0"> <block type="logic_multi_and" id="|[c}rGCHkiWq3o2-PkSh"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="logic_compare" id="3sY{t,TK8ONDt!e3Yk@`"> <field name="OP">EQ</field> <value name="A"> <block type="time_get" id="qda)fb[zP9}?48GVBu/v"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">DD.MM.YY</field> </block> </value> <value name="B"> <block type="convert_from_date" id="`0LFOX!yru]-[dfKDn}G"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">DD.MM.YY</field> <value name="VALUE"> <block type="variables_get" id="lUF[SJ-mp}FL]KEGtHLL"> <field name="VAR" id="HIJ%UiQd%]r!t2:`_t9{">termin_datum</field> </block> </value> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="aj)MD-MXKd1kJ=1TD4Y)"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="WC9:]H?TrMg$ypnfL^DQ"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">hh:mm</field> </block> </value> <value name="B"> <block type="variables_get" id="`{)Y`SS3n:y^-:piuZi$"> <field name="VAR" id="]`DRupDT@DC0B+~.oF7U">uhrzeit</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Xw~K{!s8GsBtx5@tIcn5"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> <value name="VALUE"> <block type="text_join" id="^JUvnmon_{lP[DJIaZ+l"> <mutation items="9"></mutation> <value name="ADD0"> <block type="variables_get" id="8?NV/z=,lX$)}a)_`g4F"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="7R{vwZ4.$e7S-Pdi^@*)"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="iXe#+!7?SY/S9X]:9Cht"> <field name="VAR" id="]`DRupDT@DC0B+~.oF7U">uhrzeit</field> </block> </value> <value name="ADD3"> <block type="text" id="GN9N$whLIIW,lY5P7Zo+"> <field name="TEXT"> - </field> </block> </value> <value name="ADD4"> <block type="get_attr" id="KZ+VLh~x2{l0%a`0.Tdy"> <value name="PATH"> <shadow type="text" id="1tSGH^jZb:#)]ij[M9/X"> <field name="TEXT">event</field> </shadow> </value> <value name="OBJECT"> <shadow type="get_object" id="y2:90W@gg;,P4sQOy`B*"> <field name="OID">Object ID</field> </shadow> <block type="variables_get" id="gcuq?4j=q`k-%k2hga+Y"> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> </block> </value> </block> </value> <value name="ADD5"> <block type="text" id="V$=2#]/uVg5v=;6;2U`i"> <field name="TEXT"> - </field> </block> </value> <value name="ADD6"> <block type="text_getSubstring" id="RKaw~+Uc~?!ql]B*DmH9"> <mutation at1="false" at2="true"></mutation> <field name="WHERE1">FIRST</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="get_attr" id="L=^]5|GV;;mfo=$TX%0B"> <value name="PATH"> <shadow type="text" id="~Tq1$-UN#Q-ZS$t#}(:T"> <field name="TEXT">location</field> </shadow> </value> <value name="OBJECT"> <shadow type="get_object" id="y2:90W@gg;,P4sQOy`B*"> <field name="OID">Object ID</field> </shadow> <block type="variables_get" id="!;CZ/**Cv|Y{?}s}S6;["> <field name="VAR" id="mOjNB}.j)RR3:k$kM.L7">obj_termin</field> </block> </value> </block> </value> <value name="AT2"> <block type="math_number" id="ZWN|xUJM5fNI+ib[MKmY"> <field name="NUM">3</field> </block> </value> </block> </value> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="debug" id="@{98ZlH9H0-bU?NFq@.l"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="gND@X`-7D)50}m4xq,xP"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="C8VfxU%FCFnO)+a4uYf]"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> <next> <block type="telegram" id="%R4ujjx,8M^2tV9xvj`^"> <field name="INSTANCE">.0</field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="|Y0fQkiSY@@x6f:|czT0"> <field name="TEXT">text</field> </shadow> <block type="variables_get" id=":NHFv)_bDjl2xvAC5Te~"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> <next> <block type="control" id="n*^frlDdedrK#tk^:::n"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.kalendertext</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="xEm6ws=h6297u9!V~eC]"> <field name="VAR" id="b)m])isudJ]Z:`l}GrRL">anstehende_termine</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </xml>@Olli_M sagte in Ical JSON auslesen :-):
Cannot get date of "undefined": TypeError: Cannot read properties of undefined (reading 'date')
da muss es mehr Infos geben!
Da scheint irgendwo eine Datumsoperation auf ein nicht vorhandenes Datum angewendet werden sollen
Was und wo müsste in einer der nächsten Zeilen stehen
...oder in der js-Ansicht
und bitte immer ein Bild vom Blockly zeigen
https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge -
@Olli_M sagte in Ical JSON auslesen :-):
Cannot get date of "undefined": TypeError: Cannot read properties of undefined (reading 'date')
da muss es mehr Infos geben!
Da scheint irgendwo eine Datumsoperation auf ein nicht vorhandenes Datum angewendet werden sollen
Was und wo müsste in einer der nächsten Zeilen stehen
...oder in der js-Ansicht
und bitte immer ein Bild vom Blockly zeigen
https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge -
Dieser Beitrag wurde gelöscht!
-
schlechte GUI wenn man keinen scrollbalken sieht :-)

-
Dieser Beitrag wurde gelöscht!
-
@Olli_M sagte in Ical JSON auslesen :-):
Cannot get date of "undefined": TypeError: Cannot read properties of undefined (reading 'date')
da muss es mehr Infos geben!
Da scheint irgendwo eine Datumsoperation auf ein nicht vorhandenes Datum angewendet werden sollen
Was und wo müsste in einer der nächsten Zeilen stehen
...oder in der js-Ansicht
und bitte immer ein Bild vom Blockly zeigen
https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträgeDieser Beitrag wurde gelöscht! -
Dieser Beitrag wurde gelöscht!
-
-

das ist der aktuelle stand :-)
@paul53 erstmal danke gibt noch nichts aus obwohl es einen Termin gibt, ich parke das mal kurz und kümmere mich erst um das JSON problem :-)

