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.3 jetzt im STABLE!

    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

    js-controller 3.3 jetzt im STABLE!

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

      Danke für die schnelle Rückmeldung, das beruhigt.

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User @apollon77 last edited by A Former User

        @apollon77
        Vielen Dank! Habe wiedermal Bedenken gehabt durch dieses "große Update" und diese auch hier geäußerst. Nachdem nun für mich alles notwendige im Stable war, habe ich das Update/Upgrade durchgeführt und alles läuft ohne kleinstes Murren und Zucken auf js-controller 3.3 im admin 5!

        Vielen Dank, tolle Arbeit!

        1 Reply Last reply Reply Quote 1
        • apollon77
          apollon77 @Linedancer last edited by

          @linedancer Tip wäre mal die hm-rpc Instanz mit nem "Synce devices" neu zu starten

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

            Habe jetzt wieder einen Anlauf gewagt und muss sagen, das sieht gegenüber des 1. Updates sehr gut aus. Es meckert nur noch 2 Adapter rum 👍 👍 👍

            Jetzt meckert bei mir nur noch der Adapter MiHome und der wichtigere SMA EM rum. Kann man das jetzt irgendwie so reparieren, das die Statistik nicht im Arsch ist?

            mihome-vacuum.0
            	2021-08-11 08:10:30.470	info	State value to set for "mihome-vacuum.0.info.water_box" has to be type "string" but received type "boolean" 
            
            sma-em.0
            	2021-08-11 08:10:30.921	info	State value to set for "sma-em.0.3004914003.pregardcounter" has to be type "state" but received type "number" 
            
            apollon77 1 Reply Last reply Reply Quote 0
            • apollon77
              apollon77 @Slowman last edited by

              @slowman sagte in js-controller 3.3 jetzt im STABLE!:

              Kann man das jetzt irgendwie so reparieren, das die Statistik nicht im Arsch ist?

              Es ist immer noch NUR eine Logzeile. Werte werden dennoch geschrieben ... alles gut 🙂
              GitHub issues öffnen (bzw bei mihome-vacuum mal objekt löschen und adapter restarten)

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

                @apollon77

                Das sagst du so in deinen jugendlichen Leichtsinn 😀

                Was passiert denn, wenn ich den kompletten Objektbaum vom SMA EM lösche und wieder erstellen lasse. Da ich ja die Daten an Grafana weiterreiche, dürfte doch meine Statistik nicht zerstört werden oder?

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

                  @slowman Naja wenn ein Objekt meckert lösche das eine Objekt ... und ja ggf musst du danach die Einstellungen für Historisierung neu machen

                  Slowman 1 Reply Last reply Reply Quote 1
                  • Slowman
                    Slowman @apollon77 last edited by Slowman

                    @apollon77

                    Habe jetzt noch ein paar Fehler drin, einige haben sich durch Löschen des Objektbaums erledigt. Aber nicht alle 😞

                    Beim Hue Adapter bekomme ich absolut die Infomeldung nicht raus.

                    hue-extended.0
                    	2021-08-15 10:07:06.718	info	State value to set for "hue-extended.0.groups.000-all_lights.presence.state.presence" has to be type "string" but received type "boolean"
                    hue-extended.0
                    	2021-08-15 10:07:06.714	info	State value to set for "hue-extended.0.sensors.053-küche_bwm.state.presence" has to be type "string" but received type "boolean" 
                    hue-extended.0
                    	2021-08-15 10:10:09.303	info	State value to set for "hue-extended.0.groups.000-all_lights.lightlevel.state.lightlevel" has to be type "string" but received type "number"
                    hue-extended.0
                    	2021-08-15 10:10:09.271	info	State value to set for "hue-extended.0.sensors.221-hue_outdoor_light_sensor_2.state.lightlevel" has to be type "string" but received type "number"
                    hue-extended.0
                    	2021-08-15 10:10:09.271	info	State value to set for "hue-extended.0.sensors.204-hue_ambient_light_sensor_6.state.lightlevel" has to be type "string" but received type "number" 
                    

                    Staune das der Hue Extended Adapter Probleme macht, da ich sonst von keinen gelesen habe, das da nichts passt.
                    Kann man irgendwo selber in den Objektdaten dies verändern?

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      peterfido @Slowman last edited by peterfido

                      @apollon77
                      Das Update ist durchgeführt. Vorher musste ich noch einen

                      iobroker fix
                      

                      durchführen.

                      Die Ausgabe des Updates:

                      
                      peter@proxbroker:/opt/iobroker$ iobroker upgrade self
                      Update js-controller from @3.2.16 to @3.3.15
                      NPM version: 6.14.14
                      npm install iobroker.js-controller@3.3.15 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                      /bin/sh: 1: cmake: not found
                      make: *** [config_deps.target.mk:13: /opt/iobroker/node_modules/cpu-features/deps/cpu_features/build/Makefile] Fehler 127
                      gyp ERR! build error
                      gyp ERR! stack Error: `make` failed with exit code: 2
                      gyp 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:314:20)
                      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
                      gyp ERR! System Linux 4.19.0-17-amd64
                      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/cpu-features
                      gyp ERR! node -v v12.22.5
                      gyp ERR! node-gyp -v v5.1.0
                      gyp ERR! not ok
                      In file included from ../src/binding.cc:6:
                      /home/iobroker/.cache/node-gyp/12.22.5/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                             (node::addon_register_func) (regfunc),                          \
                                                                 ^
                      /home/iobroker/.cache/node-gyp/12.22.5/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
                         NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                         ^~~~~~~~~~~~~
                      ../src/binding.cc:2013:1: note: in expansion of macro ‘NODE_MODULE’
                       NODE_MODULE(sshcrypto, init)
                       ^~~~~~~~~~~
                      Starting node restart.js
                      peter@proxbroker:/opt/iobroker$
                      
                      

                      Kann ich die Fehler ignorieren?

                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @peterfido last edited by

                        @peterfido
                        cmake würde ich mal nachinstallieren.

                        apt policy cmake
                        

                        bringt?

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          peterfido @Thomas Braun last edited by peterfido

                          @thomas-braun
                          Danke.
                          OK, habe ich installiert.

                          cmake:
                            Installiert:           (keine)
                            Installationskandidat: 3.13.4-1
                            Versionstabelle:
                               3.13.4-1 500
                                  500 http://deb.debian.org/debian buster/main amd64 Packages
                                  500 http://ftp.de.debian.org/debian buster/main amd64 Packages
                          peter@proxbroker:~$ sudo apt install cmake
                          Paketlisten werden gelesen... Fertig
                          Abhängigkeitsbaum wird aufgebaut.
                          Statusinformationen werden eingelesen.... Fertig
                          Die folgenden zusätzlichen Pakete werden installiert:
                            cmake-data libjsoncpp1 librhash0
                          Vorgeschlagene Pakete:
                            cmake-doc ninja-build
                          Die folgenden NEUEN Pakete werden installiert:
                            cmake cmake-data libjsoncpp1 librhash0
                          0 aktualisiert, 4 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                          Es müssen 5.155 kB an Archiven heruntergeladen werden.
                          Nach dieser Operation werden 25,8 MB Plattenplatz zusätzlich benutzt.
                          Möchten Sie fortfahren? [J/n]
                          Holen:1 http://deb.debian.org/debian buster/main amd64 cmake-data all 3.13.4-1 [1.476 kB]
                          Holen:2 http://deb.debian.org/debian buster/main amd64 libjsoncpp1 amd64 1.7.4-3 [75,6 kB]
                          Holen:3 http://deb.debian.org/debian buster/main amd64 librhash0 amd64 1.3.8-1 [122 kB]
                          Holen:4 http://deb.debian.org/debian buster/main amd64 cmake amd64 3.13.4-1 [3.480 kB]
                          Es wurden 5.155 kB in 0 s geholt (19,2 MB/s).
                          Vormals nicht ausgewähltes Paket cmake-data wird gewählt.
                          (Lese Datenbank ... 123005 Dateien und Verzeichnisse sind derzeit installiert.)
                          Vorbereitung zum Entpacken von .../cmake-data_3.13.4-1_all.deb ...
                          Entpacken von cmake-data (3.13.4-1) ...
                          Vormals nicht ausgewähltes Paket libjsoncpp1:amd64 wird gewählt.
                          Vorbereitung zum Entpacken von .../libjsoncpp1_1.7.4-3_amd64.deb ...
                          Entpacken von libjsoncpp1:amd64 (1.7.4-3) ...
                          Vormals nicht ausgewähltes Paket librhash0:amd64 wird gewählt.
                          Vorbereitung zum Entpacken von .../librhash0_1.3.8-1_amd64.deb ...
                          Entpacken von librhash0:amd64 (1.3.8-1) ...
                          Vormals nicht ausgewähltes Paket cmake wird gewählt.
                          Vorbereitung zum Entpacken von .../cmake_3.13.4-1_amd64.deb ...
                          Entpacken von cmake (3.13.4-1) ...
                          librhash0:amd64 (1.3.8-1) wird eingerichtet ...
                          cmake-data (3.13.4-1) wird eingerichtet ...
                          libjsoncpp1:amd64 (1.7.4-3) wird eingerichtet ...
                          cmake (3.13.4-1) wird eingerichtet ...
                          Trigger für man-db (2.8.5-2) werden verarbeitet ...
                          Trigger für libc-bin (2.28-10) werden verarbeitet ...
                          peter@proxbroker:~$
                          
                          

                          Sollte ich nochmal iobroker upgraden? << Also erst zurück zum Snapshot und dann nochmal mit cmake

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @peterfido last edited by Thomas Braun

                            @peterfido
                            Dann versuch jetzt nochmal dein Glück.

                            P 1 Reply Last reply Reply Quote 0
                            • P
                              peterfido @Thomas Braun last edited by

                              @thomas-braun

                              Habe ich. Ein paar Warnungen kommen noch.

                              peter@proxbroker:/opt/iobroker$ iobroker upgrade self
                              Update js-controller from @3.2.16 to @3.3.15
                              NPM version: 6.14.14
                              npm install iobroker.js-controller@3.3.15 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                              In file included from ../src/binding.cc:1:
                              /home/iobroker/.cache/node-gyp/12.22.5/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                     (node::addon_register_func) (regfunc),                          \
                                                                         ^
                              /home/iobroker/.cache/node-gyp/12.22.5/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
                                 NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                 ^~~~~~~~~~~~~
                              ../src/binding.cc:153:1: note: in expansion of macro ‘NODE_MODULE’
                               NODE_MODULE(cpufeatures, init)
                               ^~~~~~~~~~~
                              In file included from ../src/binding.cc:6:
                              /home/iobroker/.cache/node-gyp/12.22.5/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                     (node::addon_register_func) (regfunc),                          \
                                                                         ^
                              /home/iobroker/.cache/node-gyp/12.22.5/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
                                 NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                 ^~~~~~~~~~~~~
                              ../src/binding.cc:2013:1: note: in expansion of macro ‘NODE_MODULE’
                               NODE_MODULE(sshcrypto, init)
                               ^~~~~~~~~~~
                              Starting node restart.js
                              peter@proxbroker:/opt/iobroker$
                              
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @peterfido last edited by

                                @peterfido

                                Lösch den npm cache Mal

                                cd /opt/iobroker
                                npm cache clear --force
                                
                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  peterfido @Thomas Braun last edited by

                                  @thomas-braun sagte in js-controller 3.3 jetzt im STABLE!:

                                  npm cache clear --force

                                  Leider keine Änderung.

                                  cmake (3.13.4-1) wird eingerichtet ...
                                  Trigger für man-db (2.8.5-2) werden verarbeitet ...
                                  Trigger für libc-bin (2.28-10) werden verarbeitet ...
                                  peter@proxbroker:/opt/iobroker$ npm cache clear --force
                                  npm WARN using --force I sure hope you know what you are doing.
                                  peter@proxbroker:/opt/iobroker$ iobroker upgrade self
                                  Update js-controller from @3.2.16 to @3.3.15
                                  NPM version: 6.14.14
                                  npm install iobroker.js-controller@3.3.15 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                                  In file included from ../src/binding.cc:1:
                                  /home/iobroker/.cache/node-gyp/12.22.5/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                         (node::addon_register_func) (regfunc),                          \
                                                                             ^
                                  /home/iobroker/.cache/node-gyp/12.22.5/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
                                     NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                     ^~~~~~~~~~~~~
                                  ../src/binding.cc:153:1: note: in expansion of macro ‘NODE_MODULE’
                                   NODE_MODULE(cpufeatures, init)
                                   ^~~~~~~~~~~
                                  In file included from ../src/binding.cc:6:
                                  /home/iobroker/.cache/node-gyp/12.22.5/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                                         (node::addon_register_func) (regfunc),                          \
                                                                             ^
                                  /home/iobroker/.cache/node-gyp/12.22.5/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
                                     NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                     ^~~~~~~~~~~~~
                                  ../src/binding.cc:2013:1: note: in expansion of macro ‘NODE_MODULE’
                                   NODE_MODULE(sshcrypto, init)
                                   ^~~~~~~~~~~
                                  Starting node restart.js
                                  peter@proxbroker:/opt/iobroker$
                                  
                                  

                                  Ich lasse es jetzt so.

                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @peterfido last edited by

                                    @peterfido

                                    Versuchs so:

                                    cd /opt/iobroker
                                    sudo -H -u iobroker npm install iobroker.js-controller
                                    
                                    P 1 Reply Last reply Reply Quote 0
                                    • P
                                      peterfido @Thomas Braun last edited by

                                      @thomas-braun

                                      Das Ergebnis:

                                      peter@proxbroker:/opt/iobroker$ iobroker stop
                                      peter@proxbroker:/opt/iobroker$ sudo -H -u iobroker npm install iobroker.js-controller
                                      
                                      > iobroker.js-controller@3.3.15 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                                      > node lib/preinstallCheck.js
                                      
                                      NPM version: 6.14.14
                                      
                                      > iobroker.js-controller@3.3.15 install /opt/iobroker/node_modules/iobroker.js-controller
                                      > node iobroker.js setup first
                                      
                                      object _design/custom updated
                                      object _design/system updated
                                      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
                                      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                                      npm WARN typedoc@0.20.28 requires a peer of typescript@3.9.x || 4.0.x || 4.1.x but none is installed. You must install peer dependencies yourself.
                                      npm WARN typedoc@0.20.28 requires a peer of typescript@3.9.x || 4.0.x || 4.1.x but none is installed. You must install peer dependencies yourself.
                                      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/fsevents):
                                      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                                      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman/node_modules/fsevents):
                                      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                                      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/fsevents):
                                      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                                      
                                      + iobroker.js-controller@3.3.15
                                      removed 88 packages and updated 1 package in 34.258s
                                      peter@proxbroker:/opt/iobroker$ iobroker start
                                      
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @peterfido last edited by

                                        @peterfido Dann sollte es ja jetzt passen.

                                        iobroker version
                                        
                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          peterfido @Thomas Braun last edited by

                                          @thomas-braun

                                          Danke.
                                          Die Version war nach dem Update um 12:14 auch schon die 3.3.15. Es traten halt die Warnungen während des Updates auf.

                                          Mein erster Versuch ohne

                                          iobroker fix
                                          

                                          hatte die ioBroker "zerschossen". Er konnte ein paar Links nicht löschen. Danach lief kein Update mehr durch. Also im Snapshot zurück und erst den fix laufen lassen und nochmal aktualisieren.

                                          Danach war die Version zwar aktuell, jedoch war ich mir wegen der Fehlermeldung mit dem cmake unsicher und habe daher hier angefragt.

                                          Die (letzte) "manuelle" Installation hatte den positiven Nebeneffekt, dass ein paar Gigabyte freigeschaufelt wurden. 😊

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @peterfido last edited by

                                            @peterfido

                                            Jetzt kann ich dem auch nicht entnehmen ob das wieder senkrecht läuft...

                                            iobroker version
                                            iobroker update
                                            iobroker upgrade
                                            
                                            P 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

                                            715
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            61
                                            344
                                            64969
                                            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