<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable id="$Tar!(b_)qw:24xtP(vj">url</variable>
<variable id="0;mm8IOdOmH_wz;%[zPo">Syno_URL</variable>
<variable id=",O#!.RmBLV$D$25E`o7/">Syno_Port</variable>
<variable id="Eg)M29q*/71]Q#lGjYO;">Chat_token</variable>
<variable id="u^a{RwAvq(*-0PK`(`@4">URL_Snapshot</variable>
<variable id="yW]q[i/Yfz.,5Z+Vb.a,">URL_ioBroker</variable>
<variable id="`=hGQ*[0C+pxdf]k]sV]">Nachricht</variable>
<variable id="D5Tj,(Y%B2Tp[@g/2DPn">Debug_URL</variable>
<variable id="/j={Oe4(A3y)y{F~G67H">Debug_send_Result</variable>
<variable type="timeout" id="timeout">timeout</variable>
</variables>
<block type="procedures_defcustomnoreturn" id="Fh|~ouZqovH}}ZEi:0P{" x="488" y="-537">
<mutation statements="false"></mutation>
<field name="NAME">Bild_holen</field>
<field name="SCRIPT">DQoNCg0KcmVxdWVzdCgNCg0KICB7DQoNCiAgICB1cmw6IFVSTF9TbmFwc2hvdCAsDQoNCiAgICBlbmNvZGluZzogbnVsbCwNCg0KICB9LA0KDQogIChlcnJvciwgcmVzcG9uc2UsIGJvZHkpID0+IHsNCg0KICAgIGlmICghZXJyb3IgJiYgYm9keSkgew0KDQogICAgICB3cml0ZUZpbGUoIjBfdXNlcmRhdGEuMCIsICIvc3lub2xvZ3kvYmlsZC5qcGciLCBib2R5KTsNCg0KICAgIH0NCg0KICB9DQoNCik7DQo=</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
<block type="procedures_defcustomreturn" id="B`%(UJ@(5HI^#[)t`k$:" x="488" y="-512">
<mutation statements="false">
<arg name="url" varid="$Tar!(b_)qw:24xtP(vj"></arg>
</mutation>
<field name="NAME">encodeURI</field>
<field name="SCRIPT">dXJsID0gZW5jb2RlVVJJQ29tcG9uZW50KHVybCk7DQpyZXR1cm4gdXJsOw==</field>
<comment pinned="false" h="80" w="160">encode URL function</comment>
</block>
<block type="procedures_defcustomnoreturn" id="c4Zobeu@zHx7@T7RCR[+" x="488" y="-487">
<mutation statements="false"></mutation>
<field name="NAME">Chat_senden</field>
<field name="SCRIPT">dmFyIHRpbWVvdXQyMCA7DQpzZW5kID0gWydodHRwOi8vJyxTeW5vX1VSTCwnOicsU3lub19Qb3J0LCcvd2ViYXBpL2VudHJ5LmNnaT9hcGk9U1lOTy5DaGF0LkV4dGVybmFsJm1ldGhvZD1pbmNvbWluZyZ2ZXJzaW9uPTImdG9rZW49IicsQ2hhdF90b2tlbiwnIiZwYXlsb2FkPXsidGV4dCI6IicsTmFjaHJpY2h0LCciLCAiZmlsZV91cmwiOiAiJyxVUkxfaW9Ccm9rZXIsJyJ9J10uam9pbignJyk7DQppZiAoRGVidWdfVVJMID09IHRydWUpIHsNCiAgICBjb25zb2xlLmxvZyhzZW5kKTsNCn0NCihmdW5jdGlvbiAoKSB7aWYgKHRpbWVvdXQyMCkge2NsZWFyVGltZW91dCh0aW1lb3V0MjApOyB0aW1lb3V0MiA9IG51bGw7fX0pKCk7DQp0aW1lb3V0MjAgPSBzZXRUaW1lb3V0KGFzeW5jIGZ1bmN0aW9uICgpIHsNCiAgICB0cnkgew0KICAgICAgcmVxdWlyZSgicmVxdWVzdCIpKHNlbmQsIGFzeW5jIGZ1bmN0aW9uIChlcnJvciwgcmVzcG9uc2UsIHJlc3VsdCkgew0KICAgICAgICBpZiAoRGVidWdfc2VuZF9SZXN1bHQgPT0gdHJ1ZSkgew0KICAgICAgICBjb25zb2xlLmxvZyhyZXN1bHQpOw0KICAgICAgfQ0KICAgICAgfSkub24oImVycm9yIiwgZnVuY3Rpb24gKGUpIHtjb25zb2xlLmVycm9yKGUpO30pOw0KICAgIH0gY2F0Y2ggKGUpIHsgY29uc29sZS5lcnJvcihlKTsgfQ0KfSwgMTAwMCk7</field>
<comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
</block>
<block type="comment" id="dh?Nq_).+o*LRx@ZBJ/P" x="488" y="-463">
<field name="COMMENT">https://forum.iobroker.net/topic/47210/synology-chat/98</field>
<next>
<block type="comment" id="]-LvUJjLlh6nbfULNnAm">
<field name="COMMENT">Synology Chat Daten</field>
<next>
<block type="variables_set" id="u^*rT,0CM,T_]XeGow}h">
<field name="VAR" id="0;mm8IOdOmH_wz;%[zPo">Syno_URL</field>
<value name="VALUE">
<block type="text" id="K]+z|W)qG[s?viD8cP}Q">
<field name="TEXT">Deine IP</field>
</block>
</value>
<next>
<block type="variables_set" id=",|/0@uFO[kJp[pSjyfW~">
<field name="VAR" id=",O#!.RmBLV$D$25E`o7/">Syno_Port</field>
<value name="VALUE">
<block type="text" id="YmIhCu8+dV@OO0U[PWx#">
<field name="TEXT">5000</field>
</block>
</value>
<next>
<block type="variables_set" id="Z}%_nt.Jz``.b})ifYmx">
<field name="VAR" id="Eg)M29q*/71]Q#lGjYO;">Chat_token</field>
<value name="VALUE">
<block type="text" id="[^9?/_`o:[u8zr_:o:`T">
<field name="TEXT">Dein Token</field>
</block>
</value>
<next>
<block type="variables_set" id="fT*7tvvXRtyOgN,6C,2?">
<field name="VAR" id="u^a{RwAvq(*-0PK`(`@4">URL_Snapshot</field>
<value name="VALUE">
<block type="text" id="N]=+,oldD=_C5-KIA*6[">
<field name="TEXT">Dein Snapshot Link</field>
</block>
</value>
<next>
<block type="variables_set" id="Q8SV]H7m2;RCEIl!I32S">
<field name="VAR" id="yW]q[i/Yfz.,5Z+Vb.a,">URL_ioBroker</field>
<value name="VALUE">
<block type="text" id="Cw;l)b1L4K(P86t9=T}E">
<field name="TEXT">http://192.168.xxx.xxx:8082/0_userdata.0/synology/bild.jpg</field>
</block>
</value>
<next>
<block type="variables_set" id="*dQxDuFmm[ppsJg3%3!V">
<field name="VAR" id="`=hGQ*[0C+pxdf]k]sV]">Nachricht</field>
<value name="VALUE">
<block type="procedures_callcustomreturn" id="GD%^L~Wq_LIL_y86c}(2">
<mutation name="encodeURI">
<arg name="url"></arg>
</mutation>
<value name="ARG0">
<block type="text" id="+_Bx+X)YJc^_8RSz74zE">
<field name="TEXT">Alarm an der Haustür</field>
</block>
</value>
</block>
</value>
<next>
<block type="comment" id="#X/LLHHf]+a]HP9ULZZA">
<field name="COMMENT">Debugmodus an/aus</field>
<next>
<block type="variables_set" id="]Dg;,gKp,/]Sb1cUFi?n">
<field name="VAR" id="D5Tj,(Y%B2Tp[@g/2DPn">Debug_URL</field>
<value name="VALUE">
<block type="logic_boolean" id="0~lqDtIM29hgH2or)}mL">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="variables_set" id="W=GM=?`a~14E-J+QXSAQ">
<field name="VAR" id="/j={Oe4(A3y)y{F~G67H">Debug_send_Result</field>
<value name="VALUE">
<block type="logic_boolean" id="*JUO/RsrY?M/l53;H_pF">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="comment" id="[gDu2J;3btcPa(EESlU!">
<field name="COMMENT">Ab hier Trigger</field>
<next>
<block type="on_ext" id="9h_zLLHz{65UPzm^$7}e">
<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="NgekYWG@PsA7G02OF}rj">
<field name="oid">0_userdata.0.Test123</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="mSYXDpsYHKUM+j9uSS2s">
<mutation else="1"></mutation>
<value name="IF0">
<block type="on_source" id="l[/NtLhpCNaa5/@gH6X-">
<field name="ATTR">state.val</field>
</block>
</value>
<statement name="DO0">
<block type="procedures_callcustomnoreturn" id="eimW+=5+~Y|quii}_lBH">
<mutation name="Bild_holen"></mutation>
<next>
<block type="timeouts_settimeout" id="ht3)ckT6?(PDbQipm{_z">
<field name="NAME">timeout</field>
<field name="DELAY">2000</field>
<field name="UNIT">ms</field>
<statement name="STATEMENT">
<block type="procedures_callcustomnoreturn" id="[EP#gKV7fF}Y+8x8zkZ^">
<mutation name="Chat_senden"></mutation>
</block>
</statement>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_cleartimeout" id="TKEEXDr0Qo(}RX.!blS5">
<field name="NAME">timeout</field>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>