Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter telegram-menu v.1.6.x

    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

    Test Adapter telegram-menu v.1.6.x

    This topic has been deleted. Only users with topic management privileges can see it.
    • Michael Roling
      Michael Roling Developer @BobBruni last edited by

      @bobbruni ich werde mir das trotzdem nachher anschauen

      B 1 Reply Last reply Reply Quote 0
      • Michael Roling
        Michael Roling Developer @BobBruni last edited by

        @bobbruni ich habe dazu jetzt den adapter angepasst, und lade es gleich hoch

        B 1 Reply Last reply Reply Quote 1
        • Michael Roling
          Michael Roling Developer @liv-in-sky last edited by

          @liv-in-sky sagte in Test Adapter telegram-menu v.0.9.x:

          @michael-roling

          ich habe ein vollbkp (nicht das wieder etwas zu spinnen beginnt) gemacht und deinen adapter nochmal geupdatet

          und siehe da:

          Image 106.png

          die rückgabewerte kommen an - ist ein string - so iwe du gesagt hast - irgendwas stimmt mit meinem iob nicht 😞 😞

          zum bild:

          ich mach es jetzt so:

          tele5.gif

          danke für deine geduld

          was ich eigentlich cool finden würde, wäre eine tabelle - das geht, soviel ich weiß, nur über inline keyboard - aber so sieht es wenigstens schön aus - die eigentliche frage: du kannst kein inline keyboard als rückgabe senden - also ein seperates script erzeugt ein inline-keyboard-array und der adapter gibt es zurück
          ein beispiel:

          Image 107.png
          @liv-in-sky lass uns die Frage mit dem Inline Keyboard noch mal aufgreifen

          liv-in-sky 1 Reply Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @Michael Roling last edited by

            @michael-roling sagte in Test Adapter telegram-menu v.0.9.x:

            @liv-in-sky lass uns die Frage mit dem Inline Keyboard noch mal aufgreifen

            ich mache das eigentlich so, weil ich dachte, das html nicht funktioniert - kann man da auch <table> nutzen ?

            falls du überlegst, da was zu machen und ich dich richtig verstehe, müßte man halt auf 2 spalten begrenzen, sonst wird's evtl kompliziert

            Michael Roling 1 Reply Last reply Reply Quote 0
            • Michael Roling
              Michael Roling Developer @liv-in-sky last edited by

              @liv-in-sky ich glaube nicht das table geht, in der telegram doku steht nur bold und ein paar andere, aber ich probiere das mal eben, ansonsten so wie du das schon gemacht hast

              liv-in-sky 1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @Michael Roling last edited by

                @michael-roling

                kann ich noch irgendwas beitragen

                Michael Roling 1 Reply Last reply Reply Quote 0
                • Michael Roling
                  Michael Roling Developer @liv-in-sky last edited by Michael Roling

                  @liv-in-sky mach den adapter fertig 😎😉table in html geht nicht

                  Also Inline keyboard, damit mache ich ja auch die submenus

                  liv-in-sky 1 Reply Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @Michael Roling last edited by

                    @michael-roling sagte in Test Adapter telegram-menu v.0.9.x:

                    mach den adapter fertig

                    bist du dir da sicher ? 🙂

                    Michael Roling 2 Replies Last reply Reply Quote 0
                    • Michael Roling
                      Michael Roling Developer @liv-in-sky last edited by

                      @liv-in-sky ich mache auch immer wieder was kaputt

                      1 Reply Last reply Reply Quote 0
                      • Michael Roling
                        Michael Roling Developer @liv-in-sky last edited by

                        @liv-in-sky wie schickst du die liste per telegram?

                        liv-in-sky 2 Replies Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky @Michael Roling last edited by

                          @michael-roling

                          durch deinen adapter getriggertes script wird einfach an die genutzte telegram instanz geschickt

                          Michael Roling 1 Reply Last reply Reply Quote 0
                          • Michael Roling
                            Michael Roling Developer @liv-in-sky last edited by

                            @liv-in-sky ja das ist klar, wie baust du es zusammen? wie sieht genau das ergebnis aus?
                            2d11abcc-bf4b-4350-83d0-aa7b353242eb-grafik.png
                            und jedes object sieht so aus b0e6228c-0c05-46e6-8f37-2ea200f0d0ab-grafik.png
                            so oder ?

                            liv-in-sky 1 Reply Last reply Reply Quote 0
                            • liv-in-sky
                              liv-in-sky @Michael Roling last edited by

                              @michael-roling

                              on({ id: getOut, change: 'ne' }, async (obj) => {
                                let value = obj.state.val;
                                let oldValue = obj.oldState.val;
                                sendUebersicht(theJsonOut,"AUSSEN")
                              });
                              

                              dann die function:

                              function sendUebersicht(testData,bereich){
                              let ArrSend=[];
                              let testArr=[]
                              testArr.push({
                                                   "text":"\uD83D\uDD52 ",
                                                   "callback_data": 'delliAllOverTelegramtest'},
                                              {
                                                   "text":"Event",
                                                   "callback_data": 'delliAllOverTelegramtest'}); 
                                                  // log(testArr) 
                              ArrSend.push(testArr)   ;                 
                              
                              testArr=[];
                              
                              for (let i =1;i<testData.length;i++){log(testData[i].zeit); let helper;
                                                                         testArr.push({
                                                                               "text":testData[i].zeit,
                                                                               "callback_data": 'delliAllOverTelegramtest'+i},
                                                                               {
                                                                               "text":testData[i].ereignis.replace(/\\r\\n/," "),
                                                                               "callback_data": 'delliAllOverTelegramtest'+i});                                                 
                                                                               
                                                 ArrSend.push(testArr)     ;testArr=[]            } 
                                    log(JSON.stringify(ArrSend))            
                              
                              
                              log(JSON.stringify(ArrSend)) 
                              
                               sendTo('telegram.0', {
                               
                                text: "\u{26f8} TODAY ALL "+bereich+"\u{26f8} " ,
                                parse_mode:"Markdown",
                                reply_markup: {
                                    inline_keyboard: ArrSend, 
                                               
                                    resize_keyboard:      false,
                                    one_time_keyboard:    true,
                                    disable_notification: false,
                                    remove_Keyboard:      true  
                                } 
                              });
                              
                              
                              }
                              

                              1 Reply Last reply Reply Quote 0
                              • liv-in-sky
                                liv-in-sky @Michael Roling last edited by

                                @michael-roling

                                aber der callback wird nicht ausgewertet

                                Michael Roling 1 Reply Last reply Reply Quote 0
                                • Michael Roling
                                  Michael Roling Developer @liv-in-sky last edited by

                                  @liv-in-sky ja das ist klar mit dem callback

                                  liv-in-sky 2 Replies Last reply Reply Quote 0
                                  • liv-in-sky
                                    liv-in-sky @Michael Roling last edited by

                                    @michael-roling

                                    aufgeteilt ist das script in einmal spaltenüberschrift

                                    und anschliessend die daten

                                    1 Reply Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @Michael Roling last edited by

                                      @michael-roling stelle ich mir garnicht so einfach vor, das zu implemtieren

                                      Michael Roling 1 Reply Last reply Reply Quote 0
                                      • Michael Roling
                                        Michael Roling Developer @liv-in-sky last edited by

                                        @liv-in-sky leider schickt telegram mir garnichts, warum auch immer, wahrscheinlich weil ein zeichen nicht passt 😂

                                        liv-in-sky 1 Reply Last reply Reply Quote 0
                                        • liv-in-sky
                                          liv-in-sky @Michael Roling last edited by

                                          @michael-roling ich dachte, du willst an telegram senden

                                          Michael Roling 1 Reply Last reply Reply Quote 0
                                          • Michael Roling
                                            Michael Roling Developer @liv-in-sky last edited by

                                            @liv-in-sky ich habe es , jetzt noch finetuning ff8da8f9-a83a-45eb-bf63-eb9a4d167345-grafik.png

                                            liv-in-sky 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            867
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            59
                                            1764
                                            668341
                                            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