Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [gelöst] Trigger in Blockly verschwunden

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst] Trigger in Blockly verschwunden

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

      Hallo Community,

      ich habe ein Problem mit blockly. Neuerdings sind alle Trigger-Blöcke verschwunden (on()). Wenn ich ein existierendes Skript öffne, erhalte ich die Meldung "cannot extract Blockly code" (s. Screenshot) 3975_screenshot.png

      Den JS-Code kann ich mir aber weiterhin anzeigen lassen:

      createState("BewegungErkannt", function () {
        setStateDelayed('javascript.0.BewegungErkannt', false, false, parseInt(0, 10), false);
      });
      
      on({id: 'default', change: "null"}, function (obj) {
        var value = obj.state.val;
        var oldValue = obj.oldState.val;
      });
      
      

      Meine letzten Änderungen waren die Installation des simpleAPI-Adapters und einer neuen web-Instanz mit eingebauter SimpleAPI. Ich sehe da nicht wirklich einen Zusammenhang.

      Hat jemand eine Idee?

      1 Reply Last reply Reply Quote 0
      • C
        cstauch last edited by

        Jetzt habe ich festgestellt, dass ich den JS-Adapter nicht mehr starten kann. Folgende Log-Ausgabe:

        host.ioBroker-Pi	2017-12-30 13:08:09.758	info	instance system.adapter.javascript.0 started with pid 10166
        host.ioBroker-Pi	2017-12-30 13:07:39.739	info	Restart adapter system.adapter.javascript.0 because enabled
        host.ioBroker-Pi	2017-12-30 13:07:39.739	error	instance system.adapter.javascript.0 terminated with code 1 ()
        host.ioBroker-Pi	2017-12-30 13:07:39.739	error	Caught by controller[0]: at bootstrap_node.js:496:3
        host.ioBroker-Pi	2017-12-30 13:07:39.738	error	Caught by controller[0]: at startup (bootstrap_node.js:149:9)
        host.ioBroker-Pi	2017-12-30 13:07:39.738	error	Caught by controller[0]: at run (bootstrap_node.js:383:7)
        host.ioBroker-Pi	2017-12-30 13:07:39.737	error	Caught by controller[0]: at Module.runMain (module.js:604:10)
        host.ioBroker-Pi	2017-12-30 13:07:39.737	error	Caught by controller[0]: at Function.Module._load (module.js:438:3)
        host.ioBroker-Pi	2017-12-30 13:07:39.737	error	Caught by controller[0]: at tryModuleLoad (module.js:446:12)
        host.ioBroker-Pi	2017-12-30 13:07:39.736	error	Caught by controller[0]: at Module.load (module.js:487:32)
        host.ioBroker-Pi	2017-12-30 13:07:39.736	error	Caught by controller[0]: at Object.Module._extensions..js (module.js:579:10)
        host.ioBroker-Pi	2017-12-30 13:07:39.736	error	Caught by controller[0]: at Module._compile (module.js:570:32)
        host.ioBroker-Pi	2017-12-30 13:07:39.735	error	Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.javascript/javascript.js:3429:3)
        host.ioBroker-Pi	2017-12-30 13:07:39.735	error	Caught by controller[0]: at /opt/iobroker/node_modules/iobroker.javascript/javascript.js:226:25
        host.ioBroker-Pi	2017-12-30 13:07:39.734	error	Caught by controller[0]: TypeError: utils.adapter is not a function
        host.ioBroker-Pi	2017-12-30 13:07:39.734	error	Caught by controller[0]: ^
        host.ioBroker-Pi	2017-12-30 13:07:39.733	error	Caught by controller[0]: var adapter = utils.adapter({
        host.ioBroker-Pi	2017-12-30 13:07:39.727	error	Caught by controller[0]: /opt/iobroker/node_modules/iobroker.javascript/javascript.js:226
        

        Leider hilft mir Google hier nicht wirklich…

        EDIT:

        Entfernen und Neuinstallation des JS-Adapters haben das Problem mit der Fehlermeldung gelöst. Das Blockly-Problem existiert jedoch nach wie vor.

        Noch eine weitere Änderung hatte ich kürzlich vorgenommen: Ich bin bei Clous auf pro gewechselt. Aber auch hier kann ich mir keinen Zusammenhang vorstellen...

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

          Hast Du den js-Adapter v3.6.0 installiert?

          1 Reply Last reply Reply Quote 0
          • C
            cstauch last edited by

            @rantanplan:

            Hast Du den js-Adapter v3.6.0 installiert? `

            Ja, aus GitHub installiert!

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

              @cstauch:

              Ja, aus GitHub installiert! `
              Die 3.6.0 ist völlig buggy.

              Nimm die 3.5.1 oder früher.

              1 Reply Last reply Reply Quote 0
              • C
                cstauch last edited by

                @rantanplan:

                @cstauch:

                Ja, aus GitHub installiert! `
                Die 3.6.0 ist völlig buggy.

                Nimm die 3.5.1 oder früher. `

                Super, geht jetzt, vielen Dank. Hatte das tatsächlich auch vorher schon versucht mit 3.4.5, aber vergessen, ioBroker neu zu starten. :?

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

                Support us

                ioBroker
                Community Adapters
                Donate

                779
                Online

                31.7k
                Users

                79.8k
                Topics

                1.3m
                Posts

                2
                6
                776
                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