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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    Test Adapter telegram-menu v.1.6.x

    This topic has been deleted. Only users with topic management privileges can see it.
    • 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
                                      • liv-in-sky
                                        liv-in-sky @Michael Roling last edited by

                                        @michael-roling coool - vor allem die w.c.ente

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

                                          @liv-in-sky fea30c84-f2ba-43ad-988d-a2db31512cdf-grafik.png

                                          jetzt muss ich erstmal Pause machen

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

                                            @michael-roling hast du dir verdient

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            871
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            58
                                            1730
                                            541641
                                            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