-
Autor
Es wird der iCal Adapter und der Trashschedule( Abfallkalender) gebraucht
Blockly Export
Code
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="schedule" id="-[MKJG41a;~?S0*}DSSh" x="-537" y="-262">
<field name="SCHEDULE">0 18 * * *</field>
<statement name="STATEMENT">
<block type="comment" id="{p2u3o5[]%d~Va$lSA]?">
<field name="COMMENT">Benachrichtigung Abholung morgen</field>
<next>
<block type="controls_if" id="NQzTFsw?rX9,mxeD{W/(">
<value name="IF0">
<block type="logic_compare" id="l43Mc;I];Z^;}(7s8awu">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="ICyrLiR@FgaZO`G;g1u8">
<field name="ATTR">val</field>
<field name="OID">trashschedule.0.next.daysLeft</field>
</block>
</value>
<value name="B">
<block type="math_number" id="$X4aEU8Qouhb`Vc`Uh^J">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="telegram" id="ro6=i|?@w$ePr!,I^Y!L">
<field name="INSTANCE">.0</field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="#v91j!CJu3!W`ds3T!L3">
<field name="TEXT">Heute wird der Müll abgeholt.</field>
</shadow>
<block type="text_join" id="yIH-WeBz{3f@94zt~sES">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="text" id="VT;e5[te#]C?VG+aP5*I">
<field name="TEXT">Morgen wird die </field>
</block>
</value>
<value name="ADD1">
<block type="get_value" id="h(%3.+E(c1FMMJ|(8du-">
<field name="ATTR">val</field>
<field name="OID">trashschedule.0.next.typesText</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="0m#?+uzBtl^W8umcb_7,">
<field name="TEXT"> abgeholt.</field>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
<next>
<block type="schedule" id="ZnNDX(Tb(`s=ajP]x-[5">
<field name="SCHEDULE">0 6 * * *</field>
<statement name="STATEMENT">
<block type="comment" id="=!s7~ajg[~q:A3VmGoP(">
<field name="COMMENT">Benachrichtigung Abholung heute</field>
<next>
<block type="controls_if" id="433KGX.Bm^TvBd3;8YBe">
<value name="IF0">
<block type="logic_compare" id="960arKE3Q2b[y~]H%klG">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="]RqhEEofo;Hz*Q_Okmdu">
<field name="ATTR">val</field>
<field name="OID">trashschedule.0.next.daysLeft</field>
</block>
</value>
<value name="B">
<block type="math_number" id="z~GyX0lvG$4s*uI|M29t">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="telegram" id="#Uwl/SB!.p0S11xggpr/">
<field name="INSTANCE">.0</field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<value name="MESSAGE">
<shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="#v91j!CJu3!W`ds3T!L3">
<field name="TEXT">Heute wird der Müll abgeholt.</field>
</shadow>
<block type="text_join" id="/ICuBeuesWQf83ni{qvD">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="text" id="2XWeaLpPG@+fY?VT{,Ul">
<field name="TEXT">Heute wird die </field>
</block>
</value>
<value name="ADD1">
<block type="get_value" id="inxfq7580!vk1R/Fc]31">
<field name="ATTR">val</field>
<field name="OID">trashschedule.0.next.typesText</field>
</block>
</value>
<value name="ADD2">
<block type="text" id="I9?n46$O-rH.QIc8%Swf">
<field name="TEXT"> abgeholt.</field>
</block>
</value>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</xml>
Alles anzeigen