Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] Skripte laufen nicht mehr script.js. compile failed

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Skripte laufen nicht mehr script.js. compile failed

    This topic has been deleted. Only users with topic management privileges can see it.
    • paul53
      paul53 @chaser last edited by

      @chaser sagte: myDevices.hs100.0 = {};

      Schalte im Javascript-Editor auf "Experten-Modus" und stoppe oder lösche das Skript im Ordner "global".

      C P 2 Replies Last reply Reply Quote 1
      • C
        chaser @Homoran last edited by

        @homoran
        genau habe sie in /opt/iobroker durchgeführt ist richtig oder?

        Von dem Skript?
        Zeile 6: } else if ((obj.state ? obj.state.val : "") == false) {

        Gesamtskript:

        on({id: 'lgtv.0.states.on', change: "ne"}, function (obj) {
          var value = obj.state.val;
          var oldValue = obj.oldState.val;
          if ((obj.state ? obj.state.val : "") == true) {
            setState("linkeddevices.0.Ambilight.state"/*Ambilight*/, true);
          } else if ((obj.state ? obj.state.val : "") == false) {
            setState("linkeddevices.0.Ambilight.state"/*Ambilight*/, false);
          }
        });
        
        //JTNDeG1.........
        
        1 Reply Last reply Reply Quote 0
        • C
          chaser @paul53 last edited by

          @paul53
          im global gibt es die betreffenden Skripte nicht nur von linkeddevice die auch funktionieren.

          063f8c4a-770e-4517-ae59-eb6c3090f2d6-grafik.png

          Habe auch ein Skript komplett neu angelegt zeigt den selben Fehler auf

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

            @chaser sagte: nur von linkeddevice die auch funktionieren.

            Sicher, dass die funktionieren? Schau mal rein, ob dort die angemeckerte Zeile enthalten ist.

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

              @paul53
              Ja habe gerade ein Licht an und aus geschlatet. Funktioniert und auch keine Errors im Log

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

                @chaser sagte: Funktioniert und auch keine Errors im Log

                Nach Stoppen des Scripts "linkeddevices.0"?

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

                  @paul53 said in Skripte laufen nicht mehr script.js. compile failed::

                  @chaser sagte: Funktioniert und auch keine Errors im Log

                  Nach Stoppen des Scripts "linkeddevices.0"?

                  Danke, Du hast recht. Das Stoppen der Instanz "Linkddevice" bringt nichts. Aber wenn man das linkeddevice skript unter "global" stoppt kommt keine Fehlermeldung mehr.

                  Da aber meine Geräte über Linkeddevice gekoppelt sind funktionieren an sich die Skripte nicht. Würde auch gerne die Funktion von Linkeddevice verwenden. Hast Du eine Idee woran das liegt?

                  paul53 1 Reply Last reply Reply Quote 0
                  • liv-in-sky
                    liv-in-sky @Homoran last edited by

                    @homoran ist das nicht ein ähnliches thema wie gestern - wurde dort nicht auch ein script von linkdevices (unter global) erwähnt - ich nutze den adapter nicht aber da sollte man mal beim adapter nachfragen

                    https://forum.iobroker.net/post/571247

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @liv-in-sky last edited by

                      @liv-in-sky sagte in Skripte laufen nicht mehr script.js. compile failed::

                      ist das nicht ein ähnliches thema wie gestern

                      Ich denke, dem ist @paul53 auch auf der Fährte.
                      Da lasse ich ihn mal machen - der weiß das besser als ich

                      liv-in-sky 1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @Homoran last edited by

                        @homoran besser als wir beide 😕

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

                          @chaser sagte: Würde auch gerne die Funktion von Linkeddevice verwenden.

                          Linkeddevices funktioniert auch ohne dieses Script. Das Script ist optional und funktioniert nur, wenn man einen gültigen Variablenbezeichner in die Konfiguration einträgt.

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

                            @paul53 said in Skripte laufen nicht mehr script.js. compile failed::

                            @chaser sagte: Würde auch gerne die Funktion von Linkeddevice verwenden.

                            Linkeddevices funktioniert auch ohne dieses Script. Das Script ist optional und funktioniert nur, wenn man einen gültigen Variablenbezeichner in die Konfiguration einträgt.

                            Danke Dir vielmals. Stimmt geht auch mit der Deaktivierung des Skripts. Setzte das jetzt auf gelöst. Wenn ich euch beim Fehlerbeheben oder Testen helfen kann lasst es mich wissen.

                            1 Reply Last reply Reply Quote -1
                            • P
                              Prince3k @paul53 last edited by

                              @paul53

                              Danke, genau das war mein Fehler. Im Global lief ein Script.

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

                              Support us

                              ioBroker
                              Community Adapters
                              Donate
                              FAQ Cloud / IOT
                              HowTo: Node.js-Update
                              HowTo: Backup/Restore
                              Downloads
                              BLOG

                              487
                              Online

                              31.9k
                              Users

                              80.2k
                              Topics

                              1.3m
                              Posts

                              5
                              15
                              1806
                              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