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
    16
    1
    364

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

  • 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
    #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
                                  • DutchmanD Offline
                                    DutchmanD Offline
                                    Dutchman
                                    Developer Most Active Administrators
                                    wrote on last edited by
                                    #37

                                    @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
                                    0
                                    • J Offline
                                      J Offline
                                      j.kowi
                                      wrote on last edited by
                                      #38

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

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

                                        @j.kowi:

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

                                        system mal neu gestartet ?

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

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

                                          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

                                          690

                                          Online

                                          32.7k

                                          Users

                                          82.5k

                                          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