Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Grundverständnis Blockly

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Grundverständnis Blockly

    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gürol last edited by

      @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 Reply Quote 0
      • J
        j.kowi last edited by

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

        1 Reply Last reply Reply Quote 0
        • G
          Gürol last edited by

          @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 Reply Quote 0
          • J
            j.kowi last edited by

            Also Wenn Das, dann starte Script Sowieso?

            1 Reply Last reply Reply Quote 0
            • Dutchman
              Dutchman Developer Most Active Administrators last edited by

              @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 Reply Quote 0
              • G
                Gürol last edited by

                @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 Reply Quote 0
                • J
                  j.kowi last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • J
                    j.kowi last edited by

                    Aha, vielen Dank für die Info.

                    1 Reply Last reply Reply Quote 0
                    • J
                      j.kowi last edited by

                      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 Reply Quote 0
                      • Dutchman
                        Dutchman Developer Most Active Administrators last edited by

                        @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 Reply Quote 0
                        • J
                          j.kowi last edited by

                          Egal welchen script ich aktiviere…

                          1 Reply Last reply Reply Quote 0
                          • Dutchman
                            Dutchman Developer Most Active Administrators last edited by

                            @j.kowi:

                            Egal welchen script ich aktiviere… `

                            doch waehre es hilflreich wen du postest was du genau probierst, machst du jetzt blockly oder javascript selber ? (wir haben keine glaskugel)

                            1 Reply Last reply Reply Quote 0
                            • J
                              j.kowi last edited by

                              Ich habe jetzt alle Skripte deaktiviert. Und trotzdem kommt der Fehler.

                              1 Reply Last reply Reply Quote 0
                              • Dutchman
                                Dutchman Developer Most Active Administrators last edited by

                                @j.kowi:

                                Ich habe jetzt alle Skripte deaktiviert. Und trotzdem kommt der Fehler. `

                                system mal neu gestartet ?

                                1 Reply Last reply Reply Quote 0
                                • J
                                  j.kowi last edited by

                                  So sieht das jetzt aus…
                                  3801_blcc9.png
                                  3801_blcc10.png

                                  1 Reply Last reply Reply Quote 0
                                  • AlCalzone
                                    AlCalzone Developer last edited by

                                    {"common":{"enabled":119.6}
                                    

                                    sieht doch arg seltsam aus… Common.enabled ist üblicherweise ein boolean. Hast du mal irgendwo versucht, ein Objekt zu bearbeiten?

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      j.kowi last edited by

                                      Kann sein. Ich hab mal was gelöscht in der Objekteliste.

                                      1 Reply Last reply Reply Quote 0
                                      • rantanplan
                                        rantanplan last edited by

                                        Hallo j.kowi

                                        Ich packe meine Blocklys weder in "Global" noch in "Common".
                                        147_beispiel.png

                                        Grüße

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

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        572
                                        Online

                                        31.7k
                                        Users

                                        79.8k
                                        Topics

                                        1.3m
                                        Posts

                                        8
                                        43
                                        3871
                                        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