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. Grundverständnis Blockly

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    13
    1
    142

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

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

Grundverständnis Blockly

Scheduled Pinned Locked Moved Skripten / Logik
43 Posts 8 Posters 6.4k Views
  • 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.
  • J Offline
    J Offline
    j.kowi
    wrote on last edited by
    #17

    Na klar!!!

    genau so einen Lichtblick habe ich benötigt! VIELEN DANK!!! Es ist jetzt alles so logisch!

    Also so:
    3801_blcc5.png

    1 Reply Last reply
    0
    • J Offline
      J Offline
      j.kowi
      wrote on last edited by
      #18

      Aber das funktioniert leider immernoch nicht. :(

      Was mache ich da noch falsch?

      Der Trigger müsste doch alle 10s den Status von der IP abfragen. Dieser ändert sich aber nicht.
      3801_blcc6.png

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

        Ändert sich denn der Datenpunkt zur IP? Im Skript vergleichst du nur die Datenpunkte, für deren Aktualisierung ist der jeweilige Adapter zuständig. Wenn der bspw. nur alle 60 Sekunden prüft, ändert sich der DP auch nur frühestens alle 60s.

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

        1 Reply Last reply
        0
        • J Offline
          J Offline
          j.kowi
          wrote on last edited by
          #20

          Ja der ändert sich. Hab ping zu testzwecken alle 10s aktuallisieren lassen.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            j.kowi
            wrote on last edited by
            #21

            selbst das geht nicht. Erscheint nichts im Log
            3801_blcc7.png

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

              Und der JS-Adapter sowie dein Skript stehen auf aktiv?

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

              1 Reply Last reply
              0
              • J Offline
                J Offline
                j.kowi
                wrote on last edited by
                #23

                ja, natürlich. :)

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

                  Dann weiß ich auch nicht was faul ist.

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

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    j.kowi
                    wrote on last edited by
                    #25

                    Ich habe manche Scripte in common und manche in global. Kann das was ausmachen? Was ist da der Unterscheid?

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      Gürol
                      wrote on last edited by
                      #26

                      @j.kowi:

                      Ich habe manche Scripte in common und manche in global. Kann das was ausmachen? Was ist da der Unterscheid? `
                      Wenn man den Unterschied nicht kennt, dann alles ins common packen.

                      Global ist nur für globalen Funktionen.

                      Gesendet von meinem SM-N910F mit Tapatalk

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        j.kowi
                        wrote on last edited by
                        #27

                        Aber ich benutze Datenpunkte als Variablen. Ist das im common noch möglich? Was sind denn globale Scripte?

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          Gürol
                          wrote on last edited by
                          #28

                          @j.kowi:

                          Aber ich benutze Datenpunkte als Variablen. Ist das im common noch möglich? Was sind denn globale Scripte? `
                          Ja, das geht mit common.

                          Globale Scripte sind Scripte, die von anderen Scripten aus gerufen werden können. (Das funktioniert aber mit Blockly nicht wirklich.)

                          Gesendet von meinem SM-N910F mit Tapatalk

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            j.kowi
                            wrote on last edited by
                            #29

                            Also Wenn Das, dann starte Script Sowieso?

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

                              @j.kowi:

                              Also Wenn Das, dann starte Script Sowieso? `

                              Global functions

                              You can define the global scripts in the "global" folder. All global scripts are available on all instances. If global script is disabled, it will not be used. Global script will be just prepend to the normal script and compiled, so you cannot share data between scripts via global scrips. Use states for it.

                              Lies Mich mal : >>> https://github.com/ioBroker/ioBroker.javascript

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                Gürol
                                wrote on last edited by
                                #31

                                @j.kowi:

                                Also Wenn Das, dann starte Script Sowieso? `
                                Dem Blockly fehlt aber ein Block, um globale Funktionen aufrufen zu können.

                                Man kann lediglich in Blockly eine Freitextfunktion definieren und dort eine globale Funktion aufrufen. Das ist aber arg arg umständlich.

                                Gesendet von meinem SM-N910F mit Tapatalk

                                1 Reply Last reply
                                0
                                • J Offline
                                  J Offline
                                  j.kowi
                                  wrote on last edited by
                                  #32

                                  Das hatte ich auch schon mal gelesen aber nicht begriffen, sorry. Mein Englisch ist nicht das beste.

                                  1 Reply Last reply
                                  0
                                  • J Offline
                                    J Offline
                                    j.kowi
                                    wrote on last edited by
                                    #33

                                    Aha, vielen Dank für die Info.

                                    1 Reply Last reply
                                    0
                                    • J Offline
                                      J Offline
                                      j.kowi
                                      wrote on last edited by
                                      #34

                                      Sooo, das Zeitglied funktioniert jetzt seit dem ich alle Scripte im common habe.

                                      Aber ich bekomme jetzt immernoch eine Fehlermeldung im Log:

                                      javascript.0
                                      2017-10-16 16:54:00.850
                                      error
                                      change ID is empty: {"common":{"enabled":119.6},"_id":null,"acl":{"object":1636}}
                                      cloud.0
                                      2017-10-16 16:54:00.851
                                      error
                                      change ID is empty: {"common":{"enabled":119.6},"_id":null,"acl":{"object":1636}}
                                      history.0
                                      2017-10-16 16:54:00.851
                                      error
                                      change ID is empty: {"common":{"enabled":119.6},"_id":null,"acl":{"object":1636}}
                                      admin.0
                                      2017-10-16 16:54:00.852
                                      error
                                      change ID is empty: {"common":{"enabled":119.6},"_id":null,"acl":{"object":1636}}
                                      

                                      Was kann das sein?

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

                                        @j.kowi:

                                        Sooo, das Zeitglied funktioniert jetzt seit dem ich alle Scripte im common habe.

                                        Aber ich bekomme jetzt immernoch eine Fehlermeldung im Log:

                                        javascript.0
                                        2017-10-16 16:54:00.850
                                        error
                                        change ID is empty: {"common":{"enabled":119.6},"_id":null,"acl":{"object":1636}}
                                        cloud.0
                                        2017-10-16 16:54:00.851
                                        error
                                        change ID is empty: {"common":{"enabled":119.6},"_id":null,"acl":{"object":1636}}
                                        history.0
                                        2017-10-16 16:54:00.851
                                        error
                                        change ID is empty: {"common":{"enabled":119.6},"_id":null,"acl":{"object":1636}}
                                        admin.0
                                        2017-10-16 16:54:00.852
                                        error
                                        change ID is empty: {"common":{"enabled":119.6},"_id":null,"acl":{"object":1636}}
                                        

                                        Was kann das sein? `

                                        Poste bitte dein jetziges blockly

                                        –-----------------------

                                        Send from mobile device

                                        1 Reply Last reply
                                        0
                                        • J Offline
                                          J Offline
                                          j.kowi
                                          wrote on last edited by
                                          #36

                                          Egal welchen script ich aktiviere…

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          570

                                          Online

                                          32.7k

                                          Users

                                          82.4k

                                          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