Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly und nächste Zeile

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    833

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    6.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.6k

Blockly und nächste Zeile

Scheduled Pinned Locked Moved Skripten / Logik
81 Posts 21 Posters 18.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    church
    wrote on last edited by
    #38

    Hallo,

    habe das gleiche "Problem". Mein Pioneer Receiver erwartet ein "\r" nach dem Befehl. Leider wird das beim compilieren von Blockly immer zu "\r" verarbeitet! Es bleibt also nur die engine zu wechseln, aber dann geht es nicht mehr zurück zu Blockly, was eigentlich schade ist!

    Gibt es mittlerweile eine Möglichkeit (Baustein)? Bluefox hatte ja damals sowas erfragt…

    Danke und Gruss, Church

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MacMike
      wrote on last edited by
      #39

      @Ritter:

      @Bluefox:

      @Ritter:

      Hallo!

      In der Mitte des Blockly steht ein \n um in die nächste Zeile zu kommen, was aber nicht geht. Wenn man auf zeige Kode geht stehen dann zwei \. Wenn ich auf Javascript gehe und da \n einfüge komme ich auch in die nächste Zeile, nur da gibt es kein zurück mehr zu Blockly.

      on({id: "vuplus.0.VuPlus.CHANNEL"/VuPlus.CHANNEL/, change: "ne"}, function (obj) {

      var value = obj.state.val;

      var oldValue = obj.oldState.val;

      try {

      require("request")((['http://192.168.1.111/web/message?text=%27,%27Wetterstation: http://av-receivertest.de/kompakter-av-receiver/ ','Aussentemperatur = ',getState("hm-rpc.0.JEQ0157625.1.TEMPERATURE").val,' °C','\n','Wind = ',getState("hm-rpc.0.JEQ0157625.1.WIND_SPEED").val,' km/h','&type=1&timeout=3'].join('')));

      } catch (e) { console.error(e); }

      });

      Blockly.PNG `
      Das sind native Bausteine. Es gibt sinn eigentlich \n benutzen zu können. Ich kann ein Baustein CR machen, oder nativen umbiegen.

      CR Baustein sieht für mich eleganter aus. `

      Gibt es mittlerweile schon einen Weg um mit Blockly in die nächste Zeile zu kommen? `

      Glaube nicht, habe aber letztens irgendwo gelesen, dass das kommen soll

      1 Reply Last reply
      0
      • AlCalzoneA Offline
        AlCalzoneA Offline
        AlCalzone
        Developer
        wrote on last edited by
        #40

        Mal ganz pragmatisch:

        Kopiere das Skript, das hinter dem Blockly steckt, füge es in ein neues JavaScript (nicht-Blockly) ein und mach aus dem \n ein \n.

        Und dann führe das aus und lösche das Blockly ;)

        Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

        1 Reply Last reply
        0
        • C Offline
          C Offline
          church
          wrote on last edited by
          #41

          @AlCalzone:

          Mal ganz pragmatisch:

          Kopiere das Skript, das hinter dem Blockly steckt, füge es in ein neues JavaScript (nicht-Blockly) ein und mach aus dem \n ein \n.

          Und dann führe das aus und lösche das Blockly `

          …und genau das möchte ich gerne vermeiden..

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Ritter
            wrote on last edited by
            #42

            So mache ich es auch, nur lösche ich das Blockly nicht, sondern lass es nur deaktiviert. Will ich am Blockly was ändern muss ich halt wieder alle "Enter" durchsuchen im Script.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dodi666
              wrote on last edited by
              #43

              Hallo zusammen,

              gibt es für das Problem schon eine Lösung?

              Auch ich musste heute feststellen, dass es via Blockly nicht möglich ist eine Pushover Nachricht mit Zeilenumbrüche zu verfassen…

              Grüße Sascha

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Ritter
                wrote on last edited by
                #44

                Hallo,

                bei mir funktioniert es jetzt seit einiger Zeit. Man muss das Blockly aber nocheinmal neu anlegen sonst gings nicht.

                1 Reply Last reply
                0
                • MatzebhvM Offline
                  MatzebhvM Offline
                  Matzebhv
                  wrote on last edited by
                  #45

                  @Ritter:

                  Hallo,

                  bei mir funktioniert es jetzt seit einiger Zeit. Man muss das Blockly aber nocheinmal neu anlegen sonst gings nicht. `

                  Moin,

                  wie hast du denn das gemacht?

                  Gerade nochmal probiert, geht nicht.

                  Matze

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dodi666
                    wrote on last edited by
                    #46

                    @Matzebhv:

                    @Ritter:

                    Hallo,

                    bei mir funktioniert es jetzt seit einiger Zeit. Man muss das Blockly aber nocheinmal neu anlegen sonst gings nicht. `

                    Moin,

                    wie hast du denn das gemacht?

                    Gerade nochmal probiert, geht nicht.

                    Matze `

                    Das würde mich auch interessieren…

                    Grüße

                    Sascha

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      Ritter
                      wrote on last edited by
                      #47

                      Hallo,

                      so:
                      1026_wetterwarnung.jpg
                      1026_wetterwarnung2.jpg

                      1 Reply Last reply
                      0
                      • DutchmanD Offline
                        DutchmanD Offline
                        Dutchman
                        Developer Most Active Administrators
                        wrote on last edited by
                        #48

                        also "\n" als tekstblock sorgt fuer die neue zeile ?

                        1 Reply Last reply
                        0
                        • R Offline
                          R Offline
                          Ritter
                          wrote on last edited by
                          #49

                          Ja, so hats zumindest funktioniert.

                          Javascript Version 3.5.0

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            dodi666
                            wrote on last edited by
                            #50

                            @Ritter:

                            Ja, so hats zumindest funktioniert.

                            Javascript Version 3.5.0 `

                            Wenn ich mich nicht irre, ist 3.4.0 die aktuelle stable Version, oder?

                            1 Reply Last reply
                            0
                            • DutchmanD Offline
                              DutchmanD Offline
                              Dutchman
                              Developer Most Active Administrators
                              wrote on last edited by
                              #51

                              @dodi666:

                              Wenn ich mich nicht irre, ist 3.4.0 die aktuelle stable Version, oder? `

                              jup und 3.5.1 im latest: http://download.iobroker.net/list.html# … lter=logic

                              979_js-version.jpg

                              1 Reply Last reply
                              0
                              • rantanplanR Online
                                rantanplanR Online
                                rantanplan
                                wrote on last edited by
                                #52

                                Nur bloß nicht die 3.6.0 runterladen !!!!!

                                Da geht mit Blockly fast gar nichts.

                                Grüße

                                Rantanplan

                                CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  dodi666
                                  wrote on last edited by
                                  #53

                                  Ok,

                                  ich warte auf die nächste stable :D

                                  1 Reply Last reply
                                  0
                                  • MatzebhvM Offline
                                    MatzebhvM Offline
                                    Matzebhv
                                    wrote on last edited by
                                    #54

                                    @Ritter:

                                    Hallo,

                                    so:

                                    Wetterwarnung.jpg

                                    Wetterwarnung2.JPG `

                                    Hm,

                                    hier mit Version 3.51:

                                    3514_blockly.png

                                    Und als Ergebnis:

                                    sendTo("telegram", "send", {

                                    text: (String('Test') + String('\n'))

                                    });

                                    1 Reply Last reply
                                    0
                                    • rantanplanR Online
                                      rantanplanR Online
                                      rantanplan
                                      wrote on last edited by
                                      #55

                                      Also bei mir klappt es nicht. (v3.5.1)
                                      147_beispiel.png

                                      sendTo("telegram.0", "send", {
                                          text: (['Test neue Zeile','\\n','NEUE ZEILE'].join(''))
                                      });
                                      

                                      Bei Telegram kommt "Test neue Zeile\nNEUE ZEILE" an.

                                      Grüße

                                      Rantanplan

                                      CCU3 / MS Server 2019(VM) / Scripten mit Blockly

                                      1 Reply Last reply
                                      0
                                      • MatzebhvM Offline
                                        MatzebhvM Offline
                                        Matzebhv
                                        wrote on last edited by
                                        #56

                                        @rantanplan:

                                        Also bei mir klappt es nicht. (v3.5.1)

                                        Beispiel.png

                                        sendTo("telegram.0", "send", {
                                            text: (['Test neue Zeile','\\n','NEUE ZEILE'].join(''))
                                        });
                                        

                                        Bei Telegram kommt "Test neue Zeile\nNEUE ZEILE" an.

                                        Grüße `

                                        Ja genau. Der \ wird im Code escaped -> \n

                                        1 Reply Last reply
                                        0
                                        • R Offline
                                          R Offline
                                          Ritter
                                          wrote on last edited by
                                          #57

                                          Hallo,

                                          Beim Enigma Receiver mit dem Request Baustein gehts, auch mit //, aber nur wenn ich das Blockly neu anlege, ein altes Blockly mit gleichem Inhalt das ich nur deaktiviert habe und wieder gestartet habe gings nicht.
                                          1026_wetterstation.jpg
                                          1026_wetterstation1.jpg

                                          on({id: 'hm-rpc.0.JEQ0157625.1.TEMPERATURE', change: "any"}, function (obj) {

                                          var value = obj.state.val;

                                          var oldValue = obj.oldState.val;

                                          try {

                                          require("request")((['http://192.168.1.111/web/message?text=Aussentemperatur: ',getState("hm-rpc.0.JEQ0157625.1.TEMPERATURE").val,' °C','\n','Windgeschwindigkeit: ',getState("hm-rpc.0.JEQ0157625.1.WIND_SPEED").val,' km/h','\n','Regen: ',getState("hm-rpc.0.JEQ0157625.1.RAINING").val,'&type=1&timeout=15'].join(''))).on("error", function (e) {console.error(e);});

                                          } catch (e) { console.error(e); }

                                          });

                                          Bei Telegram, Pushover und Email gehts nicht.

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          407

                                          Online

                                          32.8k

                                          Users

                                          82.7k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe