Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 3.1 jetzt im STABLE!

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    js-controller 3.1 jetzt im STABLE!

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

      @MattinK Jupp, steht alles ganz oben im ersten Post inklusive Link zu den nodejs Upgrade Anleitungen 🙂

      1 Reply Last reply Reply Quote 0
      • D
        derrapf @Thomas Braun last edited by derrapf

        @Thomas-Braun
        Hallo Thomas
        Soll ich die drei Befehle ausführen? Was tun die genau?

        Ich hab's ausgeführt und danach iot upgedatet. Kommen aber immer noch diese Gyp Fehler:

        $ ./iobroker upgrade iot
        Update iot from @1.4.18 to @1.5.3
        host.ioBroker-Rock64 Adapter "system.adapter.iot.0" is stopped.
        NPM version: 6.14.4
        npm install iobroker.iot@1.5.3 --loglevel error --prefix "/opt/iobroker" (System call)
        ../src/Canvas.cc: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE Canvas::ToBuffer(Nan::NAN_METHOD_ARGS_TYPE)':../src/Canvas.cc:415:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]     if (canvas->nBytes() > node::Buffer::kMaxLength) {         ~~~~~~~~~~~~~~~~~^~~~~~
        ERR!
         
        sharp Use with glibc 2.24 requires manual installation of libvips >= 8.9.1info sharp Attempting to build from source via node-gyp but this may fail due to the above error
        info sharp Please see https://sharp.pixelplumbing.com/install for required dependencies
        ../src/common.cc:23:22: fatal error: vips/vips8: No such file or directory #include <vips/vips8>                      ^
        compilation terminated.
        make: *** [Release/obj.target/sharp/src/common.o] Error 1
        gyp
         
        ERR! build error gyp
         ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)gyp ERR! 
        stack     at ChildProcess.emit (events.js:310:20)gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)gyp ERR! System Linux 4.17.0-rc6-rk3328
        gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/sharpgyp ERR! node -v v12.16.3gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok 
        Update "system.adapter.iot.0"
        upload [30] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/runtime-main.293df86c.js static/js/runtime-main.293df86c.js application/javascript
        upload [20] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/2.998ec878.chunk.js.LICENSE.txt static/js/2.998ec878.chunk.js.LICENSE.txt text/plain
        upload [19] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/2.998ec878.chunk.js static/js/2.998ec878.chunk.js application/javascript
        upload [18] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/2.09585381.chunk.js.map static/js/2.09585381.chunk.js.map application/json
        upload [17] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/2.09585381.chunk.js.LICENSE.txt static/js/2.09585381.chunk.js.LICENSE.txt text/plain
        upload [16] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/js/2.09585381.chunk.js static/js/2.09585381.chunk.js application/javascript
        upload [15] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/css/main.d4bed9c6.chunk.css.map static/css/main.d4bed9c6.chunk.css.map application/json
        upload [14] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/css/main.d4bed9c6.chunk.css static/css/main.d4bed9c6.chunk.css text/css
        upload [13] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/css/2.b1b16afe.chunk.css.map static/css/2.b1b16afe.chunk.css.map application/json
        upload [12] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/static/css/2.b1b16afe.chunk.css static/css/2.b1b16afe.chunk.css text/css
        upload [11] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/service-worker.js service-worker.js application/javascript
        upload [10] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/precache-manifest.bebcfb9ed8ff6b9f47417e68cd1ee624.js precache-manifest.bebcfb9ed8ff6b9f47417e68cd1ee624.js application/javascript
        upload [9] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/precache-manifest.64c35f13f942d5febcd49006c799b298.js precache-manifest.64c35f13f942d5febcd49006c799b298.js application/javascript
        upload [8] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/precache-manifest.537015042a8c3fa504c76d01ebb32c7c.js precache-manifest.537015042a8c3fa504c76d01ebb32c7c.js application/javascript
        upload [7] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/manifest.json manifest.json application/json
        upload [6] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/iot.png iot.png image/png
        upload [5] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/index_m.html index_m.html text/html
        upload [4] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/favicon.ico favicon.ico image/vnd.microsoft.icon
        upload [3] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/blockly.js blockly.js application/javascript
        upload [2] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/asset-manifest.json asset-manifest.json application/json
        upload [1] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/alexalogo.png alexalogo.png image/png
        upload [0] iot.admin /opt/iobroker/node_modules/iobroker.iot/admin/actions.js actions.js application/javascript
        Adapter "iot" updated
        host.ioBroker-Rock64 Adapter "system.adapter.iot.0" is started
        process exited with code 0
        

        Gruss Ralf

        1 Reply Last reply Reply Quote 0
        • O
          oFbEQnpoLKKl6mbY5e13 @apollon77 last edited by

          @apollon77 sagte in js-controller 3.1 jetzt im STABLE!:

          ...anonymisiere ich noch und richte im Sentry dafür speziell die anonymisierung ein.

          Hier ist wieder eine SGTIN im GITHUB gelandet:
          https://github.com/iobroker-community-adapters/ioBroker.hmip/issues/143

          Apollon77 created this issue in iobroker-community-adapters/ioBroker.hmip

          closed Unknown Channel type MULTI_MODE_INPUT_SWITCH_CHANNEL (Sentry) #143

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

            Hi zusammen,

            ich kann leider meinen js-controller nicht über "iobroker upgrade self" updaten (*** Error. Please start the ioBroker commandline with the correct Windows startmenu shortcut. Aborting...) ich habe bis jetzt nicht herausgefunden woran das liegt.
            ich kann den iobroker noch stoppen aber schon beim prüfen mit "status" bekomme ich diese Meldung

            Weiß jemand ab wann ein neuer Windows Installer (3.1) verfügbar ist?

            Danke gruß
            Matthias

            1 Reply Last reply Reply Quote 0
            • B
              BerndG @apollon77 last edited by BerndG

              @apollon77 Hallo Apollon,
              am 31. Mai wurde dieser Fehler schon einmal gepostet und Du hast darauf geantwortet, aber
              ich verstehe Deine Bemerkung dazu nicht. Ich habe nun Unmengen an Meldungen dieser Art (jede Minute, aber nur Heizthermostate von HM, alle anderen Geräte in FHEM arbeiten normal).
              Wie bekomme ich die weg?.
              Ich habe bereits den FHEM-Adapter auf frühere Versionen gesetzt und auch völlig neu installiert, ohne Ergebnis.
              Vielleicht kannst Du oder jemand anders helfen?
              NPM 6.14.4
              Node.js 12.16.3
              JS-controller 3.16
              FHEM-Adapter 1.3.0

              fhem.0	2020-06-27 18:03:38.559	warn	(18839) This value will not be set in future versions. Please report this to the developer.
              fhem.0	2020-06-27 18:03:38.559	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Weather.measured-temp: The state property "ts" has the wrong type "undefined" (should be "number")!
              fhem.0	2020-06-27 18:03:38.555	warn	(18839) This value will not be set in future versions. Please report this to the developer.
              fhem.0	2020-06-27 18:03:38.554	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.state: The state property "ts" has the wrong type "undefined" (should be "number")!
              fhem.0	2020-06-27 18:03:38.551	warn	(18839) This value will not be set in future versions. Please report this to the developer.
              fhem.0	2020-06-27 18:03:38.550	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.partyTemp: The state property "ts" has the wrong type "undefined" (should be "number")!
              fhem.0	2020-06-27 18:03:38.547	warn	(18839) This value will not be set in future versions. Please report this to the developer.
              fhem.0	2020-06-27 18:03:38.546	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.partyStart: The state property "ts" has the wrong type "undefined" (should be "number")!
              fhem.0	2020-06-27 18:03:38.542	warn	(18839) This value will not be set in future versions. Please report this to the developer.
              fhem.0	2020-06-27 18:03:38.542	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.partyEnd: The state property "ts" has the wrong type "undefined" (should be "number")!
              fhem.0	2020-06-27 18:03:38.538	warn	(18839) This value will not be set in future versions. Please report this to the developer.
              fhem.0	2020-06-27 18:03:38.538	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.measured-temp: The state property "ts" has the wrong type "undefined" (should be "number")!
              fhem.0	2020-06-27 18:03:38.534	warn	(18839) This value will not be set in future versions. Please report this to the developer.
              fhem.0	2020-06-27 18:03:38.533	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.desired-temp: The state property "ts" has the wrong type "undefined" (should be "number")!
              fhem.0	2020-06-27 18:03:38.530	warn	(18839) This value will not be set in future versions. Please report this to the developer.
              fhem.0	2020-06-27 18:03:38.529	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.controlMode: The state property "ts" has the wrong type "undefined" (should be "number")!
              fhem.0	2020-06-27 18:03:38.525	warn	(18839) This value will not be set in future versions. Please report this to the developer.
              fhem.0	2020-06-27 18:03:38.525	warn	(18839) State value to set is invalid for fhem.0.HM_649886_Clima.boostTime: The state property "ts" has the wrong type "undefined" (should be "number")!
              
              1 Reply Last reply Reply Quote 0
              • LausiD
                LausiD last edited by

                @BerndG
                Update FHEM Adapter von github auf V 1.5.2 und alles ist wieder gut 🙂

                Gruß LausiD

                B 1 Reply Last reply Reply Quote 0
                • B
                  BerndG @LausiD last edited by

                  @LausiD
                  Vielen Dank. Die Version fhem@1.5.2 wird noch nicht im IOBroker angeboten und ich bin bei einer produktiven Installation normalerweise vorsichtig mit "beta"-Versionen. Ich kann mir vorstellen, dass das anderen ähnlich geht. Die Installation ist problemlos durchgelaufen und die Warnungen scheinen weg zu sein. Nochmals vielen Dank
                  Bernd

                  1 Reply Last reply Reply Quote 0
                  • S
                    saeft_2003 Most Active last edited by

                    ich habe meinen js-controller geupdatet von 2.2.8 auf 3.1.6. Jetzt kommen von dem javascript adapter sehr viele error im log. Betroffen sind aber nur zwei Skripte (volumio und unifi controller), diese scheinen aber trotz Error richtig zu laufen. Beide Error kommen im Takt von einer Minute:

                    Error unifi controller skript (@liv-in-sky vielleicht weißt du was dazu?):

                    javascript.0	2020-08-10 12:17:54.705	error	(11751) at processTicksAndRejections (internal/process/task_queues.js:97:5)
                    javascript.0	2020-08-10 12:17:54.698	error	(11751) at runMicrotasks (<anonymous>)
                    javascript.0	2020-08-10 12:17:54.698	error	(11751) at script.js.funktioniert.Unifi_controller:394:34
                    javascript.0	2020-08-10 12:17:54.690	error	(11751) script.js.funktioniert.Unifi_controller: TypeError: Cannot read property 'enabled' of undefined
                    javascript.0	2020-08-10 12:17:34.579	error	(11751) at processTicksAndRejections (internal/process/task_queues.js:97:5)
                    javascript.0	2020-08-10 12:17:34.578	error	(11751) at runMicrotasks (<anonymous>)
                    javascript.0	2020-08-10 12:17:34.578	error	(11751) at script.js.funktioniert.Unifi_controller:394:34
                    javascript.0	2020-08-10 12:17:34.577	error	(11751) script.js.funktioniert.Unifi_controller: TypeError: Cannot read property 'enabled' of undefined
                    javascript.0	2020-08-10 12:17:14.611	error	(11751) at processTicksAndRejections (internal/process/task_queues.js:97:5)
                    javascript.0	2020-08-10 12:17:14.611	error	(11751) at runMicrotasks (<anonymous>)
                    javascript.0	2020-08-10 12:17:14.611	error	(11751) at script.js.funktioniert.Unifi_controller:394:34
                    javascript.0	2020-08-10 12:17:14.610	error	(11751) script.js.funktioniert.Unifi_controller: TypeError: Cannot read property 'enabled' of undefined
                    

                    Error volumio Skript:

                    javascript.0	2020-08-10 12:21:00.074	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
                    javascript.0	2020-08-10 12:21:00.055	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
                    javascript.0	2020-08-10 12:21:00.045	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
                    javascript.0	2020-08-10 12:20:40.051	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
                    javascript.0	2020-08-10 12:20:40.045	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
                    javascript.0	2020-08-10 12:20:40.040	error	(11751) script.js.funktioniert.Volumio: setForeignState: undefined is not a valid state value
                    

                    export volumio skript:

                    volumio blockly.txt

                    J.A.R.V.I.S. 1 Reply Last reply Reply Quote 0
                    • J.A.R.V.I.S.
                      J.A.R.V.I.S. Developer @saeft_2003 last edited by

                      @saeft_2003 Du scheinst in deinem ersten Skript nicht zu prüfen, ob das Objekt, von dem du die Eigenschaft enable haben möchtest, überhaupt existiert.

                      Im zweiten Skript versuchst du einen State zu setzen, prüfst aber vorher nicht, ob der State, den du zu setzen versucht, existiert. Und wenn du versucht einen undefined State zu setzen, läufst du in einen Fehler.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        saeft_2003 Most Active @J.A.R.V.I.S. last edited by

                        @J-A-R-V-I-S

                        Danke. Wegen dem unifi skript muss ich mal @liv-in-sky fragen weil das ist von ihm und nicht von mir von javascript direkt habe ich leider nicht wirklich Ahnung 😞

                        beim volumio skript musste ich folgendes deaktivieren, jetzt läuft es ohne Error. Das Problem ist wahrscheinlich das in der json die mit request geholt wird der wert leer ist. Wie könnte ich hier abfragen ob der Wert leer ist oder nicht bevor ich diesen schreiben will?

                        Unbenannt.jpg

                        J.A.R.V.I.S. liv-in-sky Basti97 3 Replies Last reply Reply Quote 0
                        • J.A.R.V.I.S.
                          J.A.R.V.I.S. Developer @saeft_2003 last edited by

                          @saeft_2003 ja, du musst prüfen ob der Wert existiert, bevor du ihn schreibst.

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

                            @saeft_2003

                            hatte bei mir auch die script unter dem neuen js-controller laufen

                            dieser enabled fehler scheint daran zu liegen, dass du beim holen des WLANs einen fehler hast - kopiere mal die zeile 394 und poste sie mir mal - .enabled ist im json, das zurückkommt , wenn der WLAN status abgefragt wird - ist da evtl im setting ein fehler ?

                            eigentlich supporte ich das script nicht mehr - es gibt doch jetzt den adapter dafür - ich selbst nutze es auch nicht mehr

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              saeft_2003 Most Active @liv-in-sky last edited by

                              @liv-in-sky

                              Ah stimmt von dem neuen Adapter hab ich schon gehört. Hab ihn installiert und läuft. Ich denke ich werde heute Abend alles umstellen auf den Adapter, dann ist das Skript Geschichte.

                              Trotzdem vielen Dank!

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

                                @saeft_2003

                                ist besser so - ich glaube es gibt in dem thread auch beispiele für die anwesenheitsabfrage - ich glaube, ich habe das von @dslraser genommen

                                1 Reply Last reply Reply Quote 0
                                • S
                                  saeft_2003 Most Active @J.A.R.V.I.S. last edited by

                                  @J-A-R-V-I-S sagte in js-controller 3.1 jetzt im STABLE!:

                                  @saeft_2003 ja, du musst prüfen ob der Wert existiert, bevor du ihn schreibst.

                                  Und wie prüfe ich den Wert am besten das er existiert? So gehts rigendwie nicht...

                                  Unbenannt.jpg

                                  Das ist die json die Ausgewertet wird:

                                  {"status":"stop","position":0,"title":"Antenne Bayern","albumart":"http://cdn-profiles.tunein.com/s42824/images/logoq.png?t=151377","uri":"http://stream.antenne.de/antenne/stream/mp3?aw_0_1st.playerid=tunein.com","trackType":"webradio","seek":250,"samplerate":"","bitdepth":"","channels":0,"random":false,"repeat":null,"repeatSingle":false,"consume":false,"volume":25,"disableVolumeControl":false,"mute":false,"stream":"webradio","updatedb":false,"volatile":false,"service":"webradio"}
                                  
                                  Homoran 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @saeft_2003 last edited by

                                    @saeft_2003 bitdepth != bitdepht

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      saeft_2003 Most Active @Homoran last edited by

                                      @Homoran

                                      != kenne ich von der VIS, aber bei dem blockly gibt es kein !=

                                      oder habe ich dich falsch verstanden?

                                      Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @saeft_2003 last edited by

                                        @saeft_2003 Er wollte auf den Schreibfehler im Blockly aufmerksam machen.

                                        1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @saeft_2003 last edited by

                                          @saeft_2003 sagte in js-controller 3.1 jetzt im STABLE!:

                                          habe ich dich falsch verstanden?

                                          Ja 😉

                                          Du hast einen Tippfehler
                                          Das Wort heisst Bitdepth und nicht bitdepht

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            saeft_2003 Most Active @Homoran last edited by

                                            @Homoran

                                            OK dann war ich auf dem Schlauch gestanden, das Problem ist das tue ich immer noch. Wie kommt ihr darauf das es groß geschrieben werden muss? In der json ist es auch klein geschrieben.

                                            Thomas Braun Dr. Bakterius Homoran 3 Replies 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

                                            663
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller
                                            38
                                            100
                                            25071
                                            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