- Home
- Deutsch
- Skripten / Logik
- Blockly
- [Vorlage] Blockly - Beliebiges Zeichen im Text tauschen
[Vorlage] Blockly - Beliebiges Zeichen im Text tauschen
-
-
@dos1973
Naja, Du könntest ja sogar machen wieText = Im Text nimm Teil ab Anfang bis Textlänge -1
Dann isses weg
-
@padrino
ich bekomme die Puzzle mit den "Textblöcken" nicht in mein Blockly ohne es zu zerstören... -
@dos1973
Bin jetzt leider nicht am PC...Mach den Baustein, wie von mir beschrieben (allein, unter oder neben Deinem Blocken).
Als Text nimmst/verschiebst Du Deine Variable aus "beschreibe Datenpunkte", dann schiebst Du das ganze Konstrukt zurück ins "steuere", wo die Variable fehlt. -
@padrino
das klappt alles nicht,
entweder stehe ich hier total auf dem Schlauch, aber mir fehlt einfach der "Vorbau" um mit den Textblöcken zu arbeiten zu können. -
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="undefined" id="Blockly_start">Blockly_start</variable> <variable type="" id="lORNh2Pt?czf/[Pfo.(1">var_fenster_offen</variable> <variable type="" id="6VGwAvuZ|naQs:$3=)Eu">var_fenster_gekippt</variable> <variable type="" id="DhL`*s-7|kUw=e@q/mo/">var_fenster_geschlossen</variable> <variable type="" id="Q!dr0|xbBMZfEjF}8{ex">var_gekippt_oder_offen</variable> <variable type="" id="b?%5%fXn!w`Ft,m~9C}C">var_text_fenster_offen</variable> <variable type="" id="6%kvOp_86|coob7n0tCg">var_text_fenster_geschlossen</variable> <variable type="" id="eVC#)Xjk3Fn4EhfdHvKE">var_text_fenster_gekippt</variable> </variables> <block type="procedures_defcustomnoreturn" id=".}seu`gD99^pXgi@37f:" disabled="true" x="13" y="63"> <mutation statements="false"></mutation> <field name="NAME">Datenpunkt_erstellen</field> <field name="SCRIPT">LyoqCiAqIENyZWF0ZSBzdGF0ZXMgdW5kZXIgMF91c2VyZGF0YS4wIG9yIGphdmFzY3JpcHQueAogKiBDdXJyZW50IFZlcnNpb246ICAgICBodHRwczovL2dpdGh1Yi5jb20vTWljL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07CiAgICAgICAgICAgICAgICBpZiAobnVtU3RhdGVzID09PSAwKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIEFsbCBzdGF0ZXMgcHJvY2Vzc2VkLicpOwogICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgY2FsbGJhY2sgPT09ICdmdW5jdGlvbicpIHsgLy8gZXhlY3V0ZSBpZiBhIGZ1bmN0aW9uIHdhcyBwcm92aWRlZCB0byBwYXJhbWV0ZXIgY2FsbGJhY2sKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIEZ1bmN0aW9uIHRvIGNhbGxiYWNrIHBhcmFtZXRlciB3YXMgcHJvdmlkZWQnKTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKCk7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfSk7CiAgICB9IGVsc2UgewogICAgICAgIC8vIENyZWF0ZSBTdGF0ZXMgdW5kZXIgMF91c2VyZGF0YS4wCiAgICAgICAgbGV0IG51bVN0YXRlcyA9IHN0YXRlc1RvQ3JlYXRlLmxlbmd0aDsKICAgICAgICBsZXQgY291bnRlciA9IC0xOwogICAgICAgIHN0YXRlc1RvQ3JlYXRlLmZvckVhY2goZnVuY3Rpb24obG9vcFBhcmFtKSB7CiAgICAgICAgICAgIGNvdW50ZXIgKz0gMTsKICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nICgnW0RlYnVnXSBDdXJyZW50bHkgcHJvY2Vzc2luZyBmb2xsb3dpbmcgc3RhdGU6IFsnICsgbG9vcFBhcmFtWzBdICsgJ10nKTsKICAgICAgICAgICAgaWYoICgkKGxvb3BQYXJhbVswXSkubGVuZ3RoID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yBleGVjdXRlIGlmIGEgZnVuY3Rpb24gd2FzIHByb3ZpZGVkIHRvIHBhcmFtZXRlciBjYWxsYmFjawogICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKExPR19ERUJVRykgbG9nKCdbRGVidWddIEFuIG9wdGlvbmFsIGNhbGxiYWNrIGZ1bmN0aW9uIHdhcyBwcm92aWRlZCwgd2hpY2ggd2UgYXJlIGdvaW5nIHRvIGV4ZWN1dGUgbm93LicpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNhbGxiYWNrKCk7CiAgICAgICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICAvLyBXZSBuZWVkIHRvIGdvIG91dCBhbmQgY29udGludWUgd2l0aCBuZXh0IGVsZW1lbnQgaW4gbG9vcC4KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuOyAvLyBodHRwczovL3N0YWNrb3ZlcmZsb3cuY29tL3F1ZXN0aW9ucy8xODQ1MjkyMC9jb250aW51ZS1pbi1jdXJzb3ItZm9yZWFjaAogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0gLy8gaWYoIWZvcmNlKQogICAgICAgICAgICB9CgogICAgICAgICAgICAvLyBTdGF0ZSBpcyBub3QgZXhpc3Rpbmcgb3IgZm9yY2UgPSB0cnVlLCBzbyB3ZSBhcmUgY29udGludWluZyB0byBjcmVhdGUgdGhlIHN0YXRlIHRocm91Z2ggc2V0T2JqZWN0KCkuCiAgICAgICAgICAgIGxldCBvYmogPSB7fTsKICAgICAgICAgICAgb2JqLnR5cGUgPSAnc3RhdGUnOwogICAgICAgICAgICBvYmoubmF0aXZlID0ge307CiAgICAgICAgICAgIG9iai5jb21tb24gPSBsb29wUGFyYW1bMV07CiAgICAgICAgICAgIHNldE9iamVjdChsb29wUGFyYW1bMF0sIG9iaiwgZnVuY3Rpb24gKGVycikgewogICAgICAgICAgICAgICAgaWYgKGVycikgewogICAgICAgICAgICAgICAgICAgIGxvZygnQ2Fubm90IHdyaXRlIG9iamVjdCBmb3Igc3RhdGUgWycgKyBsb29wUGFyYW1bMF0gKyAnXTogJyArIGVycik7CiAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgIGlmIChMT0dfREVCVUcpIGxvZygnW0RlYnVnXSBOb3cgd2UgYXJlIGNyZWF0aW5nIG5ldyBzdGF0ZSBbJyArIGxvb3BQYXJhbVswXSArICddJykKICAgICAgICAgICAgICAgICAgICBsZXQgaW5pdCA9IG51bGw7CiAgICAgICAgICAgICAgICAgICAgaWYobG9vcFBhcmFtWzFdLmRlZiA9PT0gdW5kZWZpbmVkKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmKGxvb3BQYXJhbVsxXS50eXBlID09PSAnbnVtYmVyJykgaW5pdCA9IDA7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmKGxvb3BQYXJhbVsxXS50eXBlID09PSAnYm9vbGVhbicpIGluaXQgPSBmYWxzZTsKICAgICAgICAgICAgICAgICAgICAgICAgaWYobG9vcFBhcmFtWzFdLnR5cGUgPT09ICdzdHJpbmcnKSBpbml0ID0gJyc7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgaW5pdCA9IGxvb3BQYXJhbVsxXS5kZWY7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHNldFN0YXRlKGxvb3BQYXJhbVswXSwgaW5pdCwgdHJ1ZSwgZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoTE9HX0RFQlVHKSBsb2coJ1tEZWJ1Z10gc2V0U3RhdGUgZHVyY2hnZWbDvGhydDogJyArIGxvb3BQYXJhbVswXSk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBudW1TdGF0ZXMtLTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChudW1TdGF0ZXMgPT09IDApIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoTE9HX0RFQlVHKSBsb2coJ1tEZWJ1Z10gQWxsIHN0YXRlcyBwcm9jZXNzZWQuJyk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBjYWxsYmFjayA9PT0gJ2Z1bmN0aW9uJykgeyAvLyBleGVjdXRlIGlmIGEgZnVuY3Rpb24gd2FzIHByb3ZpZGVkIHRvIHBhcmFtZXRlciBjYWxsYmFjawogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoTE9HX0RFQlVHKSBsb2coJ1tEZWJ1Z10gRnVuY3Rpb24gdG8gY2FsbGJhY2sgcGFyYW1ldGVyIHdhcyBwcm92aWRlZCcpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gY2FsbGJhY2soKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgICAgIH0sIERFTEFZICsgKDIwICogY291bnRlcikgKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfSk7CiAgICB9Cn0KCmxldCBzdGF0ZXNUb0NyZWF0ZSA9IFsKICAgIAogICAgLy9GZW5zdGVyCiAgICBbJ1Rlc3QuRmVuc3Rlci5Lw7xjaGVuZmVuc3RlcicsIHsnbmFtZSc6J0vDvGNoZW5mZW5zdGVyJywgJ3R5cGUnOidzdHJpbmcnLCAncmVhZCc6dHJ1ZSwgJ3dyaXRlJzp0cnVlLCAncm9sZSc6J3N0cmluZycsICdkZWYnOicnfV0sCiAgICBbJ1Rlc3QuRmVuc3Rlci5CYWRlemltbWVyZmVuc3Rlc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4nLCB7J25hbWUnOidGZW5zdGVyX2dla2lwcHRfb2Rlcl9vZmZlbicsICd0eXBlJzonbnVtYmVyJywgJ3JlYWQnOnRydWUsICd3cml0ZSc6dHJ1ZSwgJ3JvbGUnOidudW1iZXInLCAndW5pdCc6J2dla2lwcHQgb2RlciBvZmZlbid9XSwKICAgIFsnV29obnVuZy5TdGF0dXMuRmVuc3Rlci5UZXh0X0ZlbnN0ZXJfb2ZmZW4nLCB7J25hbWUnOidUZXh0X0ZlbnN0ZXJfb2ZmZW4nLCAndHlwZSc6J3N0cmluZycsICdyZWFkJzp0cnVlLCAnd3JpdGUnOnRydWUsICdyb2xlJzonc3RyaW5nJywgJ2RlZic6Jyd9XSwKICAgIFsnV29obnVuZy5TdGF0dXMuRmVuc3Rlci5UZXh0X0ZlbnN0ZXJfZ2VzY2hsb3NzZW4nLCB7J25hbWUnOidUZXh0X0ZlbnN0ZXJfZ2VzY2hsb3NzZW4nLCAndHlwZSc6J3N0cmluZycsICdyZWFkJzp0cnVlLCAnd3JpdGUnOnRydWUsICdyb2xlJzonc3RyaW5nJywgJ2RlZic6Jyd9XSwKICAgIFsnV29obnVuZy5TdGF0dXMuRmVuc3Rlci5UZXh0X0ZlbnN0ZXJfZ2VraXBwdCcsIHsnbmFtZSc6J1RleHRfRmVuc3Rlcl9nZWtpcHB0JywgJ3R5cGUnOidzdHJpbmcnLCAncmVhZCc6dHJ1ZSwgJ3dyaXRlJzp0cnVlLCAncm9sZSc6J3N0cmluZycsICdkZWYnOicnfV0KICAgIApdOyAgICAKY3JlYXRlVXNlclN0YXRlcygnMF91c2VyZGF0YS4wJywgdHJ1ZSwgc3RhdGVzVG9DcmVhdGUpOwo=</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> </block> <block type="comment" id="geR:o({PyTnc(Sc5gB.:" x="13" y="113"> <field name="COMMENT">reagiere auf folgende Trigger</field> <next> <block type="procedures_callcustomnoreturn" id="Y(J+8eW-a^mbu))S=bB_" disabled="true"> <mutation name="Datenpunkt_erstellen"></mutation> <next> <block type="timeouts_settimeout" id="+Gk%Hxz^:(Vu2fU3uMOy"> <field name="NAME">Blockly_start</field> <field name="DELAY">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="procedures_callnoreturn" id="a%u~-DA;v9lz*7y_A:WS"> <mutation name="Fensterstatus"></mutation> </block> </statement> <next> <block type="comment" id="-[x6iQ8F2f/Qwfc!di@5"> <field name="COMMENT">Variable leeren</field> <next> <block type="variables_set" id="w`V{-Z$TSJHD^w3Mhv[L"> <field name="VAR" id="lORNh2Pt?czf/[Pfo.(1" variabletype="">var_fenster_offen</field> <value name="VALUE"> <block type="math_number" id="Z1]U/sdF5V*!~Ip5zG;n"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="WfxP0rlOpOKw)?Y3R7vR"> <field name="VAR" id="6VGwAvuZ|naQs:$3=)Eu" variabletype="">var_fenster_gekippt</field> <value name="VALUE"> <block type="math_number" id="1`$;p(lD.pfawVZ1!}IU"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="9qYGr4CdkO9)^sMLnwes"> <field name="VAR" id="DhL`*s-7|kUw=e@q/mo/" variabletype="">var_fenster_geschlossen</field> <value name="VALUE"> <block type="math_number" id="/00-df~G{q{oy$`Uh#kG"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="BKVG2gp$kl``tS32p,T4"> <field name="VAR" id="Q!dr0|xbBMZfEjF}8{ex" variabletype="">var_gekippt_oder_offen</field> <value name="VALUE"> <block type="math_number" id="XHe|v8~z%H}DdPk;Zp_r"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="Tdl3/XF*h}|M~s7K+_ZF"> <field name="VAR" id="b?%5%fXn!w`Ft,m~9C}C" variabletype="">var_text_fenster_offen</field> <value name="VALUE"> <block type="text" id="`T;,z1M9sqS/R+@$}]T5"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="VMv-Y|2Q|j3`)gp,}9#b"> <field name="VAR" id="6%kvOp_86|coob7n0tCg" variabletype="">var_text_fenster_geschlossen</field> <value name="VALUE"> <block type="text" id="avcB2CO@{:|O49@D!$6^"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="!6|l#:oN0([^)$Yc^YH7"> <field name="VAR" id="eVC#)Xjk3Fn4EhfdHvKE" variabletype="">var_text_fenster_gekippt</field> <value name="VALUE"> <block type="text" id="ExP%4X;!}S*9Ne)L815."> <field name="TEXT"></field> </block> </value> <next> <block type="on_ext" id="DgLM(@Y`m9+Ax*`]}ZYv"> <mutation items="3"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="MccWTVNiQj=Ev_+^s,pL"> <field name="oid">hm-rpc.0.0000D709955B95.1.STATE</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="Mrs,}xc]])?#Wa$w[FUu"> <field name="oid">hm-rpc.0.0000D709958ABE.1.STATE</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="hN3kCNp~e$@_2)VI6gB^"> <field name="oid">hm-rpc.0.0007D7099D0094.1.STATE</field> </shadow> </value> <statement name="STATEMENT"> <block type="procedures_callnoreturn" id="7?o_K3(srgL!,g:;gU-g"> <mutation name="Fensterstatus"></mutation> </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> <block type="procedures_defnoreturn" id="Xk^vR39OPj@](zj0l0ie" x="537" y="138"> <field name="NAME">Fensterstatus</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="comment" id="a@L9O?y5TLjU-LM5(Urk"> <field name="COMMENT">Variable leeren</field> <next> <block type="variables_set" id=":H.wuG#*Yo7wd`F3{J#7"> <field name="VAR" id="lORNh2Pt?czf/[Pfo.(1" variabletype="">var_fenster_offen</field> <value name="VALUE"> <block type="math_number" id="YarVMAh4Yxz188pV-xqH"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="y2WI?uN%yrW`vbHg`}1+"> <field name="VAR" id="6VGwAvuZ|naQs:$3=)Eu" variabletype="">var_fenster_gekippt</field> <value name="VALUE"> <block type="math_number" id="s7OCAH-QGxj4(49E_I[7"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="4YM9vFx)m%S/?|sy+L/K"> <field name="VAR" id="DhL`*s-7|kUw=e@q/mo/" variabletype="">var_fenster_geschlossen</field> <value name="VALUE"> <block type="math_number" id="xoOIp_`j%6Yvm)fO4H@b"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="(Gu9X1R-+OVV1||JYWoB"> <field name="VAR" id="Q!dr0|xbBMZfEjF}8{ex" variabletype="">var_gekippt_oder_offen</field> <value name="VALUE"> <block type="math_number" id="4J^L*J,iTc#?B`uw)VBV"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="2(lp]B!*k{s.{8][#iNn"> <field name="VAR" id="b?%5%fXn!w`Ft,m~9C}C" variabletype="">var_text_fenster_offen</field> <value name="VALUE"> <block type="text" id="`O#o({1]d,CG)LDi9lvg"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="|18Gm{CeFWL@fP,_;yQP"> <field name="VAR" id="6%kvOp_86|coob7n0tCg" variabletype="">var_text_fenster_geschlossen</field> <value name="VALUE"> <block type="text" id="yR]le$Qehw6w=g*Q7x(_"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="^8D#R78R#fP@2mo38mQa"> <field name="VAR" id="eVC#)Xjk3Fn4EhfdHvKE" variabletype="">var_text_fenster_gekippt</field> <value name="VALUE"> <block type="text" id="3?AaETaiw%+#1-;h1#`@"> <field name="TEXT"></field> </block> </value> <next> <block type="comment" id="glO*z5IXA{#CYu{RMsIe"> <field name="COMMENT">Küche</field> <next> <block type="controls_if" id="J2][l}#NSd|pngy0$L0="> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_compare" id="mO]#1s+,MD,R8.Zq5nq6"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="I]jO~iP9%)1XhsK+q=gS"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.0000D709955B95.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id="U.:8l|-o4c4p^Jgo*ZV?"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="V+Lqq?[{%#15_2gbKIst"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Test.Fenster.Küchenfenster</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id=",~d%=[C#3~h8Z$5u~%+@"> <field name="TEXT">offen</field> </block> </value> <next> <block type="math_change" id="HCVS}^ZKI87xqXjC=/V8"> <field name="VAR" id="lORNh2Pt?czf/[Pfo.(1" variabletype="">var_fenster_offen</field> <value name="DELTA"> <shadow type="math_number" id="-+LTb`4N`3J|O#Vb|9y#"> <field name="NUM">1</field> </shadow> </value> <next> <block type="math_change" id="3-V7%LW.j]:m8R?xm`D|"> <field name="VAR" id="Q!dr0|xbBMZfEjF}8{ex" variabletype="">var_gekippt_oder_offen</field> <value name="DELTA"> <shadow type="math_number" id="a%3x?`hhvQ)(j!E:4KCa"> <field name="NUM">1</field> </shadow> </value> <next> <block type="text_append" id="FTtc9IzL,#7|7@:M;|h#"> <field name="VAR" id="b?%5%fXn!w`Ft,m~9C}C" variabletype="">var_text_fenster_offen</field> <value name="TEXT"> <shadow type="text" id="t3^uU`?7qM8|S,NHuq-?"> <field name="TEXT">Küche, </field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="nk3|QaDe]0JlMtc]`kj~"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Xo~iN~*^Xnt0P(zk};`k"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.0000D709955B95.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id="30Amp1V/h6gj!5#[kIe_"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="update" id="X;KG2Sc2]tGkF,/ZSLY("> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Test.Fenster.Küchenfenster</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="FkDsWc2P[PNCy=@3ae[r"> <field name="TEXT">gekippt</field> </block> </value> <next> <block type="math_change" id="Fy)COP2ti!w_w=X|SevI"> <field name="VAR" id="6VGwAvuZ|naQs:$3=)Eu" variabletype="">var_fenster_gekippt</field> <value name="DELTA"> <shadow type="math_number" id="q^`qi.(M*$`X?#FpZD[4"> <field name="NUM">1</field> </shadow> </value> <next> <block type="math_change" id="[j8CM5Yxg/nIJQxi^A{y"> <field name="VAR" id="Q!dr0|xbBMZfEjF}8{ex" variabletype="">var_gekippt_oder_offen</field> <value name="DELTA"> <shadow type="math_number" id="!udUyEjuH2Df+GM(?r6~"> <field name="NUM">1</field> </shadow> </value> <next> <block type="text_append" id="Udo5W?O[hjo_Z:*}i?w`"> <field name="VAR" id="eVC#)Xjk3Fn4EhfdHvKE" variabletype="">var_text_fenster_gekippt</field> <value name="TEXT"> <shadow type="text" id="Vp}1hVOG1koCX3D/y#ZJ"> <field name="TEXT">Küche, </field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_compare" id="gdAQZ+.qY;Ry2pR610$("> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="y5dwS7Z[d0c:Odc|uLzL"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.0000D709955B95.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id="-tRl3r_7*Ajlwx1(oUP{"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO2"> <block type="update" id="D;!HMDfrN~7m%sl0pnhI"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Test.Fenster.Küchenfenster</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="V]y_{vL0$OhZ#Y4C+r{;"> <field name="TEXT">geschlossen</field> </block> </value> <next> <block type="math_change" id=",rD_tN|Rdpsz;#redWHj"> <field name="VAR" id="DhL`*s-7|kUw=e@q/mo/" variabletype="">var_fenster_geschlossen</field> <value name="DELTA"> <shadow type="math_number" id="H#w851jEyqW~Ub#o`6sJ"> <field name="NUM">1</field> </shadow> </value> <next> <block type="text_append" id="q(hTLe5^6W6cJ`YAb;Jd"> <field name="VAR" id="6%kvOp_86|coob7n0tCg" variabletype="">var_text_fenster_geschlossen</field> <value name="TEXT"> <shadow type="text" id="[U#TVSVr%UU+/##%`k4W"> <field name="TEXT">Küche, </field> </shadow> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="Ydw`0n3@0ftZ7+U,}r_R"> <field name="COMMENT">Badezimmer</field> <next> <block type="controls_if" id="N~CHU22_MkH*VAX5s!xV"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_compare" id="x}0?B9a8/|)]2.^+G_34"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="DtG7%]ZkM8OU4|T9[`FE"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.0000D709958ABE.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id="Sw[[2u%w5+Z)4y(D%F%C"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="b.oXNz.%{iH5vOAY+B_y"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Test.Fenster.Badezimmerfenster</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id=")jM/7;BZrueDT|7q;iNV"> <field name="TEXT">offen</field> </block> </value> <next> <block type="math_change" id=",hW}7cf`f=J}wH47muJ~"> <field name="VAR" id="lORNh2Pt?czf/[Pfo.(1" variabletype="">var_fenster_offen</field> <value name="DELTA"> <shadow type="math_number" id="9QF7$`Z$s_D0$tkX(q=7"> <field name="NUM">1</field> </shadow> </value> <next> <block type="math_change" id="JplL`/=~]iy(ITu;4=O7"> <field name="VAR" id="Q!dr0|xbBMZfEjF}8{ex" variabletype="">var_gekippt_oder_offen</field> <value name="DELTA"> <shadow type="math_number" id="sd7v+F0lh7jxlqTM@to7"> <field name="NUM">1</field> </shadow> </value> <next> <block type="text_append" id="?Bc(bxJ11JWSIN][*7y+"> <field name="VAR" id="b?%5%fXn!w`Ft,m~9C}C" variabletype="">var_text_fenster_offen</field> <value name="TEXT"> <shadow type="text" id="Oad/M:ODDz971h$^61NP"> <field name="TEXT">Badezimmer, </field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="m0u%$/QO(l1.:HO.E52="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="6QSIvk^*{e=]o}^R;t;`"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.0000D709958ABE.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id="}wv/U0,ZMbo{RgpY=+B("> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="update" id="dD@_qbM.S50+o8m.SQ.."> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Test.Fenster.Badezimmerfenster</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="x}cG;Xn|D^p*o5V#b5QU"> <field name="TEXT">gekippt</field> </block> </value> <next> <block type="math_change" id="Soc/.;N~x~/LRHtvPmjW"> <field name="VAR" id="6VGwAvuZ|naQs:$3=)Eu" variabletype="">var_fenster_gekippt</field> <value name="DELTA"> <shadow type="math_number" id="ldC95^aPu9Kbi#!Oc1?9"> <field name="NUM">1</field> </shadow> </value> <next> <block type="math_change" id="ezL]})RnyA{n-.cd8M*_"> <field name="VAR" id="Q!dr0|xbBMZfEjF}8{ex" variabletype="">var_gekippt_oder_offen</field> <value name="DELTA"> <shadow type="math_number" id="-cb:g!o^6Hw2*X`[%wb6"> <field name="NUM">1</field> </shadow> </value> <next> <block type="text_append" id=":1;@t*xz=1wAlXOHybqu"> <field name="VAR" id="eVC#)Xjk3Fn4EhfdHvKE" variabletype="">var_text_fenster_gekippt</field> <value name="TEXT"> <shadow type="text" id="seAD)^$m9oNzOiYwDNrf"> <field name="TEXT">Badezimmer, </field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_compare" id="nX!K![C+S_b!s]OG)l;d"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="cK;^Bieg:3Zl3#!O4]-@"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.0000D709958ABE.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id="_,K4[X!l+]ssFD%e%ruG"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO2"> <block type="update" id="%eHLjzdIvjp]%OLF)Z9y"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Test.Fenster.Badezimmerfenster</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="*MkgG,L[XiNa^]16KcNr"> <field name="TEXT">geschlossen</field> </block> </value> <next> <block type="math_change" id="ttfVeGya]{afz3JuF|N`"> <field name="VAR" id="DhL`*s-7|kUw=e@q/mo/" variabletype="">var_fenster_geschlossen</field> <value name="DELTA"> <shadow type="math_number" id="-^kT~z}~TfI8x{P-j|^N"> <field name="NUM">1</field> </shadow> </value> <next> <block type="text_append" id="4i@`tENHS^iX:zHs;9*b"> <field name="VAR" id="6%kvOp_86|coob7n0tCg" variabletype="">var_text_fenster_geschlossen</field> <value name="TEXT"> <shadow type="text" id="1j@V[[/5O+::UChH5RU2"> <field name="TEXT">Badezimmer, </field> </shadow> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="[~/l(#$5e`uo-cG1##pC"> <field name="COMMENT">Werkstatt</field> <next> <block type="controls_if" id="OP7*#wSk;c#[e-B[A*2P"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_compare" id="wnvMh(,O]Yh*i?iAI.qI"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@89|YY-vGSv8I;as:6-o"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.0007D7099D0094.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id=")8j+4.iQrF3GOXoev,2("> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="ARUgXh?}4{8zUZZ`B5+@"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Test.Fenster.Werkstattfenster</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="0E7V~Hoh*)(31.qF8J($"> <field name="TEXT">offen</field> </block> </value> <next> <block type="math_change" id="v+sMTPj4Nb_zbqdx%),z"> <field name="VAR" id="lORNh2Pt?czf/[Pfo.(1" variabletype="">var_fenster_offen</field> <value name="DELTA"> <shadow type="math_number" id="0)+.{tIs6a=_6;dcg1f7"> <field name="NUM">1</field> </shadow> </value> <next> <block type="math_change" id="cUhl1{PO+M*=lU}54h7$"> <field name="VAR" id="Q!dr0|xbBMZfEjF}8{ex" variabletype="">var_gekippt_oder_offen</field> <value name="DELTA"> <shadow type="math_number" id=":Na]Z.-?cD%{nrEWk.-A"> <field name="NUM">1</field> </shadow> </value> <next> <block type="text_append" id="m15IJ5^FwZk{}u-Asqhi"> <field name="VAR" id="b?%5%fXn!w`Ft,m~9C}C" variabletype="">var_text_fenster_offen</field> <value name="TEXT"> <shadow type="text" id="jA.BLs.}}lRtOWcE|5Dh"> <field name="TEXT">Werkstatt, </field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="v{VVz]f+7/^T83F;qwCh"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="48Ue+W`T#5)$UvgB4CLV"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.0007D7099D0094.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id="PlAoGB3][LKO)FC-O!3D"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="update" id=")VJa7kr26f1YX7tfK-p{"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Test.Fenster.Werkstattfenster</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="i})Q%_@#8`m+m=?XUOCQ"> <field name="TEXT">gekippt</field> </block> </value> <next> <block type="math_change" id=":*_G+[%r$^3(|@BH+JKb"> <field name="VAR" id="6VGwAvuZ|naQs:$3=)Eu" variabletype="">var_fenster_gekippt</field> <value name="DELTA"> <shadow type="math_number" id="O6mrs=Xd`$p]8ZR65s@x"> <field name="NUM">1</field> </shadow> </value> <next> <block type="math_change" id="=gTS{(lJP:lV0%{[=lgR"> <field name="VAR" id="Q!dr0|xbBMZfEjF}8{ex" variabletype="">var_gekippt_oder_offen</field> <value name="DELTA"> <shadow type="math_number" id="n?R}PhCBY97J$RdxA6Ef"> <field name="NUM">1</field> </shadow> </value> <next> <block type="text_append" id="mG]hiRc_,.]b?^R5x13U"> <field name="VAR" id="eVC#)Xjk3Fn4EhfdHvKE" variabletype="">var_text_fenster_gekippt</field> <value name="TEXT"> <shadow type="text" id="b?,{4rjg3,XM=*64+Inc"> <field name="TEXT">Werkstatt, </field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_compare" id="T5buE9$1:ZN^%B66`::Y"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="TF!FzD^Rp#OX|x1/V0f-"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.0007D7099D0094.1.STATE</field> </block> </value> <value name="B"> <block type="math_number" id="e7i(0d85q`1$DCuR56;~"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO2"> <block type="update" id="%~c$;JCReV$RsGh5NLv5"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Test.Fenster.Werkstattfenster</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="vkLs,63Ib+s%yY{n@Kfi"> <field name="TEXT">geschlossen</field> </block> </value> <next> <block type="math_change" id="W?uyh{av*NFFC{04|%k#"> <field name="VAR" id="DhL`*s-7|kUw=e@q/mo/" variabletype="">var_fenster_geschlossen</field> <value name="DELTA"> <shadow type="math_number" id="ZurkFDSHF}HjnaF2R.aH"> <field name="NUM">1</field> </shadow> </value> <next> <block type="text_append" id="qwEpW5DvWsvZ(hW|fulP"> <field name="VAR" id="6%kvOp_86|coob7n0tCg" variabletype="">var_text_fenster_geschlossen</field> <value name="TEXT"> <shadow type="text" id=")}2T3DjV;)}0q`KjGvII"> <field name="TEXT">Werkstatt, </field> </shadow> </value> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="RDjYVBiEg%d{JKKqt*S9"> <field name="COMMENT">beschreibe Datenpunkte</field> <next> <block type="update" id="-3oB33jwlN508i-4E*}w"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Wohnung.Status.Fenster.Fenster_geöffnet</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="xR{gt@Ts~#^Q9n|/7Vu5"> <field name="VAR" id="lORNh2Pt?czf/[Pfo.(1" variabletype="">var_fenster_offen</field> </block> </value> <next> <block type="update" id="a]e?hE7O*~=.S!87wjR:"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Wohnung.Status.Fenster.Fenster_gekippt</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="Y#BPd=k:t=5,G^{jnDF}"> <field name="VAR" id="6VGwAvuZ|naQs:$3=)Eu" variabletype="">var_fenster_gekippt</field> </block> </value> <next> <block type="update" id="dtp#.,MnI;VX2Y`qc.l7"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Wohnung.Status.Fenster.Fenster_geschlossen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="bQa7LPM/k)+@]-qIjJ1w"> <field name="VAR" id="DhL`*s-7|kUw=e@q/mo/" variabletype="">var_fenster_geschlossen</field> </block> </value> <next> <block type="update" id="rZ}wkcie,QM7pcU`PLXB"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.Wohnung.Status.Fenster.Fenster_gekippt_oder_offen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="i~|ae^TsBqjwX~vZW|o;"> <field name="VAR" id="Q!dr0|xbBMZfEjF}8{ex" variabletype="">var_gekippt_oder_offen</field> </block> </value> <next> <block type="control_ex" id="XCf64K3Gz~M:BgGeoa@y" inline="true"> <field name="TYPE">true</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="?[X/29n;(u{TATZZ~dec"> <field name="oid">0_userdata.0.Wohnung.Status.Fenster.Text_Fenster_offen</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id="9H9%GpT0qgY10(~!Pm[f"> <field name="BOOL">TRUE</field> </shadow> <block type="text_getSubstring" id=".5(:l[`30E{!?e+KIr^!"> <mutation at1="false" at2="true"></mutation> <field name="WHERE1">FIRST</field> <field name="WHERE2">FROM_END</field> <value name="STRING"> <block type="variables_get" id="KC/3LpVl3Gd~F{CI@bWx"> <field name="VAR" id="b?%5%fXn!w`Ft,m~9C}C" variabletype="">var_text_fenster_offen</field> </block> </value> <value name="AT2"> <block type="math_number" id="A?H)rLu=IeK_o$IE^ZnH"> <field name="NUM">3</field> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="fWhjNhW-*YLrfuSN]2A~"> <field name="NUM">0</field> </shadow> </value> <next> <block type="control_ex" id="!9f|*xHYCwQc-|finaI]" inline="true"> <field name="TYPE">true</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="K`xH0x_jw(QW|KiXN^*D"> <field name="oid">0_userdata.0.Wohnung.Status.Fenster.Text_Fenster_geschlossen</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id="VpfP}pqKK^lE{n`!NVNB"> <field name="BOOL">TRUE</field> </shadow> <block type="text_getSubstring" id="@gfzBds042An6nMOt:7y"> <mutation at1="false" at2="true"></mutation> <field name="WHERE1">FIRST</field> <field name="WHERE2">FROM_END</field> <value name="STRING"> <block type="variables_get" id="mXvLHmk)x{ce!tghRB]n"> <field name="VAR" id="6%kvOp_86|coob7n0tCg" variabletype="">var_text_fenster_geschlossen</field> </block> </value> <value name="AT2"> <block type="math_number" id="P`+^%vH?))MH*^ckJ||D"> <field name="NUM">3</field> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="9_LY!)*l[asJ3JTwZFCx"> <field name="NUM">0</field> </shadow> </value> <next> <block type="control_ex" id="m6^lw2,!JEE[tKI*-`l6" inline="true"> <field name="TYPE">true</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="r;*JW6Hz*h7esb.hd3#B"> <field name="oid">0_userdata.0.Wohnung.Status.Fenster.Text_Fenster_gekippt</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id="}lHR]LNW)UPqJ;(*DNu1"> <field name="BOOL">TRUE</field> </shadow> <block type="text_getSubstring" id="j}2kpDWLFmr5T(:J.Qte"> <mutation at1="false" at2="true"></mutation> <field name="WHERE1">FIRST</field> <field name="WHERE2">FROM_END</field> <value name="STRING"> <shadow type="text" id="EteP_lG{uP,pZJaNsx*p"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="7tl#dIaPWqa:wQUSuZA,"> <field name="VAR" id="eVC#)Xjk3Fn4EhfdHvKE" variabletype="">var_text_fenster_gekippt</field> </block> </value> <value name="AT2"> <block type="math_number" id="2yp=%?jUba8Rzi9:[Bc;"> <field name="NUM">3</field> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="~9F(v:%Bs:++-1=IWv%p"> <field name="NUM">0</field> </shadow> </value> </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> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>
Ich habe mal drei Fenster von mir probiert....
-
@dos1973
Vorbau?
Du hast doch den Text in der Variablen "var_fenster_...").
Also packste die da rein (grüne Pfeile) und setzt es zusammen und auf "nimm Teil ab erster" umstellen. -
@dslraser
Oha, ah ja, "bis von hinten gibt's ja auch".
Aber wieso "3"? -
@dslraser : Vielen Dank!
ich hasse und liebe dieses Blockly
es klappt, endlich!das meine ich, ich habe den Einstige nicht gesehen - wo ich das grüne "text" puzzle reinsetzen muss.
ich habe auch nicht verstanden warum 3
ich habe den Text, ein Komma und ein Leerzeichen. ich hätte jetzt 2 erwartet?!?es klappt, ich darf gar nicht sagen wieviele Stunden ich heute und gestern an dem "Komma" gesessen habe. Dabei habe ich schon wieder einen neuen Wunsch erkannt - an dem versuche ich mich erst noch etwas
@padrino : Dir auch Danke
-
@dos1973
ich habe Deine steuere Bausteine gegen aktualisiere getauscht, da es eigene Datenpunkte sind. Ausserdem noch Deine "Textwerte" 0,1, und 2 gegen Zahlen getauscht. Deine Variablen erwarten an der Stelle auch Zahlen. -
@dslraser sagte in [Vorlage] Blockly - Beliebiges Zeichen im Text tauschen:
@dos1973
ich habe Deine steuere Bausteine gegen aktualisiere getauschdas aktualisieren und schreiben meinst du, richtig?
@dslraser sagte in [Vorlage] Blockly - Beliebiges Zeichen im Text tauschen:
@dos1973
Ausserdem noch Deine "Textwerte" 0,1, und 2 gegen Zahlen getauscht. Deine Variablen erwarten an der Stelle auch Zahlen.das verstehe ich nicht?
-
das hier hast Du in Deinem Blockly, die 2 hast Du als Text, ich als Zahl
Die Datenpunkte sind vom Typ number (in Deinem Vergleich hast Du aber string/Text)
Hier sind es auch Zahlen, das ist richtig
und das hier hast Du auch als steuere, ich als aktualisiere
-
Ahh stimmt. die Texte als Zahl
Habs verstanden.Besten Dank.
-
Hallo
Hat das ganze hier noch irgendwas mit meiner Vorlage zutun?
-
@rantanplan
Sei doch froh, dass Dein Betrag wieder auf der Startseite ist. -
@rantanplan Danke! Hat mir geholfen.
-
@rantanplan
Mal zum Thema suchen und ersetzen ? Der Alexa 2 Adapter unterstützt in Ansagen an einem Stück 250 Zeichen, alles was länger ist wird dann überhaupt nicht angesagt, bzw. Alexa bleibt stumm.
Außer man trennt die Ansage vorher, also bei weniger als 250 Zeichen mit einem Semikolon. Nun könnte man das für jedes Komma machen, aber dann käme immer eine kurze Pause und gegebenenfalls eine erneute Lautstärke Einstellung, das ist nicht so schön.
Ich möchte also, wenn der Text z.B. länger als 250 Zeichen ist (vorher braucht man es nicht), das das letzte Komma vor der 250 Zeichen Grenze in ein Semikolon getauscht wird, das gleiche dann bei länger als 500 usw., alle anderen Kommas sollen bestehen bleiben ? Hast Du eine Idee ? Die Textlänge zu ermitteln und alle Kommas zu tauschen wäre ja kein Problem, aber das will ich eben nicht.Hier mal Dein Beispiel mit einem längeren Text.
Edit: die Kommas stehen nicht immer an der gleichen Stelle, da der Text dynamisch erstellt wird.
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="QQCwp[I8C$|ZM#6]A[DX">originalText</variable> <variable id="DL=m[(MQk[xQ3tzA#5~Y">suchText</variable> <variable id="P#g79l#H+u[1XV^z1!/;">tauschText</variable> <variable id="P?^.a=/NS6|Ft?T6%EKL">MeinText</variable> <variable id="q+L1=ux*h_-%,Rn7.kf$">Text</variable> <variable id="iaprND|LS{Pgh`}8/}=_">AnzZeichenSuchtext</variable> <variable id=":NZbAIy,D5F,ieEE0^YQ">neuerText</variable> <variable id="A-Bj$%eFyxO0P_s+%}{a">Stelle</variable> <variable id=",WMv!m^Jct]heBwVA=dj">Teil_1</variable> <variable id="5.kg?*={$r-G:kUB/@-I">Teil_2</variable> </variables> <block type="comment" id="?t^|J^}%io+OnqAwVT4A" x="-237" y="-87"> <field name="COMMENT">Beliebige Zeichen tauschen</field> <next> <block type="variables_set" id="-P{_[1=caHEAoB9cP4Qx"> <field name="VAR" id="P?^.a=/NS6|Ft?T6%EKL">MeinText</field> <value name="VALUE"> <block type="text" id="-T$m6+o6r=n}V?5xePK7"> <field name="TEXT">Badezimmer Fenster rechts geöffnet, Gästezimmer Fenster links geöffnet, Küche Fenster rechts geöffnet, Schlafzimmer Fenster links geöffnet, Wohnzimmer Fenster rechts geöffnet, Keller Heizung Fenster gekippt, Keller Sauna Fenster links gekippt, Keller Werkstatt Fenster gekippt, Badezimmer Fenster links geschlossen, Gästezimmer Fenster rechts geschlossen, Keller Sauna Fenster rechts geschlossen, Keller Vorrat Fenster geschlossen, Keller W-Baum Fenster geschlossen, Keller Wohnzimmer Fenster links geschlossen, Keller Wohnzimmer Fenster mitte geschlossen, Keller Wohnzimmer Fenster rechts geschlossen, Küche Fenster links geschlossen, Küche Fenster mitte geschlossen, Schlafzimmer Fenster rechts geschlossen, Wohnzimmer Fenster links geschlossen</field> </block> </value> <next> <block type="controls_if" id="eO-Yu;zv=:r~yJNHR:iS"> <value name="IF0"> <block type="logic_negate" id="u@28{:]xG=4a9HU}|/v)"> <value name="BOOL"> <block type="text_isEmpty" id="W-_T.2)lUsLG/Z(5zIQN"> <value name="VALUE"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="9LrDM?0xYv?MX-(}2OrI"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="B?L(8|(8?-Z7Ao*[F/VM"> <field name="VAR" id="P?^.a=/NS6|Ft?T6%EKL">MeinText</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="ziw)~y|7*7le5/J*8HC#"> <field name="VAR" id=":NZbAIy,D5F,ieEE0^YQ">neuerText</field> <value name="VALUE"> <block type="procedures_callreturn" id="ECH/%?YEFylSUOK._8/K"> <mutation name="changeText"> <arg name="originalText"></arg> <arg name="suchText"></arg> <arg name="tauschText"></arg> </mutation> <value name="ARG0"> <block type="variables_get" id="Y(bM=~D[D5v)7a#1{`}`"> <field name="VAR" id="P?^.a=/NS6|Ft?T6%EKL">MeinText</field> </block> </value> <value name="ARG1"> <block type="text" id="(iqf|@QE;6:tP0}rbaEj"> <field name="TEXT">,</field> </block> </value> <value name="ARG2"> <block type="text" id="_{HiLh|2|F3|a#[4lCvX"> <field name="TEXT">;</field> </block> </value> </block> </value> <next> <block type="debug" id="W{W2NM%|mtIN3L-bnUJ="> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="1Vc5-TO!GS`sv7wb7B%}"> <field name="TEXT"></field> </shadow> <block type="text_length" id="I}qszcC1]1Mtx,ZJ=8#%"> <value name="VALUE"> <shadow type="text" id="gksY~qMc)H}`x[}HN/o}"> <field name="TEXT">abc</field> </shadow> <block type="variables_get" id="@_i,|nF!X]Sy$.6e~/Fe"> <field name="VAR" id="P?^.a=/NS6|Ft?T6%EKL">MeinText</field> </block> </value> </block> </value> <next> <block type="debug" id="g8IUrYe_.rei!S6]Mc?a"> <field name="Severity">log</field> <value name="TEXT"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="d7HPm]yEeu9+?9HT0u|l"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="^/WzSct]9kWQNOvtqOg/"> <field name="VAR" id="P?^.a=/NS6|Ft?T6%EKL">MeinText</field> </block> </value> <next> <block type="debug" id="Hme!w3Ag?_DUH%uRzR)U"> <field name="Severity">log</field> <value name="TEXT"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="d7HPm]yEeu9+?9HT0u|l"> <field name="TEXT"></field> </shadow> <block type="variables_get" id="`v3q2Xw=qC`r6)o/kUEY"> <field name="VAR" id=":NZbAIy,D5F,ieEE0^YQ">neuerText</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="procedures_defreturn" id="*?%n[KG5e1!^tNun#Hj5" x="388" y="-87"> <mutation> <arg name="originalText" varid="QQCwp[I8C$|ZM#6]A[DX"></arg> <arg name="suchText" varid="DL=m[(MQk[xQ3tzA#5~Y"></arg> <arg name="tauschText" varid="P#g79l#H+u[1XV^z1!/;"></arg> </mutation> <field name="NAME">changeText</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="variables_set" id="LyZ2%lYW+kfm,4)yV8UN"> <field name="VAR" id="q+L1=ux*h_-%,Rn7.kf$">Text</field> <value name="VALUE"> <block type="variables_get" id="da5*p]}sO:{{|ZE!nhDe"> <field name="VAR" id="QQCwp[I8C$|ZM#6]A[DX">originalText</field> </block> </value> <next> <block type="variables_set" id="yx;qp1@1fC(oiG4c5gZt"> <field name="VAR" id="iaprND|LS{Pgh`}8/}=_">AnzZeichenSuchtext</field> <value name="VALUE"> <block type="text_length" id="Jwz33ARDLc!=8:eDagDD"> <value name="VALUE"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="RZWm!~Yo4w5)66Gu|Gs_"> <field name="TEXT">abc</field> </shadow> <block type="variables_get" id="G2I+np)5qee]q{4)BlN2"> <field name="VAR" id="DL=m[(MQk[xQ3tzA#5~Y">suchText</field> </block> </value> </block> </value> <next> <block type="variables_set" id="eAGK[85W)DRaIaN!oMiH"> <field name="VAR" id="A-Bj$%eFyxO0P_s+%}{a">Stelle</field> <value name="VALUE"> <block type="text_indexOf" id="/@rj}{;VUCJ8O|28^(Hf"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="}de%ffO*rIt%j6)99pf3"> <field name="VAR" id="q+L1=ux*h_-%,Rn7.kf$">Text</field> </block> </value> <value name="FIND"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="7MprEQxoWq}#3~Xz:32k"> <field name="TEXT">%0D%0A</field> </shadow> <block type="variables_get" id="7)r.X1a~Tee1!dAwZy`!"> <field name="VAR" id="DL=m[(MQk[xQ3tzA#5~Y">suchText</field> </block> </value> </block> </value> <next> <block type="controls_whileUntil" id="4lR}{f])DWKyjt}.(6cc"> <field name="MODE">WHILE</field> <value name="BOOL"> <block type="logic_compare" id="e`eUWK6kyOU=[/x]M({`"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="}7HLWRwI(SDg1^@=czoV"> <field name="VAR" id="A-Bj$%eFyxO0P_s+%}{a">Stelle</field> </block> </value> <value name="B"> <block type="math_number" id="#y,za{r#@s7Ri.U!9v)A"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO"> <block type="controls_if" id="PM@Su)b1YOhTZo2qPxB]"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="l,u?h{)Z-u/OozI,.79G"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="B/K~z.ANK2);I3(uk4Bh"> <field name="VAR" id="A-Bj$%eFyxO0P_s+%}{a">Stelle</field> </block> </value> <value name="B"> <block type="math_number" id="|3~K:6jrHq7oxz=fL:Yz"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="uN{|N4-0EabDJqYE0]@#"> <field name="COMMENT">steht am Textanfang</field> <next> <block type="variables_set" id="9?Gy,w.t#1pdl^AOxc#Y"> <field name="VAR" id=",WMv!m^Jct]heBwVA=dj">Teil_1</field> <value name="VALUE"> <block type="variables_get" id="h(#=bJ`DU%y/Jd9%HR9I"> <field name="VAR" id="P#g79l#H+u[1XV^z1!/;">tauschText</field> </block> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="{R*X,7K)DA^dq/.~KK7{"> <field name="VAR" id=",WMv!m^Jct]heBwVA=dj">Teil_1</field> <value name="VALUE"> <block type="text_getSubstring" id="Img0opt.EB#)RM-bp~hw"> <mutation at1="false" at2="true"></mutation> <field name="WHERE1">FIRST</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="A9h*F{tgJR0y[Q0uv7,="> <field name="VAR" id="q+L1=ux*h_-%,Rn7.kf$">Text</field> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="([5R[:8Ywn-thKN@r:~}"> <field name="OP">MINUS</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="u@:!j5WimCjV%fG9hPGs"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="U0qw,~,2KoaAc37UO{l#"> <field name="VAR" id="A-Bj$%eFyxO0P_s+%}{a">Stelle</field> </block> </value> <value name="B"> <shadow type="math_number" id="DT#zRSRu1.y^|5Z#G37W"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> </block> </statement> <next> <block type="variables_set" id="Else^,?QE9TTS.Y%K]W="> <field name="VAR" id="5.kg?*={$r-G:kUB/@-I">Teil_2</field> <value name="VALUE"> <block type="text_getSubstring" id="e8A7NqY7O!@K(aFlMpV#" inline="false"> <mutation at1="true" at2="false"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">LAST</field> <value name="STRING"> <block type="variables_get" id="|jU0g8+eIgwn_|IB56)@"> <field name="VAR" id="q+L1=ux*h_-%,Rn7.kf$">Text</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="F#*%;R9ugmwaaas?WBwG"> <field name="OP">ADD</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="8/I%=/~YReHV]Iwo{}(J"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="R0|a}kx2M~SYjPKS5Cc{"> <field name="VAR" id="A-Bj$%eFyxO0P_s+%}{a">Stelle</field> </block> </value> <value name="B"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id=";Q(aJ::90?0?H;-45cgS"> <field name="NUM">0</field> </shadow> <block type="variables_get" id="dY33=1IVxkrSH1k1#X6A"> <field name="VAR" id="iaprND|LS{Pgh`}8/}=_">AnzZeichenSuchtext</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="OcJS!-Ku1vQY4)I+r,gc"> <field name="VAR" id="q+L1=ux*h_-%,Rn7.kf$">Text</field> <value name="VALUE"> <block type="text_join" id="%%D@nUqB1tt^`?qrUahx"> <mutation items="3"></mutation> <value name="ADD0"> <block type="variables_get" id="q]l%0Dpb89BZy1-m[TjM"> <field name="VAR" id=",WMv!m^Jct]heBwVA=dj">Teil_1</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="f~POFU0}K4-w]xVc1?,`"> <field name="VAR" id="P#g79l#H+u[1XV^z1!/;">tauschText</field> </block> </value> <value name="ADD2"> <block type="variables_get" id="U77~u,Qfmb2g[O19eHoh"> <field name="VAR" id="5.kg?*={$r-G:kUB/@-I">Teil_2</field> </block> </value> </block> </value> <next> <block type="variables_set" id="lao?KUxF77Si~Xc2j%^{"> <field name="VAR" id="A-Bj$%eFyxO0P_s+%}{a">Stelle</field> <value name="VALUE"> <block type="text_indexOf" id="[),PN,ZrAW,C/~:K[x[:"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="6{t:BeVh6=bsQF(zUhYG"> <field name="VAR" id="q+L1=ux*h_-%,Rn7.kf$">Text</field> </block> </value> <value name="FIND"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="{Vd/Su8uk@lo|:3KMi1L"> <field name="TEXT">%0D%0A</field> </shadow> <block type="variables_get" id="r|~fKkGR#@1@G6_GX`-g"> <field name="VAR" id="DL=m[(MQk[xQ3tzA#5~Y">suchText</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="RETURN"> <block type="variables_get" id=".*DA-:q/GzURSEPH2ZiQ"> <field name="VAR" id="q+L1=ux*h_-%,Rn7.kf$">Text</field> </block> </value> </block> </xml>
-
Probier mal.
Ist sicher nicht schön, aber scheint hier zu funktionieren.Hat mich Nerven gekostet, aber jetzt kann ich ins Bett - schlafen.
N8...<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="0aB0N-YiCJhh/N;jnuzG">neuerText</variable> <variable id="UU7uV-BrPR`oZ7}SlnaF">MeinText</variable> <variable id="i@/uXUvk|?_E05h[9^`8">Stelle</variable> <variable id="hUL|?bA1I{i4@V3nwNHT">Treffer</variable> <variable type="interval" id="Intervall">Intervall</variable> </variables> <block type="variables_set" id="A}IB(5!H]c);o:_[8}{D" x="-355" y="-709"> <field name="VAR" id="0aB0N-YiCJhh/N;jnuzG">neuerText</field> <value name="VALUE"> <block type="text" id="W=vI:4}6b=eBQfwA/@_z"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="MbkDBQQbA9yFBy?SrK?2"> <field name="VAR" id="UU7uV-BrPR`oZ7}SlnaF">MeinText</field> <value name="VALUE"> <block type="text" id="CGj/cx]L]d=#ly74!m/+"> <field name="TEXT">Als es die ersten Hügel des Kursivgebirges erklommen hatte, warf es einen letzten Blick zurück auf die Skyline seiner Heimatstadt Buchstabhausen, die Headline von Alphabetdorf und die Subline seiner eigenen Straße, der Zeilengasse. Wehmütig lief ihm eine rethorische Frage über die Wange, dann setzte es seinen Weg fort. Unterwegs traf es eine Copy. Die Copy warnte das Blindtextchen, da, wo sie herkäme wäre sie zigmal umgeschrieben worden und alles, was von ihrem Ursprung noch übrig wäre, sei das Wort „und“ und das Blindtextchen solle umkehren und wieder in sein eigenes, sicheres Land zurückkehren. Doch alles Gutzureden konnte es nicht überzeugen und so dauerte es nicht lange, bis ihm ein paar heimtückische Werbetexter auflauerten, es mit Longe und Parole betrunken machten und es dann in ihre Agentur schleppten, wo sie es für ihre Projekte wieder und wieder mißbrauchten.</field> </block> </value> <next> <block type="variables_set" id="|^%lFij%g-HsiWYoi,38"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> <value name="VALUE"> <block type="math_number" id="8Q(k}l{R[81cy/xUw}Y#"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="mSx.J=PUI:;n}gW,zfKU"> <field name="VAR" id="hUL|?bA1I{i4@V3nwNHT">Treffer</field> <value name="VALUE"> <block type="math_number" id="je$mCO9cc]!y8Ej*AdV*"> <field name="NUM">0</field> </block> </value> <next> <block type="timeouts_setinterval" id="p|:UwLu0aN3,Vq+v/r0w"> <field name="NAME">Intervall</field> <field name="INTERVAL">150</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="variables_set" id="M_nRuQ#s_dE4X+{v|`Ar"> <field name="VAR" id="hUL|?bA1I{i4@V3nwNHT">Treffer</field> <value name="VALUE"> <block type="text_indexOf" id="}+VbP)$cJ:3HoM7,z$Zf"> <field name="END">LAST</field> <value name="VALUE"> <block type="text_getSubstring" id="!]cu%34qzw*BS?~Qq,N-"> <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="BUXJnl*~RNxhU*dS?9*M"> <field name="VAR" id="UU7uV-BrPR`oZ7}SlnaF">MeinText</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="J*Ob#$Ltx=:!Ze:(z5(X"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="DP0(0;+YwJ0B5caR$SeM"> <field name="NUM">1</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="q#maZcBr!lS}2$ujR@l,"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="WQ(EsIr2)CAuO#C2LiS`"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="VF4LnQBm@aWz_^Fh$LbV"> <field name="NUM">250</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Gjrn-B(j#?9S~Rr-WJ)/"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> </block> </value> </block> </value> <value name="FIND"> <shadow type="text" id="#zE%xxMg5Dg%,,?:$8;3"> <field name="TEXT">,</field> </shadow> </value> </block> </value> <next> <block type="controls_if" id="iz2cbp}3|o!SUoZ/!pjM"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="6[G]z-e$zjn[B}HXUsF]"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="~{{GcTOlHw#tcO)+H*jo"> <field name="VAR" id="hUL|?bA1I{i4@V3nwNHT">Treffer</field> </block> </value> <value name="B"> <block type="math_number" id="TK0s2kD+5S%r_b#/T..w"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="text_append" id="drt$J,iEw0K`=KM8o)pc"> <field name="VAR" id="0aB0N-YiCJhh/N;jnuzG">neuerText</field> <value name="TEXT"> <shadow type="text" id="m{q0{etBOSUQ3oT#}3$_"> <field name="TEXT"></field> </shadow> <block type="text_join" id="NdkdLfnK,ey{oozn`Hfz"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="!=W06cT5nW_z9!JBBy@M"> <field name="TEXT">;</field> </block> </value> <value name="ADD1"> <block type="text_getSubstring" id="ud|.@+[qT;6)g`F~=*ac"> <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="_*b!8+?NkwFw~rEeG2~j"> <field name="VAR" id="UU7uV-BrPR`oZ7}SlnaF">MeinText</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="T%T,3nHOw5rX2=A9re(N"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="u?WyLxm[mCk1,1Pn+I=S"> <field name="NUM">1</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="8#HYtKH[#ML#@+DeiX_$"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="HeyTvYlYz#Ijj)`^r~k]"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="EPG_A_}kYR+Kaarl).[-"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="#5bEumJ$aGUS`{)@Yhyw"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="QFqg*r(P1NwZ42lV_t]f"> <field name="NUM">250</field> </shadow> <block type="variables_get" id="!4Nxi1|oo|hCq`#nMnt`"> <field name="VAR" id="hUL|?bA1I{i4@V3nwNHT">Treffer</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="4XJtbReoN1S)I4sotNi/"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="MXmb%`eG`8zmC3cxyiiO"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="IFo^LCFQK:ZCR2]K_cvY"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> <value name="VALUE"> <block type="math_arithmetic" id=",noF8?wsT`j-95GsHuF2"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="#bVGhuZF*_KY):,?wu.t"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="FQriZ20Bm8U7:L+Y8UAr"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> <value name="B"> <shadow type="math_number" id="maaCrMxX9|T8!BW3FD.!"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="WIVe`%NClTJ%W[88v_{S"> <field name="VAR" id="hUL|?bA1I{i4@V3nwNHT">Treffer</field> </block> </value> </block> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="text_append" id="~DL(Win$vh^aKZAs]x:H"> <field name="VAR" id="0aB0N-YiCJhh/N;jnuzG">neuerText</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT"></field> </shadow> <block type="text_join" id="ZC`UCpyT#-,$+=fq@_Kx"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="_0/=tMBBJ=/K`5d:!Mij"> <field name="TEXT">;</field> </block> </value> <value name="ADD1"> <block type="text_getSubstring" id="MiP9kLJmb5@5Q5U/QX%C"> <mutation at1="true" at2="false"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">LAST</field> <value name="STRING"> <block type="variables_get" id="BhUVeh~(VxBI5+UHIO#R"> <field name="VAR" id="UU7uV-BrPR`oZ7}SlnaF">MeinText</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="L0tPp4hp3zPJB,5T,%Ry"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="5NxH;j::zbQK{,=t$O-R"> <field name="NUM">1</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Bx2z]e*!4yX4vvTF3YrK"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="*M6gz.1Q4ppiHVpYyW/s"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090XXXXXXXXXXXX.Commands.speak</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="wkL(GgHeX!+CL*klN).x"> <field name="VAR" id="0aB0N-YiCJhh/N;jnuzG">neuerText</field> </block> </value> <next> <block type="timeouts_clearinterval" id="8P464pV8RpEe9M?jr$-3"> <field name="NAME">Intervall</field> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
-
@padrino
funktioniert bei mir auch. Danke dafür, mir fehlte die Idee dazu. Bei mir ist zwar an der ersten Stelle auch ein Semikolon, aber das stört in der Ansage nicht und läßt sich bestimmt auch noch weg bekommen.Es ist auch tatsächlich ein Zeichen mehr als vorher (das erste Semikolon am Anfang)
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="0aB0N-YiCJhh/N;jnuzG">neuerText</variable> <variable id="UU7uV-BrPR`oZ7}SlnaF">MeinText</variable> <variable id="i@/uXUvk|?_E05h[9^`8">Stelle</variable> <variable id="hUL|?bA1I{i4@V3nwNHT">Treffer</variable> <variable type="interval" id="Intervall">Intervall</variable> </variables> <block type="variables_set" id="A}IB(5!H]c);o:_[8}{D" x="-355" y="-709"> <field name="VAR" id="0aB0N-YiCJhh/N;jnuzG">neuerText</field> <value name="VALUE"> <block type="text" id="W=vI:4}6b=eBQfwA/@_z"> <field name="TEXT"></field> </block> </value> <next> <block type="variables_set" id="MbkDBQQbA9yFBy?SrK?2"> <field name="VAR" id="UU7uV-BrPR`oZ7}SlnaF">MeinText</field> <value name="VALUE"> <block type="text" id="CGj/cx]L]d=#ly74!m/+"> <field name="TEXT">Badezimmer Fenster rechts geöffnet, Gästezimmer Fenster links geöffnet, Küche Fenster rechts geöffnet, Schlafzimmer Fenster links geöffnet, Wohnzimmer Fenster rechts geöffnet, Keller Heizung Fenster gekippt, Keller Sauna Fenster links gekippt, Keller Werkstatt Fenster gekippt, Badezimmer Fenster links geschlossen, Gästezimmer Fenster rechts geschlossen, Keller Sauna Fenster rechts geschlossen, Keller Vorrat Fenster geschlossen, Keller W-Baum Fenster geschlossen, Keller Wohnzimmer Fenster links geschlossen, Keller Wohnzimmer Fenster mitte geschlossen, Keller Wohnzimmer Fenster rechts geschlossen, Küche Fenster links geschlossen, Küche Fenster mitte geschlossen, Schlafzimmer Fenster rechts geschlossen, Wohnzimmer Fenster links geschlossen</field> </block> </value> <next> <block type="variables_set" id="|^%lFij%g-HsiWYoi,38"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> <value name="VALUE"> <block type="math_number" id="8Q(k}l{R[81cy/xUw}Y#"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="mSx.J=PUI:;n}gW,zfKU"> <field name="VAR" id="hUL|?bA1I{i4@V3nwNHT">Treffer</field> <value name="VALUE"> <block type="math_number" id="je$mCO9cc]!y8Ej*AdV*"> <field name="NUM">0</field> </block> </value> <next> <block type="debug" id="-pdULl)vQKNG+kuM)DQ["> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="5F`#PSN7z+,__lWvA/|K"> <field name="TEXT">test</field> </shadow> <block type="text_length" id="_lQ,XT[#QL4Jv+F|=En2"> <value name="VALUE"> <shadow type="text" id="7_;tZkLSh9rEo$lj2Z3A"> <field name="TEXT">abc</field> </shadow> <block type="text" id="vW)8/qt7dy)~G4PC:!Nc"> <field name="TEXT">Badezimmer Fenster rechts geöffnet, Gästezimmer Fenster links geöffnet, Küche Fenster rechts geöffnet, Schlafzimmer Fenster links geöffnet, Wohnzimmer Fenster rechts geöffnet, Keller Heizung Fenster gekippt, Keller Sauna Fenster links gekippt, Keller Werkstatt Fenster gekippt, Badezimmer Fenster links geschlossen, Gästezimmer Fenster rechts geschlossen, Keller Sauna Fenster rechts geschlossen, Keller Vorrat Fenster geschlossen, Keller W-Baum Fenster geschlossen, Keller Wohnzimmer Fenster links geschlossen, Keller Wohnzimmer Fenster mitte geschlossen, Keller Wohnzimmer Fenster rechts geschlossen, Küche Fenster links geschlossen, Küche Fenster mitte geschlossen, Schlafzimmer Fenster rechts geschlossen, Wohnzimmer Fenster links geschlossen</field> </block> </value> </block> </value> <next> <block type="debug" id="1,4vtHd.#Rt]HkAVb?_0"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="xv[bj*#d!{}IQpnh300W"> <field name="TEXT">test</field> </shadow> <block type="text" id="G*nlP1:.@eDT7D!fLss_"> <field name="TEXT">Badezimmer Fenster rechts geöffnet, Gästezimmer Fenster links geöffnet, Küche Fenster rechts geöffnet, Schlafzimmer Fenster links geöffnet, Wohnzimmer Fenster rechts geöffnet, Keller Heizung Fenster gekippt, Keller Sauna Fenster links gekippt, Keller Werkstatt Fenster gekippt, Badezimmer Fenster links geschlossen, Gästezimmer Fenster rechts geschlossen, Keller Sauna Fenster rechts geschlossen, Keller Vorrat Fenster geschlossen, Keller W-Baum Fenster geschlossen, Keller Wohnzimmer Fenster links geschlossen, Keller Wohnzimmer Fenster mitte geschlossen, Keller Wohnzimmer Fenster rechts geschlossen, Küche Fenster links geschlossen, Küche Fenster mitte geschlossen, Schlafzimmer Fenster rechts geschlossen, Wohnzimmer Fenster links geschlossen</field> </block> </value> <next> <block type="timeouts_setinterval" id="p|:UwLu0aN3,Vq+v/r0w"> <field name="NAME">Intervall</field> <field name="INTERVAL">150</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="variables_set" id="M_nRuQ#s_dE4X+{v|`Ar"> <field name="VAR" id="hUL|?bA1I{i4@V3nwNHT">Treffer</field> <value name="VALUE"> <block type="text_indexOf" id="}+VbP)$cJ:3HoM7,z$Zf"> <field name="END">LAST</field> <value name="VALUE"> <block type="text_getSubstring" id="!]cu%34qzw*BS?~Qq,N-"> <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="BUXJnl*~RNxhU*dS?9*M"> <field name="VAR" id="UU7uV-BrPR`oZ7}SlnaF">MeinText</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="J*Ob#$Ltx=:!Ze:(z5(X"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="DP0(0;+YwJ0B5caR$SeM"> <field name="NUM">1</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="q#maZcBr!lS}2$ujR@l,"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="WQ(EsIr2)CAuO#C2LiS`"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="VF4LnQBm@aWz_^Fh$LbV"> <field name="NUM">250</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Gjrn-B(j#?9S~Rr-WJ)/"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> </block> </value> </block> </value> <value name="FIND"> <shadow type="text" id="#zE%xxMg5Dg%,,?:$8;3"> <field name="TEXT">,</field> </shadow> </value> </block> </value> <next> <block type="controls_if" id="iz2cbp}3|o!SUoZ/!pjM"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="6[G]z-e$zjn[B}HXUsF]"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="~{{GcTOlHw#tcO)+H*jo"> <field name="VAR" id="hUL|?bA1I{i4@V3nwNHT">Treffer</field> </block> </value> <value name="B"> <block type="math_number" id="TK0s2kD+5S%r_b#/T..w"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="text_append" id="drt$J,iEw0K`=KM8o)pc"> <field name="VAR" id="0aB0N-YiCJhh/N;jnuzG">neuerText</field> <value name="TEXT"> <shadow type="text" id="m{q0{etBOSUQ3oT#}3$_"> <field name="TEXT"></field> </shadow> <block type="text_join" id="NdkdLfnK,ey{oozn`Hfz"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="!=W06cT5nW_z9!JBBy@M"> <field name="TEXT">;</field> </block> </value> <value name="ADD1"> <block type="text_getSubstring" id="ud|.@+[qT;6)g`F~=*ac"> <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="_*b!8+?NkwFw~rEeG2~j"> <field name="VAR" id="UU7uV-BrPR`oZ7}SlnaF">MeinText</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="T%T,3nHOw5rX2=A9re(N"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="u?WyLxm[mCk1,1Pn+I=S"> <field name="NUM">1</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="8#HYtKH[#ML#@+DeiX_$"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="HeyTvYlYz#Ijj)`^r~k]"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="EPG_A_}kYR+Kaarl).[-"> <field name="NUM">1</field> </shadow> <block type="math_arithmetic" id="#5bEumJ$aGUS`{)@Yhyw"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="QFqg*r(P1NwZ42lV_t]f"> <field name="NUM">250</field> </shadow> <block type="variables_get" id="!4Nxi1|oo|hCq`#nMnt`"> <field name="VAR" id="hUL|?bA1I{i4@V3nwNHT">Treffer</field> </block> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="4XJtbReoN1S)I4sotNi/"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> </block> </value> <value name="B"> <shadow type="math_number" id="MXmb%`eG`8zmC3cxyiiO"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="IFo^LCFQK:ZCR2]K_cvY"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> <value name="VALUE"> <block type="math_arithmetic" id=",noF8?wsT`j-95GsHuF2"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="#bVGhuZF*_KY):,?wu.t"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="FQriZ20Bm8U7:L+Y8UAr"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> <value name="B"> <shadow type="math_number" id="maaCrMxX9|T8!BW3FD.!"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="WIVe`%NClTJ%W[88v_{S"> <field name="VAR" id="hUL|?bA1I{i4@V3nwNHT">Treffer</field> </block> </value> </block> </value> <next> <block type="debug" id="*uGryt3]`qC[Si=).T5n"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="Fn8+/8;Gs0z^1[z?I.[,"> <field name="TEXT">mache</field> </shadow> </value> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="text_append" id="~DL(Win$vh^aKZAs]x:H"> <field name="VAR" id="0aB0N-YiCJhh/N;jnuzG">neuerText</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT"></field> </shadow> <block type="text_join" id="ZC`UCpyT#-,$+=fq@_Kx"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="_0/=tMBBJ=/K`5d:!Mij"> <field name="TEXT">;</field> </block> </value> <value name="ADD1"> <block type="text_getSubstring" id="MiP9kLJmb5@5Q5U/QX%C"> <mutation at1="true" at2="false"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">LAST</field> <value name="STRING"> <block type="variables_get" id="BhUVeh~(VxBI5+UHIO#R"> <field name="VAR" id="UU7uV-BrPR`oZ7}SlnaF">MeinText</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="L0tPp4hp3zPJB,5T,%Ry"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="5NxH;j::zbQK{,=t$O-R"> <field name="NUM">1</field> </shadow> </value> <value name="B"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Bx2z]e*!4yX4vvTF3YrK"> <field name="VAR" id="i@/uXUvk|?_E05h[9^`8">Stelle</field> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="debug" id="jtof%#Gn#d~kePlHNVeC"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="M/uLTFqE7IF;}YLuevxq"> <field name="TEXT">sonst</field> </shadow> </value> <next> <block type="debug" id="`IW[2AiW.(tCoVL+L9j}"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="o$uy-p{nsGmvDRC;(Irt"> <field name="TEXT">test</field> </shadow> <block type="variables_get" id="wkL(GgHeX!+CL*klN).x"> <field name="VAR" id="0aB0N-YiCJhh/N;jnuzG">neuerText</field> </block> </value> <next> <block type="timeouts_clearinterval" id="8P464pV8RpEe9M?jr$-3"> <field name="NAME">Intervall</field> <next> <block type="debug" id=")G^!X7E*5g{%Bx2t[:)-"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="text_length" id="(OXXB=LlbQ~SNX(h_Jk!"> <value name="VALUE"> <shadow type="text" id="qM{P84CIa(jl|}VCH)CZ"> <field name="TEXT">abc</field> </shadow> <block type="variables_get" id="BY1u^GYU(a%lw4zroJOe"> <field name="VAR" id="0aB0N-YiCJhh/N;jnuzG">neuerText</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
17.6.2020, 09:30:03.731 [info ]: javascript.0 (1627) Stop script script.js.18_Test.Zeichen_tauschen-padrino 17.6.2020, 09:30:03.859 [info ]: javascript.0 (1627) Start javascript script.js.18_Test.Zeichen_tauschen-padrino 17.6.2020, 09:30:03.872 [info ]: javascript.0 (1627) script.js.18_Test.Zeichen_tauschen-padrino: 746 17.6.2020, 09:30:03.872 [info ]: javascript.0 (1627) script.js.18_Test.Zeichen_tauschen-padrino: Badezimmer Fenster rechts geöffnet, Gästezimmer Fenster links geöffnet, Küche Fenster rechts geöffnet, Schlafzimmer Fenster links geöffnet, Wohnzimmer Fenster rechts geöffnet, Keller Heizung Fenster gekippt, Keller Sauna Fenster links gekippt, Keller Werkstatt Fenster gekippt, Badezimmer Fenster links geschlossen, Gästezimmer Fenster rechts geschlossen, Keller Sauna Fenster rechts geschlossen, Keller Vorrat Fenster geschlossen, Keller W-Baum Fenster geschlossen, Keller Wohnzimmer Fenster links geschlossen, Keller Wohnzimmer Fenster mitte geschlossen, Keller Wohnzimmer Fenster rechts geschlossen, Küche Fenster links geschlossen, Küche Fenster mitte geschlossen, Schlafzimmer Fenster rechts geschlossen, Wohnzimmer Fenster links geschlossen 17.6.2020, 09:30:03.873 [info ]: javascript.0 (1627) script.js.18_Test.Zeichen_tauschen-padrino: registered 0 subscriptions and 0 schedules 17.6.2020, 09:30:04.023 [info ]: javascript.0 (1627) script.js.18_Test.Zeichen_tauschen-padrino: mache 17.6.2020, 09:30:04.173 [info ]: javascript.0 (1627) script.js.18_Test.Zeichen_tauschen-padrino: mache 17.6.2020, 09:30:04.323 [info ]: javascript.0 (1627) script.js.18_Test.Zeichen_tauschen-padrino: mache 17.6.2020, 09:30:04.474 [info ]: javascript.0 (1627) script.js.18_Test.Zeichen_tauschen-padrino: sonst 17.6.2020, 09:30:04.475 [info ]: javascript.0 (1627) script.js.18_Test.Zeichen_tauschen-padrino: ;Badezimmer Fenster rechts geöffnet, Gästezimmer Fenster links geöffnet, Küche Fenster rechts geöffnet, Schlafzimmer Fenster links geöffnet, Wohnzimmer Fenster rechts geöffnet, Keller Heizung Fenster gekippt, Keller Sauna Fenster links gekippt; Keller Werkstatt Fenster gekippt, Badezimmer Fenster links geschlossen, Gästezimmer Fenster rechts geschlossen, Keller Sauna Fenster rechts geschlossen, Keller Vorrat Fenster geschlossen, Keller W-Baum Fenster geschlossen; Keller Wohnzimmer Fenster links geschlossen, Keller Wohnzimmer Fenster mitte geschlossen, Keller Wohnzimmer Fenster rechts geschlossen, Küche Fenster links geschlossen, Küche Fenster mitte geschlossen, Schlafzimmer Fenster rechts geschlossen; Wohnzimmer Fenster links geschlossen 17.6.2020, 09:30:04.475 [info ]: javascript.0 (1627) script.js.18_Test.Zeichen_tauschen-padrino: 747
-
@dslraser
Jo, das mit dem ";" weiß ich, hat mich dann heute Nacht aber echt nimmer gestört.
War froh, dass es überhaupt funktionierte, nach zig Mal umstellen, verwerfen und Fehler suchen
(Frauchen meinte, wäre verrückt, aber es hatte mich gepackt ).Wollte auch möglichst wenig if/then...
Aber, wenn es wirklich stört kann man ja z.B. am Ende noch ein "von Text nimm 2. Zeichen bis Ende machen", dann ist der String sauber.Freut mich, dass es bei Dir läuft.