Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] IP Eintrag in Text

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] IP Eintrag in Text

    This topic has been deleted. Only users with topic management privileges can see it.
    • Aphofis
      Aphofis last edited by Aphofis

      Hallo Leute, ich wollte mal fragen, ob es möglich ist aus einem Datenpunkt eine IP ab zu fragen und diese dann in den exec Text einzubetten !?
      esp reboot.png
      Es geht um den roten Bereich vielmehr um das Textfeld, kann man das so abwandeln, das die IP dazu aus einem Datenpunkt genommen werden kann !?

      Quellcode:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on" id="5+Aq]kWEr$-MbEsPQOdd" x="-1662" y="-862">
          <field name="OID">0_userdata.0.Aqua_Control.0.ESP_Reboot.Aqua_Dosierer</field>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="controls_if" id="|0x)BNGmXHGeJjVk{H/U">
              <value name="IF0">
                <block type="logic_compare" id="A0nYx/=g4gD=yu`enAQs">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="5ou?A5EGx)GV7{6V)4kL">
                      <field name="ATTR">val</field>
                      <field name="OID">0_userdata.0.Aqua_Control.0.ESP_Reboot.Aqua_Dosierer</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="RuUNb(flm@##5KwJ;OT,">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="request" id="L`=gj8-_?2e-RM;s^-nm">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                  <field name="WITH_STATEMENT">FALSE</field>
                  <field name="LOG">log</field>
                  <value name="URL">
                    <shadow xmlns="http://www.w3.org/1999/xhtml" type="text" id="/QB12?FoSL,HH;5mQ4WS">
                      <field name="TEXT">text</field>
                    </shadow>
                    <block type="text" id="3^i%pXoD%at.TpGj{#/N">
                      <field name="TEXT">http://192.168.0.13/cm?user=admin&amp;password=mein_passwort&amp;cmnd=Restart%201</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="Xy[DFh:4c?nO??%0OL={">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                      <field name="OID">0_userdata.0.Aqua_Control.0.ESP_Reboot.Aqua_Dosierer</field>
                      <field name="WITH_DELAY">TRUE</field>
                      <field name="DELAY_MS">10</field>
                      <field name="UNIT">sec</field>
                      <field name="CLEAR_RUNNING">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="1oV!um/Rsj,4Ji]i.W:e">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="9};$:/(!;4(W|L,c{-ti">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">alexa2.0.Echo-Devices.G090LV0371040175.Commands.speak</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text_join" id="Gxylg7r02KYYxVUMf/N.">
                              <mutation items="1"></mutation>
                              <value name="ADD0">
                                <block type="text" id="xnMA@S}oO*$ZIu]4sNkk">
                                  <field name="TEXT">Aqua Dosierer,, wurde neu gestartet</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="telegram" id="ecFJQ+D=/X^yD=i{OG~G">
                              <field name="INSTANCE">.4</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="Q8V,~Cj!QY03V`OHi,k6">
                                  <field name="TEXT">text</field>
                                </shadow>
                                <block type="text_join" id="Hums])|=?j!W3:S{az5q">
                                  <mutation items="3"></mutation>
                                  <value name="ADD0">
                                    <block type="text" id="eXjU)~}zb1@Z.A,}T48Z">
                                      <field name="TEXT">Aqua Dosierer</field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="text_newline" id="Fo7*CXYDrl5~tFn%y30C">
                                      <field name="Type">\n</field>
                                    </block>
                                  </value>
                                  <value name="ADD2">
                                    <block type="text" id="9`s,C3P-Bu7#I1PJzs1k">
                                      <field name="TEXT">wurde neu gestartet</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      XBiT 1 Reply Last reply Reply Quote 0
      • XBiT
        XBiT @Aphofis last edited by

        @aphofis

        Dein Textfeld Gegen das austauschen.
        Bei Wert vom Objekt.. deinen Datenpunkt mit der IP auswählen.

        2.PNG

        <xml xmlns="https://developers.google.com/blockly/xml">
          <block type="text_join" id="6h4%!*zXX@nt(mrhnYYv" x="88" y="-437">
            <mutation items="3"></mutation>
            <value name="ADD0">
              <block type="text" id="5Ut7tlyZ_6T!$$?|pLU/">
                <field name="TEXT">http://</field>
              </block>
            </value>
            <value name="ADD1">
              <block type="get_value" id="F)5D$d@`]A|L=2HjJ=v^">
                <field name="ATTR">val</field>
                <field name="OID">ID auswählen</field>
              </block>
            </value>
            <value name="ADD2">
              <block type="text" id="jns:ltKM#TcISQm7rZmP">
                <field name="TEXT">cm?user=admin&amp;amp;password=mein_passwort&amp;amp;cmnd=Restart%201</field>
              </block>
            </value>
          </block>
        </xml>
        
        1 Reply Last reply Reply Quote 1
        • Aphofis
          Aphofis last edited by

          @xbit Das ja simpel!
          Schon eher peinlich, das ich da nicht selbst drauf gekommen bin.
          Wusste nicht das man das so trennen kann.
          Super Vielen Dank

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          474
          Online

          31.9k
          Users

          80.2k
          Topics

          1.3m
          Posts

          blockly
          2
          3
          232
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo