Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [Frage] timeout mit variabler Zeit

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Frage] timeout mit variabler Zeit

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

      Hallo Gemeinde,
      Ich möchte in einem Blockly einem Timeout eine individuell berechnete Zeit mitgeben.
      Hab da bis jetzt leider nix gefunden. Geht das überhaupt? Wenn ja, wie?

      Ciao
      Gerhard

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Linedancer last edited by

        @Linedancer sagte:

        Geht das überhaupt? Wenn ja, wie?

        Blockly_temp.JPG

        L J 2 Replies Last reply Reply Quote 0
        • L
          Linedancer @paul53 last edited by

          @paul53
          Ich kann in den timeout block nen Variablen Namen reinschreiben. Das ist ja einfach.

          Dank dir.

          1 Reply Last reply Reply Quote 0
          • J
            jan_xx @paul53 last edited by

            @paul53
            Warum eigentlich * 6000 ?

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

              @jan_xx sagte in [Frage] timeout mit variabler Zeit:

              @paul53
              Warum eigentlich * 6000 ?

              nich 6000, sondern 60000
              millisekunden also eine Minute

              J 1 Reply Last reply Reply Quote 0
              • J
                jan_xx @Homoran last edited by

                @Homoran
                Ja okay aber du kannst doch auf Sekunde stellen dann muss man doch nicht multiplizieren?

                paul53 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @jan_xx last edited by paul53

                  @jan_xx sagte in: auf Sekunde stellen dann muss man doch nicht multiplizieren?

                  Nein, das mit dem Variablenbezeichner funktioniert nur mit ms (original setTimeout).

                  J 2 Replies Last reply Reply Quote 0
                  • J
                    jan_xx @paul53 last edited by

                    @paul53
                    Ich sag nur, finde den Fehler.
                    Mit ms geht es jetzt auch so wie erwartet!:-)
                    Danke!

                    1 Reply Last reply Reply Quote 0
                    • J
                      jan_xx @paul53 last edited by

                      @paul53

                      Nochmal eine Frage, wäre es möglich den aktuellen Wert des Timeouts in der VIS darzustellen?

                      paul53 1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @jan_xx last edited by

                        @jan_xx sagte: wäre es möglich den aktuellen Wert des Timeouts in der VIS darzustellen?

                        Es lassen sich nur die Werte von Datenpunkten in der VIS darstellen. Wird der Wert nicht aus einem Datenpunkt geholt und dann in ms umgerechnet?

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          jan_xx @paul53 last edited by

                          @paul53
                          Ja hab mit eine Variable <Bewässerungszeit> angelgt. Diese hole ich mir dann im Blockly Script ab.
                          Es müsste wie so eine Art Countdown runterzählen...
                          Dann würde man gleich sehen wie lange das wässern noch läuft.:-)

                          paul53 1 Reply Last reply Reply Quote 0
                          • paul53
                            paul53 @jan_xx last edited by

                            @jan_xx sagte: Es müsste wie so eine Art Countdown runterzählen...

                            Dafür gibt es einige Beispiele im Forum, die ein Intervall verwenden.

                            J 2 Replies Last reply Reply Quote 0
                            • J
                              jan_xx @paul53 last edited by

                              @paul53
                              Ok ich suche mal

                              1 Reply Last reply Reply Quote 0
                              • J
                                jan_xx @paul53 last edited by

                                @paul53
                                Ich baue mir selber was wo ich eine Variable bis auf null runter zähle.
                                Ist es für ioBroker ein Problem wenn ich jede Sekunde ein Script aufrufe?
                                Mache Systeme mögen solche schnellen Aufrufe nicht.
                                Ist das kritisch?

                                paul53 1 Reply Last reply Reply Quote 0
                                • paul53
                                  paul53 @jan_xx last edited by paul53

                                  @jan_xx sagte Ist es für ioBroker ein Problem wenn ich jede Sekunde ein Script aufrufe?

                                  Das hängt vom Umfang der aufgerufenen Funktionen ab, sollte normalerweise aber kein Problem sein.
                                  Muss eine Bewässerungsrestzeit wirklich in Sekunden angezeigt werden?
                                  Oder genügt es so (mit Minuten)?

                                  Bild_2021-01-30_171255.png

                                  J 2 Replies Last reply Reply Quote 0
                                  • J
                                    jan_xx @paul53 last edited by

                                    @paul53
                                    Ich denke das Minuten ausreichen..;-)))
                                    Sekunden hätte halt visuell noch was
                                    Werde dann mal testen was ich so hin bekomme

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      jan_xx @paul53 last edited by jan_xx

                                      @paul53
                                      hallo paul, gibt es unterschiede wenn ich eine Variable schreibe, sprich ich schreibe einen Wert über Blockly -> steuer Variable hinein oder ich ändere diese über ein jqui input widget über VIS?meldung.jpg meldung1.jpg

                                      J 1 Reply Last reply Reply Quote 0
                                      • J
                                        jan_xx @jan_xx last edited by

                                        @jan_xx
                                        hab den Block so gemacht, jetzt ging es auch mit steuern über VIS
                                        f8f482f4-4e1d-4549-93f2-95dcac36be67-grafik.png

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

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        841
                                        Online

                                        32.0k
                                        Users

                                        80.5k
                                        Topics

                                        1.3m
                                        Posts

                                        blockly
                                        4
                                        18
                                        712
                                        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