Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter Govee v0.0.x

    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

    Test Adapter Govee v0.0.x

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

      Trotzdem mal eine generelle Frage:

      Die API gibt nur Stripes zurück oder wurden die gefiltert? Hintergrund ist, dass ich von Govee ein WIFI Thermometer habe was im Gewächshaus hängt. Über den Alexa Adapter bekomme ich zumindest die Temp, diese aktualisiert sich aber nicht wirklich.

      VG Alex

      nbuenger 1 Reply Last reply Reply Quote 0
      • nbuenger
        nbuenger Developer @Alex975 last edited by

        Moin @alex975,

        die API seitens Govee ist sehr eingewchränkt.
        Hier hast du mal die API zum ansehen. Darin ist eine Liste aller unterstützten Geräte. Allerdings habe ich bei einigen Geräten festgestellt das die API nicht korrekt funktioniert. Der Sensoren zählen leider auch dazu.

        Und für alle anderen. Das Update ist in Gange aber es benötigt alles noch etwas mehr Zeit. Sobald ich ein Datum für den Release habe bekommt ihr eine Info.

        VG Nick

        1 Reply Last reply Reply Quote 1
        • Martin Steiner
          Martin Steiner last edited by

          Hallo zusammen,

          ich habe Probleme bei der Installation des Adpaters. Kann mir Jemand bitte hilfreiche Hinweise geben?

          meine Hardware/Software:
          Pi4 mit 4 GB
          ioBroker Version 5.1.25
          Nodejs 14.7.5 (empfohlen wird 12.22.7 aber keine Ahnung wie ich wieder runtersetzen soll, hab mehrfach was erfolglos probiert... gibt es gute Anleitung?)
          NPM 6.14.14

          der Adapter wird von Github bei mir nicht geladen, in den Instanzen taucht er nicht auf. Allerdings ist in den Objekten ein Ordner "Govee" angelegt und ein Unterordner Admin.

          Hier der Installationscode, vielleicht lässt sich daraus bereits ablesen wo es klemmt

          $ iobroker url https://github.com/nbuenger/ioBroker.govee --host raspberrypi4-ioB --debug
          
          install nbuenger/ioBroker.govee#0d983c49135b87ac2f88f9d832a6d632c4889606
          
          NPM version: 6.14.14npm install nbuenger/ioBroker.govee#0d983c49135b87ac2f88f9d832a6d632c4889606 --prefix "/opt/iobroker" (System call)
          
          > authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam> node-gyp rebuild
          
          make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten
          
          CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o
          
          In file included from ../authenticate_pam.cc:23:../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^
          
          ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’:../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^In file included from ../authenticate_pam.cc:23:../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^In file included from ../authenticate_pam.cc:23:../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~
          
          ../authenticate_pam.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Authenticate(Nan::NAN_METHOD_ARGS_TYPE)’:../authenticate_pam.cc:147:83: error: no matching function for call to ‘v8::Array::Get(v8::Local<v8::String>)’ Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked()); ^In file included from /home/iobroker/.cache/node-gyp/14.17.5/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^~~/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^~~/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1); ^In file included from /home/iobroker/.cache/node-gyp/14.17.5/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3037:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3037:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:152:69: error: no matching function for call to ‘v8::Array::Get(v8::Local<v8::String>)’ res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked()); ^In file included from /home/iobroker/.cache/node-gyp/14.17.5/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^~~/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^~~/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1); ^In file included from /home/iobroker/.cache/node-gyp/14.17.5/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3037:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3037:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ username->WriteUtf8(m->username, sizeof(m->username) - 1); ^In file included from /home/iobroker/.cache/node-gyp/14.17.5/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3037:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3037:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ password->WriteUtf8(m->password, sizeof(m->password) - 1); ^In file included from /home/iobroker/.cache/node-gyp/14.17.5/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3037:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/14.17.5/include/node/v8.h:3037:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
          
          ../authenticate_pam.cc: At global scope:../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void void init(Handle<Object> exports) { ^~~~~~../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope../authenticate_pam.cc:170:11: note: suggested alternative: ‘rand_r’ void init(Handle<Object> exports) { ^~~~~~ rand_r../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token void init(Handle<Object> exports) { ^../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope void init(Handle<Object> exports) { ^~~~~~~In file included from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope NODE_MODULE(authenticate_pam, init); ^~~~/home/iobroker/.cache/node-gyp/14.17.5/include/node/node.h:758:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~
          
          ../authenticate_pam.cc:175:31: note: suggested alternative: ‘int’ NODE_MODULE(authenticate_pam, init); ^~~~/home/iobroker/.cache/node-gyp/14.17.5/include/node/node.h:758:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~
          
          make: *** [authenticate_pam.target.mk:109: Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
          
          make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird verlassen
          
          gyp ERR! build error
          
          gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)gyp ERR! stack at ChildProcess.emit (events.js:400:28)
          
          gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)gyp ERR! System Linux 5.10.60-v7l+gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pamgyp ERR! node -v v14.17.5gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok
          
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (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":"arm"})
          
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.7 (node_modules/osx-temperature-sensor):
          
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
          
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 (node_modules/authenticate-pam):
          
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install: `node-gyp rebuild`
          
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
          
          + iobroker.govee@0.0.5updated 1 package in 44.717s
          
          68 packages are looking for funding run `npm fund` for details
          
          upload [5] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/words.js words.js application/javascript
          
          upload [4] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/style.css style.css text/css
          
          upload [3] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/index_m.html index_m.html text/html
          
          upload [2] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/govee.png govee.png image/png
          
          upload [1] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/govee-old.png govee-old.png image/png
          
          upload [0] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/admin.d.ts admin.d.ts video/mp2t
          
          Process exited with code 0
          

          Lieben Dank für Eure Hinweise und Unterstützung!


          Pi4 mit 4 GB
          ioBroker Version 5.1.25
          Nodejs 14.7.5 (empfohlen wird 12.22.7 aber keine Ahnung wie ich wieder runtersetzen soll)
          NPM 6.14.14

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

            @martin-steiner sagte in Test Adapter Govee v0.0.x:

            Nodejs 14.7.5 (empfohlen wird 12.22.7 aber keine Ahnung wie ich wieder runtersetzen soll, hab mehrfach was erfolglos probiert... gibt es gute Anleitung?)

            Schau in meiner Signatur. Da erkläre ich wie man in den Versionen lustig rauf und runterspringen kann.

            Zu pam:
            Ist libpam0g-dev installiert?

            apt policy libpam0g-dev
            
            Martin Steiner 1 Reply Last reply Reply Quote 0
            • Martin Steiner
              Martin Steiner @Thomas Braun last edited by

              @thomas-braun sagte in Test Adapter Govee v0.0.x:

              apt policy libpam0g-dev

              Vielen Dank für die schnelle Antwort Thomas.

              pi@raspberrypi4-ioB:/opt/iobroker $ apt policy libpam0g-dev
              libpam0g-dev:
                Installiert:           1.3.1-5+rpt2
                Installationskandidat: 1.3.1-5+rpt2
                Versionstabelle:
               *** 1.3.1-5+rpt2 500
                      500 http://archive.raspberrypi.org/debian buster/main armhf Packages
                      100 /var/lib/dpkg/status
                   1.3.1-5 500
                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
              
              

              da scheint was da zu sein ja...

              ich schau mir das mal an mit dem Downgraden... hab den Link gerade aufgerufen
              Danke für Deine Hilfe

              Ich hatte bisher eine Webseitenanleitung befolgt

              https://www.shelly-support.eu/forum/index.php?thread/5457-upgrade-update-iobroker-auf-raspberry-pi/

              wo das Thema auch beschrieben ist allerdings wenn ich auf die version 12.22.7 in der Befehlszeile abstelle dann kommt eine Fehlermeldung

              pi@raspberrypi4-ioB:/opt/iobroker $ apt policy nodejs
              nodejs:
                Installiert:           14.17.6-deb-1nodesource1
                Installationskandidat: 14.17.6-deb-1nodesource1
                Versionstabelle:
               *** 14.17.6-deb-1nodesource1 100
                      100 /var/lib/dpkg/status
                   12.22.7-deb-1nodesource1 500
                      500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                   10.24.1-1nodesource1 500
                      500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
                   10.24.0~dfsg-1~deb10u1 500
                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
              pi@raspberrypi4-ioB:/opt/iobroker $ sudo apt install nodejs=12.22.7-1nodesource1
              
              
              pi@raspberrypi4-ioB:/opt/iobroker $ pi@raspberrypi4-ioB:/opt/iobroker $ sudo apt install nodejs=12.22.7-1nodesource1
              -bash: pi@raspberrypi4-ioB:/opt/iobroker: Datei oder Verzeichnis nicht gefunden
              
              

              kannst Du damit etwas anfangen?

              So und jetzt lese ich deine Anleitung! 🙂

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

                @martin-steiner sagte in Test Adapter Govee v0.0.x:

                Die richtige Versionierung verwenden.
                Mit

                sudo apt install nodejs=12.22.7-deb-1nodesource1
                

                wir ein Schuh draus.

                Übrigens ist die verlinkte Anleitung leider mal wieder Murks. Gleich an mehreren Stellen. Nicht verwenden.

                Martin Steiner 1 Reply Last reply Reply Quote 0
                • Martin Steiner
                  Martin Steiner @Thomas Braun last edited by

                  @thomas-braun sagte in Test Adapter Govee v0.0.x:

                  sudo apt install nodejs=12.22.7-deb-1nodesource1

                  Super Thomas und vielen Dank!
                  das hat nun geklappt... allerdings hatte ich das vorhin auch mal probiert mit dem eingeschobenem -deb-

                  da war ich allerdings noch im Unterverzeichnis opt/ioBroker

                  und ich glaube der Kollege der Anleitung die ich gepostet hatte hat vor und hinter das "nodesource keine Einsen gesetzt sonder kleine L...

                  so sieht die Abrgae jetzt aus:

                  pi@raspberrypi4-ioB:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                  /usr/bin/nodejs
                  /usr/local/bin/node
                  /usr/local/bin/npm
                  v12.22.7
                  v14.17.5
                  6.14.14
                  OK:1 http://archive.raspberrypi.org/debian buster InRelease
                  OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
                  OK:3 https://deb.nodesource.com/node_10.x buster InRelease
                  OK:4 https://repos.influxdata.com/debian stretch InRelease
                  OK:5 https://packages.grafana.com/oss/deb stable InRelease
                  OK:6 https://deb.nodesource.com/node_12.x buster InRelease
                  Paketlisten werden gelesen... Fertig
                  Abhängigkeitsbaum wird aufgebaut.
                  Statusinformationen werden eingelesen.... Fertig
                  Alle Pakete sind aktuell.
                  OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                  OK:2 http://archive.raspberrypi.org/debian buster InRelease
                  OK:3 https://packages.grafana.com/oss/deb stable InRelease
                  OK:4 https://repos.influxdata.com/debian stretch InRelease
                  OK:5 https://deb.nodesource.com/node_10.x buster InRelease
                  OK:6 https://deb.nodesource.com/node_12.x buster InRelease
                  Paketlisten werden gelesen... Fertig
                  Abhängigkeitsbaum wird aufgebaut.
                  Statusinformationen werden eingelesen.... Fertig
                  Alle Pakete sind aktuell.
                  nodejs:
                    Installiert:           12.22.7-deb-1nodesource1
                    Installationskandidat: 12.22.7-deb-1nodesource1
                    Versionstabelle:
                   *** 12.22.7-deb-1nodesource1 500
                          500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                          100 /var/lib/dpkg/status
                       10.24.1-1nodesource1 500
                          500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
                       10.24.0~dfsg-1~deb10u1 500
                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                  
                  

                  meinst du jetzt sollte ich den Govee Adapter installieren können?

                  Soll ich vorher das Objekt was schon gezogen wurde, wieder löschen?

                  mach ich mal lieber und starte neu...

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

                    @martin-steiner sagte in Test Adapter Govee v0.0.x:

                    da war ich allerdings noch im Unterverzeichnis opt/ioBroker

                    Für Operationen mit apt ist das Verzeichnis vollkommen egal.
                    Allerdings ist deine Installation noch krumm, da liegt noch Zeug von node14 im falschen Pfad. Lies meine Anleitung nochmal, insbesondere den zweiten Teil.

                    Für influx stimmt das Repo auch nicht, das muss auf buster lauten, nicht auf stretch.

                    ich glaube der Kollege der Anleitung die ich gepostet hatte

                    Und ich glaube, der hat da auch noch ganz viel anderen Murks drin... Wie gesagt, vergiss den Krampf.

                    Martin Steiner 1 Reply Last reply Reply Quote 0
                    • Martin Steiner
                      Martin Steiner @Thomas Braun last edited by

                      @thomas-braun

                      ok schon vergessen den Murks 😉 jetzt habe ich ja die neue Anleitung (gleich gespeichert)

                      Teil 2 werde ich sofort hiernach durchlesen und hoffe das bringt es dann

                      mit Influx hab ich zwar noch nichts gemacht ... aber das möchte ich natürlich auch ordentlich haben...
                      gibt es dazu auch eine Art Anleitung um das von Stretch auf Buster umzubiegen?

                      Super Support von Dir, freue mich!

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

                        @martin-steiner

                        Zu influx:
                        Denn das einigermaßen sauber installiert wurde reicht es in der Datei
                        /etc/apt/sources.list.d/influxdb.list
                        stretch durch buster zu ersetzen. Dürfte dann ungefähr so aussehen:

                        deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] https://repos.influxdata.com/debian buster stable
                        
                        Martin Steiner 1 Reply Last reply Reply Quote 0
                        • Martin Steiner
                          Martin Steiner @Thomas Braun last edited by

                          @thomas-braun

                          ok... die Influxdb.list Datei anpassen... das werd ich dann wohl mit dem Nano Editor machen gell?

                          seh ich das richtig... mein Node und mein npm liegen im falschen Ordner local und ich muss jetzt die Sachen manuell da weglöschen und danach im richtigen Ordner usr/bin neu ziehen?

                          bin noch nicht ganz durch mit Teil 2 Deiner Anleitung aber danach sieht es mir aus... erstmal weiterlesen...

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

                            @martin-steiner sagte in Test Adapter Govee v0.0.x:

                            ok... die Influxdb.list Datei anpassen... das werd ich dann wohl mit dem Nano Editor machen gell?

                            Ja.

                            sudo nano /etc/apt/sources.list.d/influxdb.list
                            

                            seh ich das richtig... mein Node und mein npm liegen im falschen Ordner local und ich muss jetzt die Sachen manuell da weglöschen und danach im richtigen Ordner usr/bin neu ziehen?
                            bin noch nicht ganz durch mit Teil 2 Deiner Anleitung aber danach sieht es mir aus... erstmal weiterlesen...

                            Nur löschen sollte reichen. Dann einmal die Kiste rebooten, damit der $PATH neueingelesen wird. Dann wird das auch richtig gefunden werden. Die richtigen Dateien sind schon da, werden aber nicht aufgerufen, weil das System zuerst auf die falschen bins trifft und dann natürlich nicht weiter sucht.

                            Martin Steiner 1 Reply Last reply Reply Quote 0
                            • Martin Steiner
                              Martin Steiner @Thomas Braun last edited by

                              @thomas-braun

                              ok, klingt gut.

                              ich kann hier am Windows Rechner auch auch die Dateistruktur zugreifen und nutze "WinSCP" kennst du bestimmt...

                              bei Thema "Node" liegt eine Datei im Ordner aber alles andere scheint eine Verlinkung zu sein...

                              Screenshot 2021-11-05 195801.jpg

                              ich frag zur Sicherheit lieber nochmal... alles löschen was dort aufgelistet ist?
                              Hab großen Dank ...

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

                                @martin-steiner sagte in Test Adapter Govee v0.0.x:

                                nutze "WinSCP" kennst du bestimmt...

                                Nein, kenn ich nicht. Brauch ich nicht. Würde ich auch nicht mit auf dem Linux drauf rumrutschen. Ich bin da ausschließlich (via ssh) per Kommandozeile unterwegs.

                                Martin Steiner 1 Reply Last reply Reply Quote 0
                                • Martin Steiner
                                  Martin Steiner @Thomas Braun last edited by

                                  @thomas-braun

                                  tja ... wer hat der kann... 😉

                                  putty und dieses WinSCP waren bislang immer ganz hilfreich - egal

                                  dann lösche ich jetzt mal... gern auch per Kommandozeile!

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

                                    @martin-steiner

                                    Windows Powershell. Das ist Win genug dafür.

                                    Martin Steiner 1 Reply Last reply Reply Quote 0
                                    • Martin Steiner
                                      Martin Steiner @Thomas Braun last edited by Martin Steiner

                                      @thomas-braun

                                      pi@raspberrypi4-ioB:~ $ which nodejs node npm && nodejs -v && node -v && npm -v                                                                                                                      && apt policy nodejs
                                      /usr/bin/nodejs
                                      /usr/bin/node
                                      /usr/bin/npm
                                      v12.22.7
                                      v12.22.7
                                      6.14.15
                                      nodejs:
                                        Installiert:           12.22.7-deb-1nodesource1
                                        Installationskandidat: 12.22.7-deb-1nodesource1
                                        Versionstabelle:
                                       *** 12.22.7-deb-1nodesource1 500
                                              500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                              100 /var/lib/dpkg/status
                                           10.24.1-1nodesource1 500
                                              500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
                                           10.24.0~dfsg-1~deb10u1 500
                                              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                      pi@raspberrypi4-ioB:~ $ pi@raspberrypi4-ioB:~ $ which nodejs node npm && nodejs -v && node -v && npm -v                                                                                                                      && apt policy nodejs
                                        Versionstabelle:
                                       *** 12.22.7-deb-1nodesource1 500
                                              500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                              100 /var/lib/dpkg/status
                                           10.24.1-1nodesource1 500
                                              500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
                                           10.24.0~dfsg-1~deb10u1 500
                                              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages-bash: pi@raspberrypi4-ioB:~: Kommando nicht gefunden.
                                      pi@raspberrypi4-ioB:~ $ /usr/bin/nodejs
                                      Welcome to Node.js v12.22.7.
                                      Type ".help" for more information.
                                      > /usr/bin/node
                                      /usr/bin/node
                                      ^
                                      
                                      Uncaught SyntaxError: Invalid regular expression flags
                                      > /usr/bin/npm
                                      /usr/bin/npm
                                      ^
                                      
                                      

                                      So jetzt müsste es passen...

                                      dann versuche ich jetzt noch einmal den Govee Adapter von Github zu installieren...

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

                                        @martin-steiner
                                        Ja, passt. Die Zeile zu node10 könntest du noch löschen. Ist ja abgekündigt.

                                        Martin Steiner 1 Reply Last reply Reply Quote 0
                                        • Martin Steiner
                                          Martin Steiner @Thomas Braun last edited by Martin Steiner

                                          @thomas-braun

                                          Danke Dir Thomas...

                                          leider wird der Adapter weiterhin nicht richtig installiert

                                          es kommen während des Installs einige Errormeldungen...

                                          Idee wo es klemmen könnte?

                                          Es wird wieder nur Ein Eintrag bei den Objekten erzeugt, eine Instanz ist nicht sichtbar... und die benötige ich ja 😕

                                          hier das Protokoll

                                          $ iobroker url https://github.com/nbuenger/ioBroker.govee --host raspberrypi4-ioB --debug
                                          
                                          install nbuenger/ioBroker.govee#0d983c49135b87ac2f88f9d832a6d632c4889606
                                          
                                          NPM version: 6.14.15
                                          
                                          npm install nbuenger/ioBroker.govee#0d983c49135b87ac2f88f9d832a6d632c4889606 --prefix "/opt/iobroker" (System call)
                                          
                                          > authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam> node-gyp rebuild
                                          
                                          make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten
                                          
                                          CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o
                                          
                                          In file included from ../authenticate_pam.cc:23:../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^
                                          
                                          ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’:../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^In file included from ../authenticate_pam.cc:23:../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations] Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args); ^In file included from ../authenticate_pam.cc:23:../../nan/nan.h:1024:46: note: declared here NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback( ^~~~~~~~~~~~
                                          
                                          ../authenticate_pam.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Authenticate(Nan::NAN_METHOD_ARGS_TYPE)’:../authenticate_pam.cc:147:83: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked()); ^In file included from /home/iobroker/.cache/node-gyp/12.22.7/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:27, from /home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:152:69: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked()); ^In file included from /home/iobroker/.cache/node-gyp/12.22.7/include/node/v8-internal.h:14, from /home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:27, from /home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key)); ^~~/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ username->WriteUtf8(m->username, sizeof(m->username) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], unsigned int)’ password->WriteUtf8(m->password, sizeof(m->password) - 1); ^In file included from /home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:67, from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, ^~~~~~~~~/home/iobroker/.cache/node-gyp/12.22.7/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’../authenticate_pam.cc: At global scope:../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void void init(Handle<Object> exports) { ^~~~~~../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope
                                          
                                          ../authenticate_pam.cc:170:11: note: suggested alternative: ‘rand_r’ void init(Handle<Object> exports) { ^~~~~~ rand_r../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token void init(Handle<Object> exports) { ^../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope void init(Handle<Object> exports) { ^~~~~~~
                                          
                                          In file included from ../../nan/nan.h:54, from ../authenticate_pam.cc:23:../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope NODE_MODULE(authenticate_pam, init); ^~~~/home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:736:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~
                                          
                                          ../authenticate_pam.cc:175:31: note: suggested alternative: ‘int’ NODE_MODULE(authenticate_pam, init); ^~~~/home/iobroker/.cache/node-gyp/12.22.7/include/node/node.h:736:36: note: in definition of macro ‘NODE_MODULE_X’ (node::addon_register_func) (regfunc), \ ^~~~~~~../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(authenticate_pam, init); ^~~~~~~~~~~
                                          
                                          make: *** [authenticate_pam.target.mk:109: Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
                                          
                                          make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird verlassen
                                          
                                          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:314:20)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)gyp ERR! System Linux 5.10.63-v7l+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/authenticate-pamgyp ERR! node -v v12.22.7gyp ERR! node-gyp -v v5.1.0gyp ERR! not ok
                                          
                                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (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":"arm"})
                                          
                                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.7 (node_modules/osx-temperature-sensor):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                                          
                                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 (node_modules/authenticate-pam):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install: `node-gyp rebuild`npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                                          
                                          + iobroker.govee@0.0.5updated 1 package in 50.678s
                                          
                                          69 packages are looking for funding run `npm fund` for details
                                          
                                          upload [5] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/words.js words.js application/javascript
                                          
                                          upload [4] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/style.css style.css text/css
                                          
                                          upload [3] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/index_m.html index_m.html text/html
                                          
                                          upload [2] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/govee.png govee.png image/png
                                          
                                          upload [1] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/govee-old.png govee-old.png image/png
                                          
                                          upload [0] govee.admin /opt/iobroker/node_modules/iobroker.govee/admin/admin.d.ts admin.d.ts video/mp2t
                                          
                                          Process exited with code 0
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Martin Steiner last edited by Thomas Braun

                                            @martin-steiner
                                            Bei Installation über git muss eine Instanz manuell hinzugefügt werden.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            865
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            48
                                            312
                                            51220
                                            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