Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Ich suche jemand der mir beim Scripten hilft

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Ich suche jemand der mir beim Scripten hilft

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

      Hallo leute ich suche jemand der mir beim Scripten Hilft da ich das nicht wirklich gut kann.
      Ich habe ein RFID Lesegerät das über mqtt verbunden ist ich möche eine 2 Faktor Authentifizierung machen
      mit Telergram so das wenn ich meine karte drauf lege eine anfrage an telegram gesendet wird die ich dann bestätigen muss. Ohne das man in telegram einfach so Bestätigen kann weil man kennt es ja mit text to command sobald man das triggerwort eingibt wird es geschaltet aber dies soll erst der fall sein wenn ich meine karte aufgelegt habe vorher darf bei Telegram nix ausgelöst werden.

      B Homoran 2 Replies Last reply Reply Quote 0
      • B
        Bernd 1337 @Bernd 1337 last edited by

        @bernd-1337 Screenshot_6.png

        1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @Bernd 1337 last edited by

          @bernd-1337 Bitte Threadtitel anpassen

          https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

          auch der Inhalt ist schwer verdaulich, da würden Screenshots dei es Versuchs wahrscheinlich auch mehr helfen, als dein Text.
          Wenn schon Text würde es dir beim programmieren helfen, diesen Text sinnvoll zu strukturieren, dann klapptces wahrscheinlich auch mit der Blockly-Struktur

          @bernd-1337 sagte in Suche Scripter:

          ich suche jemand der mir beim Scripten hilft

          da werden dir dann sicherlich einige helfen.

          ...aber warum im englischen Forenteil, da lesen nur wenige

          B 1 Reply Last reply Reply Quote 0
          • B
            Bernd 1337 @Homoran last edited by

            @homoran habe das mal geändert nur finde ich nicht wo ich die sprache auswähle

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Bernd 1337 last edited by

              @bernd-1337 sagte in Ich suche jemand der mir beim Scripten hilft:

              habe das mal geändert

              Danke, aber da steht immer noch nichts drin wofür du hilfe brauchst
              Für Hilfe ist das Forum da
              Für Blockly die Unterrubrik Blockly

              im Titel kommt dann dein spezifisches "Problem"
              Dann wird sich schon jemand nelden, der bei dem Problem helfen kann.

              @bernd-1337 sagte in Ich suche jemand der mir beim Scripten hilft:

              wo ich die sprache auswähle

              bei der Erstellung des Threads. Jetzt geht das nicht mehr!

              ich verschiebe das mal ins deutsche Forum.

              B 2 Replies Last reply Reply Quote 0
              • B
                Bernd 1337 @Homoran last edited by

                @homoran wieso steht doch im text was genau ich möchte

                Homoran 1 Reply Last reply Reply Quote 0
                • B
                  Bernd 1337 @Homoran last edited by

                  @homoran suche jemand der mir ein script zusammen bastelt für rfid eine 2 Faktor Authentifizierung mit telegram

                  1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @Bernd 1337 last edited by

                    @bernd-1337 sagte in Ich suche jemand der mir beim Scripten hilft:

                    wieso steht doch im text was genau ich möchte

                    das öffnet aber ein Helfender möglicherweise nicht, wenn er sich durchvden Titel nicht angesprochen fühlt.
                    (abgesehen davon, dass ich den Text nicht verstanden habe)

                    den Link hast du aber vollständig gelesen?

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      Bernd 1337 @Homoran last edited by

                      @homoran ja ich habe ka wie ich es besser formulieren kann

                      1 Reply Last reply Reply Quote 0
                      • mickym
                        mickym Most Active last edited by mickym

                        Jedenfalls würde ich es über 2 Nachrichten lösen#

                        Die erste Nachricht wird getriggert von was auch immer.

                        Mit der 2. Nachricht bestätigst Du.

                        e5aa2bcd-f0c8-463b-9f16-b9c92f05003b-image.png

                        <xml xmlns="https://developers.google.com/blockly/xml">
                         <block type="on_ext" id="C0fI0opS7as77;sjK5e2" x="37" y="138">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                           <field name="CONDITION">any</field>
                           <field name="ACK_CONDITION"></field>
                           <value name="OID0">
                             <shadow type="field_oid" id="OXhs1)[K?nvf./bx|L-x">
                               <field name="oid">0_userdata.0.Test.Alarm</field>
                             </shadow>
                           </value>
                           <statement name="STATEMENT">
                             <block type="debug" id="^p00Gns;|_EIh5XE(/mR">
                               <field name="Severity">log</field>
                               <value name="TEXT">
                                 <shadow type="text" id=".LsqS7;;AF+iQ|@!kakC">
                                   <field name="TEXT">Alarm schalten, bitte autorisieren</field>
                                 </shadow>
                               </value>
                             </block>
                           </statement>
                           <next>
                             <block type="on_ext" id="6ypcIzCMQRF3|OFtCu$H">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                               <field name="CONDITION">any</field>
                               <field name="ACK_CONDITION"></field>
                               <value name="OID0">
                                 <shadow type="field_oid" id="0$-3/p1BOdqFB?*T/|X*">
                                   <field name="oid">0_userdata.0.Test.RFIDTag</field>
                                 </shadow>
                               </value>
                               <statement name="STATEMENT">
                                 <block type="controls_if" id="||aVdXtP+JhK=)GbQ9Hf">
                                   <value name="IF0">
                                     <block type="logic_compare" id="hi_LV-~|4b0Yztv7~L|?">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="on_source" id="x+ln-_-0U)Tux:1R7@[0">
                                           <field name="ATTR">state.val</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="text" id="C-9RSDVvHt,*/7i!h+VQ">
                                           <field name="TEXT">123456789</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="debug" id="I/B#NA!y@9/c+*9*Q_n~">
                                       <field name="Severity">log</field>
                                       <value name="TEXT">
                                         <shadow type="text" id="[:MIpn%r$u=]:~%]c+ZY">
                                           <field name="TEXT">Aktion autorisiert, bitte bestätigen!</field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                        </xml>
                        

                        B 2 Replies Last reply Reply Quote 0
                        • B
                          Bernd 1337 @mickym last edited by Homoran

                          @mickym ich hab das jetzt so geändert

                          <xml xmlns="https://developers.google.com/blockly/xml">
                            <variables>
                              <variable id="m%;]I;h}!Z_t1Yxam4uW">Karte</variable>
                            </variables>
                            <block type="on_ext" id="6ypcIzCMQRF3|OFtCu$H" x="63" y="38">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                              <field name="CONDITION">any</field>
                              <field name="ACK_CONDITION"></field>
                              <value name="OID0">
                                <shadow type="field_oid" id="0$-3/p1BOdqFB?*T/|X*">
                                  <field name="oid">mqtt.0.ESP_RFID.RFIDREADER.Tag</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="variables_set" id="I.Lo8mCc0E0q@@iGg;|5">
                                  <field name="VAR" id="m%;]I;h}!Z_t1Yxam4uW">Karte</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="~OL_*yAm$_4{(C9A/jXS">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="controls_if" id="||aVdXtP+JhK=)GbQ9Hf">
                                      <value name="IF0">
                                        <block type="logic_compare" id="hi_LV-~|4b0Yztv7~L|?">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="on_source" id="x+ln-_-0U)Tux:1R7@[0">
                                              <field name="ATTR">state.val</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="text" id="C-9RSDVvHt,*/7i!h+VQ">
                                              <field name="TEXT">3336024090</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="telegram" id="$f7szM,?Na{|_@os+_*%">
                                          <field name="INSTANCE"></field>
                                          <field name="LOG"></field>
                                          <field name="SILENT">FALSE</field>
                                          <field name="PARSEMODE">default</field>
                                          <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                          <value name="MESSAGE">
                                            <shadow type="text" id=")4:*x|SqSR?8}=RMp3l)">
                                              <field name="TEXT">Bitte Karte auflegen ....</field>
                                            </shadow>
                                          </value>
                                          <next>
                                            <block type="variables_set" id="c|uI79O:p=`bGD^2cX.@">
                                              <field name="VAR" id="m%;]I;h}!Z_t1Yxam4uW">Karte</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="Wo`~q2PVe:LE}ygEnFgY">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <next>
                                <block type="on_ext" id="=+~QO#0ot8=Nw%V3-@.=">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                  <field name="CONDITION">any</field>
                                  <field name="ACK_CONDITION"></field>
                                  <value name="OID0">
                                    <shadow type="field_oid" id="YzzM0f~KBZke?G!c@~Vk">
                                      <field name="oid">0_userdata.0.Test.RFIDAuthenticated</field>
                                    </shadow>
                                  </value>
                                  <statement name="STATEMENT">
                                    <block type="controls_if" id="NL6aL;Ac/(jEx|iJ,-*(">
                                      <value name="IF0">
                                        <block type="variables_get" id=".NvW34##(TntCFkFImX2">
                                          <field name="VAR" id="m%;]I;h}!Z_t1Yxam4uW">Karte</field>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="controls_if" id="?qpE]9?f#_Oti?duTCH.">
                                          <value name="IF0">
                                            <block type="logic_compare" id="02qDfU#z[)DZgT{:gDpw">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="on_source" id="`6(JWh75dvXQI%Y?J!y{">
                                                  <field name="ATTR">state.val</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_boolean" id="GFGo=No-j6RTuOrYFU}O">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="telegram" id="I3,ety?iL=kvB%.XX4Q^">
                                              <field name="INSTANCE"></field>
                                              <field name="LOG"></field>
                                              <field name="SILENT">FALSE</field>
                                              <field name="PARSEMODE">default</field>
                                              <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                              <value name="MESSAGE">
                                                <shadow type="text" id="A,GxGfTJ#*e+z,/btj6J">
                                                  <field name="TEXT">Aktion autorisiert, bitte bestätigen!</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="update" id="3WCXv[gbcadX|-(l3nhN">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">0_userdata.0.trigger</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="6kxkk!0(esICbvoRL#ZY">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="3~,*yt=?|ep%=9c6Zi/s">
                                                  <field name="VAR" id="m%;]I;h}!Z_t1Yxam4uW">Karte</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="AV4`m}EJQTZ3J*OXbUMf">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </xml>
                          

                          MOD-EDIT: Code in code-tags gesetzt!

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            TT-Tom @Bernd 1337 last edited by TT-Tom

                            @bernd-1337 bitte in code tag packen und vom Blockly ein Screenshot.

                            code-tags.gif

                            1 Reply Last reply Reply Quote 0
                            • B
                              Bernd 1337 @mickym last edited by

                              @mickym habe das jetzt so gemacht aber er steckt beim anfang fest Screenshot_7.png

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                TT-Tom @Bernd 1337 last edited by TT-Tom

                                @bernd-1337

                                du nutzt den selben Datenpunkt bei beiden Triggern. @mickym hatte einen separaten für die Bestätigung. Das muss deine Rückmeldung vom Telegram

                                B 2 Replies Last reply Reply Quote 0
                                • B
                                  Bernd 1337 @TT-Tom last edited by

                                  @tt-tom okay ich schau mal

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    Bernd 1337 @TT-Tom last edited by

                                    @tt-tom du meinst vom Telegram adapter request ja

                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      TT-Tom @Bernd 1337 last edited by

                                      @bernd-1337
                                      da ich Telegram nicht nutze kann ich die Datenpunkte nicht nennen, nur wie es funktionieren müsste.
                                      Hast du schon mal Rückmeldungen von Telegram ausgewertet?

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        Bernd 1337 @TT-Tom last edited by

                                        @tt-tom das ist alles was von telegram exestiert Screenshot_8.png

                                        T 1 Reply Last reply Reply Quote 0
                                        • T
                                          TT-Tom @Bernd 1337 last edited by

                                          @bernd-1337 sende doch einfachmal etwas über Telegram zurück dann kannst du sehen welcher DP sich ändert und sein Inhalt.

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            Bernd 1337 @TT-Tom last edited by

                                            @tt-tom wenn ich ja die karte auflege ändert sich dort garnichts bekomme den text aber im adapter ändert sich nichts nur wenn ich selbst etwas zu dem bot schreib steht bei request etwas

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            635
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            34
                                            1408
                                            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