Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. (gelöst)BLE-Adapter

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    (gelöst)BLE-Adapter

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Dennis.80 @Thomas Braun last edited by

      @thomas-braun

      IOBROKER LOG:
      ble.0 2022-03-15 12:55:58.987 error - /opt/iobroker/node_modules/iobroker.ble/build/scanProcess.js
      ble.0 2022-03-15 12:55:58.987 error - /opt/iobroker/node_modules/@abandonware/noble/index.js
      ble.0 2022-03-15 12:55:58.987 error - /opt/iobroker/node_modules/@abandonware/noble/lib/resolve-bindings.js
      ble.0 2022-03-15 12:55:58.987 error - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
      ble.0 2022-03-15 12:55:58.987 error - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js
      ble.0 2022-03-15 12:55:58.987 error Require stack:
      ble.0 2022-03-15 12:55:58.987 error (1784) Cannot find module '@abandonware/bluetooth-hci-socket'

      sudo systemctl status bluetooth
      ● bluetooth.service - Bluetooth service
      Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
      Active: active (running) since Tue 2022-03-15 12:19:09 CET; 41min ago
      Docs: man:bluetoothd(8)
      Main PID: 494 (bluetoothd)
      Status: "Running"
      Tasks: 1 (limit: 3720)
      CGroup: /system.slice/bluetooth.service
      └─494 /usr/lib/bluetooth/bluetoothd --compat --noplugin=sap -E

      Mär 15 12:19:09 Jarvis4iob systemd[1]: Starting Bluetooth service...
      Mär 15 12:19:09 Jarvis4iob bluetoothd[494]: Bluetooth daemon 5.50
      Mär 15 12:19:09 Jarvis4iob systemd[1]: Started Bluetooth service.
      Mär 15 12:19:09 Jarvis4iob bluetoothd[494]: Starting SDP server
      Mär 15 12:19:09 Jarvis4iob bluetoothd[494]: Excluding (cli) sap
      Mär 15 12:19:09 Jarvis4iob bluetoothd[494]: Bluetooth management interface 1.18 initialize
      Mär 15 12:19:09 Jarvis4iob bluetoothd[494]: Failed to set privacy: Rejected (0x0b)

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Dennis.80 last edited by

        @dennis-80

        Bitte CodeTags verwenden.

        Deinstallier den ble-Adapter mal und dann nochmal frisch installieren.

        nodeJS ist sauber?

        sudo ln -s /usr/bin/node /usr/bin/nodejs
        which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
        
        D 1 Reply Last reply Reply Quote 0
        • D
          Dennis.80 @Thomas Braun last edited by

          @thomas-braun
          sieht in Ordnung aus, den ble Adapter habe ich nochmals frisch installiert.

          nach einem Neustart, bleiben die Fehler im IO Log aber identisch

          /usr/bin/nodejs
          /usr/bin/node
          /usr/bin/npm
          v14.19.0
          v14.19.0
          8.5.3
          pi
          /home/pi
          OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
          OK:2 http://archive.raspberrypi.org/debian buster InRelease
          OK:3 https://deb.nodesource.com/node_14.x buster InRelease
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.
          Statusinformationen werden eingelesen.... Fertig
          Alle Pakete sind aktuell.
          nodejs:
            Installiert:           14.19.0-deb-1nodesource1
            Installationskandidat: 14.19.0-deb-1nodesource1
            Versionstabelle:
           *** 14.19.0-deb-1nodesource1 500
                  500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                  100 /var/lib/dpkg/status
               10.24.0~dfsg-1~deb10u1 500
                  500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
          
          
          J D 2 Replies Last reply Reply Quote 0
          • J
            Jan1 @Dennis.80 last edited by

            @dennis-80
            Bingo
            NPM manuell verfummelt 😉

            1 Reply Last reply Reply Quote 0
            • D
              Dennis.80 @Dennis.80 last edited by

              @dennis-80 said in (gelöst)BLE-Adapter:

              @thomas-braun
              sieht in Ordnung aus, den ble Adapter habe ich nochmals frisch installiert.

              nach einem Neustart, bleiben die Fehler im IO Log aber identisch

              /usr/bin/nodejs
              /usr/bin/node
              /usr/bin/npm
              v14.19.0
              v14.19.0
              8.5.3
              pi
              /home/pi
              OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
              OK:2 http://archive.raspberrypi.org/debian buster InRelease
              OK:3 https://deb.nodesource.com/node_14.x buster InRelease
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.
              Statusinformationen werden eingelesen.... Fertig
              Alle Pakete sind aktuell.
              nodejs:
                Installiert:           14.19.0-deb-1nodesource1
                Installationskandidat: 14.19.0-deb-1nodesource1
                Versionstabelle:
               *** 14.19.0-deb-1nodesource1 500
                      500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                      100 /var/lib/dpkg/status
                   10.24.0~dfsg-1~deb10u1 500
                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
              
              

              und der vollständigkeit halber

              /opt/iobroker/node_modules/iobroker.ble $ npm i --production
              npm ERR! code ENOTEMPTY
              npm ERR! syscall rename
              npm ERR! path /opt/iobroker/node_modules/iobroker.ble/node_modules/ansi-regex
              npm ERR! dest /opt/iobroker/node_modules/iobroker.ble/node_modules/.ansi-regex-63PXI9Cn
              npm ERR! errno -39
              npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.ble/node_modules/ansi-regex' -> '/opt/iobroker/node_modules/iobroker.ble/node_modules/.ansi-regex-63PXI9Cn'
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/iobroker/.npm/_logs/2022-03-15T13_11_23_912Z-debug-0.log
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Dennis.80 last edited by

                @dennis-80 sagte in (gelöst)BLE-Adapter:

                /opt/iobroker/node_modules/iobroker.ble/node_modules/ansi-regex' -> '/opt/iobroker/node_modules/iobroker.ble/node_modules/.ansi-regex-63PXI9Cn

                sudo -u iobroker mv /opt/iobroker/node_modules/iobroker.ble/node_modules/ansi-regex /opt/iobroker/node_modules/iobroker.ble/node_modules/.ansi-regex-63PXI9Cn
                
                J 1 Reply Last reply Reply Quote 0
                • J
                  Jan1 @Thomas Braun last edited by

                  @thomas-braun
                  Er hat NPM 8 drauf, läuft das überhaupt schon sauber mit IOBroker?

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

                    @jan1

                    Bei mir schon (tm).

                    Ja, könnte man aber auch sauber machen.

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      Jan1 @Thomas Braun last edited by

                      @thomas-braun
                      Kommt ja auch nicht von alleine auf 8 und wenn da schon was manuell gefummelt wurde 😉

                      1 Reply Last reply Reply Quote 0
                      • D
                        Dennis.80 last edited by

                        @jan1 said in (gelöst)BLE-Adapter:

                        @thomas-braun
                        Kommt ja auch nicht von alleine auf 8 und wenn da schon was manuell gefummelt wurde 😉

                        manuell würde ich mich eigentlich nicht an das system wagen. habe aber versucht netzfünde nachzuvollziehen

                        heißt für mich dann wohl im endeffekt system neu aufsetzen?!

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Dennis.80 last edited by

                          @dennis-80 sagte in (gelöst)BLE-Adapter:

                          manuell würde ich mich eigentlich nicht an das system wagen. habe aber versucht netzfünde nachzuvollziehen

                          Hast du aber schon. Du hast manuell, am Paketmanager vorbei, npm global installiert.

                          Schau in meiner Signatur, wie man nodeJS nochmal reinstalliert. Dann kommt da auch wieder die vorgesehene npm@6 mit.

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            Dennis.80 @Thomas Braun last edited by

                            @thomas-braun said in (gelöst)BLE-Adapter:

                            @dennis-80 sagte in (gelöst)BLE-Adapter:

                            manuell würde ich mich eigentlich nicht an das system wagen. habe aber versucht netzfünde nachzuvollziehen

                            Hast du aber schon. Du hast manuell, am Paketmanager vorbei, npm global installiert.

                            Schau in meiner Signatur, wie man nodeJS nochmal reinstalliert. Dann kommt da auch wieder die vorgesehene npm@6 mit.

                            Meinen besten Dank nochmals für die Unterstützungen. Ich habe den Adapter wieder auf Grün. Während der npm Installation wies das System übrigens auf die Installationsmöglichkeit der 8er Version hin. Ich vermute, dass hier das "Übel seinen Anfang nahm".

                            Nun kann ich mich wieder meinem eigentlichen Vorhaben widmen und versuchen die "Mi Motion 2 Sensoren (Bluetooth)" in den Broker zu bekommen. Vielen Dank...

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Dennis.80 last edited by

                              @dennis-80 sagte in (gelöst)BLE-Adapter:

                              Während der npm Installation wies das System übrigens auf die Installationsmöglichkeit der 8er Version hin. Ich vermute, dass hier das "Übel seinen Anfang nahm".

                              Möglich. Deswegen da besser die Finger von lassen.

                              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

                              903
                              Online

                              32.0k
                              Users

                              80.6k
                              Topics

                              1.3m
                              Posts

                              7
                              84
                              4865
                              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