Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. [GELÖST] ble Adapter macht Probleme auf Raspi 5

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    11
    1
    492

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.7k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.6k

[GELÖST] ble Adapter macht Probleme auf Raspi 5

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
27 Beiträge 4 Kommentatoren 3.2k Aufrufe 4 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • GlasfaserG Glasfaser

    @wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:

    selbes spiel

    sorry habe den Thread nicht ganz dazu gelesen .

    nur das machen ..

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

    nicht die Befehle darunter !

    wauzziW Offline
    wauzziW Offline
    wauzzi
    schrieb am zuletzt editiert von
    #11

    @glasfaser Das hatte ich vorhin auch schon versucht. Hab es eben nochmals versucht.
    Scheint aber alles sauber zu sein:

    admin@iobroker:/opt/iobroker $ sudo npm install --production
    npm WARN config production Use `--omit=dev` instead.
    
    up to date in 3s
    
    145 packages are looking for funding
      run `npm fund` for details
    admin@iobroker:/opt/iobroker $
    
    
    admin@iobroker:/opt/iobroker $ npm fund
    iobroker.inst@3.0.0
    ├── https://github.com/sponsors/epoberezkin
    │   └── ajv@6.12.6
    ├── https://github.com/sponsors/jaredhanson
    │   └── passport@0.6.0, oauth2orize@1.11.1
    ├── https://github.com/sponsors/isaacs
    │   └── glob@7.2.3, minimatch@7.4.6, rimraf@3.0.2
    ├── https://github.com/sponsors/feross
    │   └── safe-buffer@5.2.1, base64-js@1.5.1, buffer@6.0.3, simple-concat@1.0.1
    ├── https://github.com/sponsors/RubenVerborgh
    │   └── follow-redirects@1.15.5
    ├── https://github.com/sponsors/ljharb
    │   └── qs@6.10.4, minimist@1.2.8, define-properties@1.2.1, es-abstract@1.22.3, array-buffer-byte-length@1.0.1, arraybuffer.prototype.slice@1.0.3, available-typed-arrays@1.0.6, es-to-primitive@1.2.1, is-date-object@1.0.5, is-symbol@1.0.4, function.prototype.name@1.1.6, functions-have-names@1.2.3, get-symbol-description@1.0.2, globalthis@1.0.3, is-array-buffer@3.0.4, is-callable@1.2.7, is-negative-zero@2.0.2, is-regex@1.1.4, is-shared-array-buffer@1.0.2, is-string@1.0.7, is-typed-array@1.1.13, is-weakref@1.0.2, object.assign@4.1.5, regexp.prototype.flags@1.5.1, safe-array-concat@1.1.0, safe-regex-test@1.0.3, string.prototype.trim@1.2.8, string.prototype.trimend@1.0.7, string.prototype.trimstart@1.0.7, typed-array-byte-length@1.0.0, typed-array-byte-offset@1.0.0, typed-array-length@1.0.4, unbox-primitive@1.0.2, has-bigints@1.0.2, which-boxed-primitive@1.0.2, is-bigint@1.0.4, is-boolean-object@1.1.2, is-number-object@1.0.7, which-typed-array@1.1.14, has-tostringtag@1.0.2, traverse@0.6.8
    ├── https://github.com/sponsors/broofa
    │   └── uuid@9.0.1
    ├── https://github.com/sponsors/sindresorhus
    │   └── is-plain-obj@3.0.0, is-stream@2.0.1, responselike@2.0.1, clone-response@1.0.3, get-stream@5.2.0, normalize-url@6.1.0, onetime@5.1.2, make-dir@3.1.0, mimic-response@2.1.0, component-emitter@1.3.1, debounce@2.0.0
    ├── https://github.com/sponsors/jonschlinkert
    │   └── picomatch@2.3.1
    ├─┬ https://github.com/sindresorhus/got?sponsor=1
    │ │ └── got@11.8.6
    │ └── https://github.com/sindresorhus/is?sponsor=1
    │     └── @sindresorhus/is@4.6.0
    ├── https://github.com/sponsors/NaturalIntelligence
    │   └── fast-xml-parser@4.3.4
    ├─┬ https://opencollective.com/node-fetch
    │ │ └── node-fetch@3.3.2
    │ └── https://github.com/sponsors/jimmywarting
    │     └── fetch-blob@3.2.0, node-domexception@1.0.0
    ├─┬ https://github.com/chalk/wrap-ansi?sponsor=1
    │ │ └── wrap-ansi@7.0.0
    │ └── https://github.com/chalk/ansi-styles?sponsor=1
    │     └── ansi-styles@4.3.0
    ├── https://opencollective.com/serialport/donate
    │   └── serialport@12.0.0, @serialport/bindings-cpp@12.0.1, @serialport/parser-readline@11.0.0, @serialport/parser-delimiter@11.0.0, @serialport/parser-byte-length@12.0.0, @serialport/parser-cctalk@12.0.0, @serialport/parser-delimiter@12.0.0, @serialport/parser-inter-byte-timeout@12.0.0, @serialport/parser-readline@12.0.0, @serialport/parser-ready@12.0.0, @serialport/parser-regex@12.0.0, @serialport/parser-slip-encoder@12.0.0, @serialport/parser-spacepacket@12.0.0, @serialport/stream@12.0.0
    ├─┬ https://github.com/chalk/chalk-template?sponsor=1
    │ │ └── chalk-template@0.4.0
    │ └── https://github.com/chalk/chalk?sponsor=1
    │     └── chalk@4.1.2
    ├── https://opencollective.com/date-fns
    │   └── date-fns@2.30.0
    ├── https://opencollective.com/ioredis
    │   └── ioredis@4.28.5
    ├── https://github.com/sindresorhus/execa?sponsor=1
    │   └── execa@5.1.1
    ├── https://paulmillr.com/funding/
    │   └── chokidar@3.6.0
    ├── https://github.com/sponsors/sibiraj-s
    │   └── ci-info@3.9.0
    ├── https://opencollective.com/js-sdsl
    │   └── js-sdsl@4.3.0
    ├─┬ https://github.com/cheeriojs/cheerio?sponsor=1
    │ │ └── cheerio@1.0.0-rc.10
    │ ├─┬ https://github.com/sponsors/fb55
    │ │ │ └── cheerio-select@1.6.0, css-select@4.3.0, css-what@6.1.0, domelementtype@2.3.0
    │ │ └── https://github.com/fb55/domutils?sponsor=1
    │ │     └── domutils@2.8.0, domutils@3.1.0
    │ ├─┬ https://github.com/cheeriojs/dom-serializer?sponsor=1
    │ │ │ └── dom-serializer@1.4.1, dom-serializer@2.0.0
    │ │ └── https://github.com/fb55/entities?sponsor=1
    │ │     └── entities@2.2.0, entities@4.5.0
    │ ├── https://github.com/fb55/domhandler?sponsor=1
    │ │   └── domhandler@4.3.1, domhandler@5.0.3
    │ └── https://github.com/fb55/htmlparser2?sponsor=1
    │     └── htmlparser2@6.1.0, htmlparser2@8.0.2
    ├── https://locize.com
    │   └── i18next@21.10.0
    ├── https://ko-fi.com/killymxi
    │   └── @selderee/plugin-htmlparser2@0.11.0, selderee@0.11.0, parseley@0.12.1, leac@0.6.0, peberminta@0.9.0
    ├── https://github.com/sponsors/3846masa
    │   └── http-cookie-agent@5.0.4
    └── https://github.com/inikulin/parse5?sponsor=1
      └── parse5@7.1.2
    
    
    GlasfaserG Thomas BraunT 2 Antworten Letzte Antwort
    0
    • wauzziW wauzzi

      @glasfaser Das hatte ich vorhin auch schon versucht. Hab es eben nochmals versucht.
      Scheint aber alles sauber zu sein:

      admin@iobroker:/opt/iobroker $ sudo npm install --production
      npm WARN config production Use `--omit=dev` instead.
      
      up to date in 3s
      
      145 packages are looking for funding
        run `npm fund` for details
      admin@iobroker:/opt/iobroker $
      
      
      admin@iobroker:/opt/iobroker $ npm fund
      iobroker.inst@3.0.0
      ├── https://github.com/sponsors/epoberezkin
      │   └── ajv@6.12.6
      ├── https://github.com/sponsors/jaredhanson
      │   └── passport@0.6.0, oauth2orize@1.11.1
      ├── https://github.com/sponsors/isaacs
      │   └── glob@7.2.3, minimatch@7.4.6, rimraf@3.0.2
      ├── https://github.com/sponsors/feross
      │   └── safe-buffer@5.2.1, base64-js@1.5.1, buffer@6.0.3, simple-concat@1.0.1
      ├── https://github.com/sponsors/RubenVerborgh
      │   └── follow-redirects@1.15.5
      ├── https://github.com/sponsors/ljharb
      │   └── qs@6.10.4, minimist@1.2.8, define-properties@1.2.1, es-abstract@1.22.3, array-buffer-byte-length@1.0.1, arraybuffer.prototype.slice@1.0.3, available-typed-arrays@1.0.6, es-to-primitive@1.2.1, is-date-object@1.0.5, is-symbol@1.0.4, function.prototype.name@1.1.6, functions-have-names@1.2.3, get-symbol-description@1.0.2, globalthis@1.0.3, is-array-buffer@3.0.4, is-callable@1.2.7, is-negative-zero@2.0.2, is-regex@1.1.4, is-shared-array-buffer@1.0.2, is-string@1.0.7, is-typed-array@1.1.13, is-weakref@1.0.2, object.assign@4.1.5, regexp.prototype.flags@1.5.1, safe-array-concat@1.1.0, safe-regex-test@1.0.3, string.prototype.trim@1.2.8, string.prototype.trimend@1.0.7, string.prototype.trimstart@1.0.7, typed-array-byte-length@1.0.0, typed-array-byte-offset@1.0.0, typed-array-length@1.0.4, unbox-primitive@1.0.2, has-bigints@1.0.2, which-boxed-primitive@1.0.2, is-bigint@1.0.4, is-boolean-object@1.1.2, is-number-object@1.0.7, which-typed-array@1.1.14, has-tostringtag@1.0.2, traverse@0.6.8
      ├── https://github.com/sponsors/broofa
      │   └── uuid@9.0.1
      ├── https://github.com/sponsors/sindresorhus
      │   └── is-plain-obj@3.0.0, is-stream@2.0.1, responselike@2.0.1, clone-response@1.0.3, get-stream@5.2.0, normalize-url@6.1.0, onetime@5.1.2, make-dir@3.1.0, mimic-response@2.1.0, component-emitter@1.3.1, debounce@2.0.0
      ├── https://github.com/sponsors/jonschlinkert
      │   └── picomatch@2.3.1
      ├─┬ https://github.com/sindresorhus/got?sponsor=1
      │ │ └── got@11.8.6
      │ └── https://github.com/sindresorhus/is?sponsor=1
      │     └── @sindresorhus/is@4.6.0
      ├── https://github.com/sponsors/NaturalIntelligence
      │   └── fast-xml-parser@4.3.4
      ├─┬ https://opencollective.com/node-fetch
      │ │ └── node-fetch@3.3.2
      │ └── https://github.com/sponsors/jimmywarting
      │     └── fetch-blob@3.2.0, node-domexception@1.0.0
      ├─┬ https://github.com/chalk/wrap-ansi?sponsor=1
      │ │ └── wrap-ansi@7.0.0
      │ └── https://github.com/chalk/ansi-styles?sponsor=1
      │     └── ansi-styles@4.3.0
      ├── https://opencollective.com/serialport/donate
      │   └── serialport@12.0.0, @serialport/bindings-cpp@12.0.1, @serialport/parser-readline@11.0.0, @serialport/parser-delimiter@11.0.0, @serialport/parser-byte-length@12.0.0, @serialport/parser-cctalk@12.0.0, @serialport/parser-delimiter@12.0.0, @serialport/parser-inter-byte-timeout@12.0.0, @serialport/parser-readline@12.0.0, @serialport/parser-ready@12.0.0, @serialport/parser-regex@12.0.0, @serialport/parser-slip-encoder@12.0.0, @serialport/parser-spacepacket@12.0.0, @serialport/stream@12.0.0
      ├─┬ https://github.com/chalk/chalk-template?sponsor=1
      │ │ └── chalk-template@0.4.0
      │ └── https://github.com/chalk/chalk?sponsor=1
      │     └── chalk@4.1.2
      ├── https://opencollective.com/date-fns
      │   └── date-fns@2.30.0
      ├── https://opencollective.com/ioredis
      │   └── ioredis@4.28.5
      ├── https://github.com/sindresorhus/execa?sponsor=1
      │   └── execa@5.1.1
      ├── https://paulmillr.com/funding/
      │   └── chokidar@3.6.0
      ├── https://github.com/sponsors/sibiraj-s
      │   └── ci-info@3.9.0
      ├── https://opencollective.com/js-sdsl
      │   └── js-sdsl@4.3.0
      ├─┬ https://github.com/cheeriojs/cheerio?sponsor=1
      │ │ └── cheerio@1.0.0-rc.10
      │ ├─┬ https://github.com/sponsors/fb55
      │ │ │ └── cheerio-select@1.6.0, css-select@4.3.0, css-what@6.1.0, domelementtype@2.3.0
      │ │ └── https://github.com/fb55/domutils?sponsor=1
      │ │     └── domutils@2.8.0, domutils@3.1.0
      │ ├─┬ https://github.com/cheeriojs/dom-serializer?sponsor=1
      │ │ │ └── dom-serializer@1.4.1, dom-serializer@2.0.0
      │ │ └── https://github.com/fb55/entities?sponsor=1
      │ │     └── entities@2.2.0, entities@4.5.0
      │ ├── https://github.com/fb55/domhandler?sponsor=1
      │ │   └── domhandler@4.3.1, domhandler@5.0.3
      │ └── https://github.com/fb55/htmlparser2?sponsor=1
      │     └── htmlparser2@6.1.0, htmlparser2@8.0.2
      ├── https://locize.com
      │   └── i18next@21.10.0
      ├── https://ko-fi.com/killymxi
      │   └── @selderee/plugin-htmlparser2@0.11.0, selderee@0.11.0, parseley@0.12.1, leac@0.6.0, peberminta@0.9.0
      ├── https://github.com/sponsors/3846masa
      │   └── http-cookie-agent@5.0.4
      └── https://github.com/inikulin/parse5?sponsor=1
        └── parse5@7.1.2
      
      
      GlasfaserG Online
      GlasfaserG Online
      Glasfaser
      schrieb am zuletzt editiert von Glasfaser
      #12

      @wauzzi

      ins Verzeichniss

      cd /opt/iobroker/node_modules/bluetooth-hci-socket
      

      dann dort

      npm install --production
      

      Bitte alles in Ruhe lesen , es steht auch dort !!

      Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

      wauzziW 1 Antwort Letzte Antwort
      0
      • GlasfaserG Glasfaser

        @wauzzi

        ins Verzeichniss

        cd /opt/iobroker/node_modules/bluetooth-hci-socket
        

        dann dort

        npm install --production
        

        Bitte alles in Ruhe lesen , es steht auch dort !!

        wauzziW Offline
        wauzziW Offline
        wauzzi
        schrieb am zuletzt editiert von
        #13

        @glasfaser
        Danke für Deine Geduld mit mir :relieved:

        Das Verzeichnis "opt/iobroker/node_modules/bluetooth-hci-socket" existiert bei mir nicht.
        Ich hab eben nochmals mit dem Winscp geschaut. nicht vorhanden

        b51dc883-bae7-4ab6-a3a0-118b0a46d1cf-image.png

        Thomas BraunT 1 Antwort Letzte Antwort
        0
        • wauzziW wauzzi

          @glasfaser Das hatte ich vorhin auch schon versucht. Hab es eben nochmals versucht.
          Scheint aber alles sauber zu sein:

          admin@iobroker:/opt/iobroker $ sudo npm install --production
          npm WARN config production Use `--omit=dev` instead.
          
          up to date in 3s
          
          145 packages are looking for funding
            run `npm fund` for details
          admin@iobroker:/opt/iobroker $
          
          
          admin@iobroker:/opt/iobroker $ npm fund
          iobroker.inst@3.0.0
          ├── https://github.com/sponsors/epoberezkin
          │   └── ajv@6.12.6
          ├── https://github.com/sponsors/jaredhanson
          │   └── passport@0.6.0, oauth2orize@1.11.1
          ├── https://github.com/sponsors/isaacs
          │   └── glob@7.2.3, minimatch@7.4.6, rimraf@3.0.2
          ├── https://github.com/sponsors/feross
          │   └── safe-buffer@5.2.1, base64-js@1.5.1, buffer@6.0.3, simple-concat@1.0.1
          ├── https://github.com/sponsors/RubenVerborgh
          │   └── follow-redirects@1.15.5
          ├── https://github.com/sponsors/ljharb
          │   └── qs@6.10.4, minimist@1.2.8, define-properties@1.2.1, es-abstract@1.22.3, array-buffer-byte-length@1.0.1, arraybuffer.prototype.slice@1.0.3, available-typed-arrays@1.0.6, es-to-primitive@1.2.1, is-date-object@1.0.5, is-symbol@1.0.4, function.prototype.name@1.1.6, functions-have-names@1.2.3, get-symbol-description@1.0.2, globalthis@1.0.3, is-array-buffer@3.0.4, is-callable@1.2.7, is-negative-zero@2.0.2, is-regex@1.1.4, is-shared-array-buffer@1.0.2, is-string@1.0.7, is-typed-array@1.1.13, is-weakref@1.0.2, object.assign@4.1.5, regexp.prototype.flags@1.5.1, safe-array-concat@1.1.0, safe-regex-test@1.0.3, string.prototype.trim@1.2.8, string.prototype.trimend@1.0.7, string.prototype.trimstart@1.0.7, typed-array-byte-length@1.0.0, typed-array-byte-offset@1.0.0, typed-array-length@1.0.4, unbox-primitive@1.0.2, has-bigints@1.0.2, which-boxed-primitive@1.0.2, is-bigint@1.0.4, is-boolean-object@1.1.2, is-number-object@1.0.7, which-typed-array@1.1.14, has-tostringtag@1.0.2, traverse@0.6.8
          ├── https://github.com/sponsors/broofa
          │   └── uuid@9.0.1
          ├── https://github.com/sponsors/sindresorhus
          │   └── is-plain-obj@3.0.0, is-stream@2.0.1, responselike@2.0.1, clone-response@1.0.3, get-stream@5.2.0, normalize-url@6.1.0, onetime@5.1.2, make-dir@3.1.0, mimic-response@2.1.0, component-emitter@1.3.1, debounce@2.0.0
          ├── https://github.com/sponsors/jonschlinkert
          │   └── picomatch@2.3.1
          ├─┬ https://github.com/sindresorhus/got?sponsor=1
          │ │ └── got@11.8.6
          │ └── https://github.com/sindresorhus/is?sponsor=1
          │     └── @sindresorhus/is@4.6.0
          ├── https://github.com/sponsors/NaturalIntelligence
          │   └── fast-xml-parser@4.3.4
          ├─┬ https://opencollective.com/node-fetch
          │ │ └── node-fetch@3.3.2
          │ └── https://github.com/sponsors/jimmywarting
          │     └── fetch-blob@3.2.0, node-domexception@1.0.0
          ├─┬ https://github.com/chalk/wrap-ansi?sponsor=1
          │ │ └── wrap-ansi@7.0.0
          │ └── https://github.com/chalk/ansi-styles?sponsor=1
          │     └── ansi-styles@4.3.0
          ├── https://opencollective.com/serialport/donate
          │   └── serialport@12.0.0, @serialport/bindings-cpp@12.0.1, @serialport/parser-readline@11.0.0, @serialport/parser-delimiter@11.0.0, @serialport/parser-byte-length@12.0.0, @serialport/parser-cctalk@12.0.0, @serialport/parser-delimiter@12.0.0, @serialport/parser-inter-byte-timeout@12.0.0, @serialport/parser-readline@12.0.0, @serialport/parser-ready@12.0.0, @serialport/parser-regex@12.0.0, @serialport/parser-slip-encoder@12.0.0, @serialport/parser-spacepacket@12.0.0, @serialport/stream@12.0.0
          ├─┬ https://github.com/chalk/chalk-template?sponsor=1
          │ │ └── chalk-template@0.4.0
          │ └── https://github.com/chalk/chalk?sponsor=1
          │     └── chalk@4.1.2
          ├── https://opencollective.com/date-fns
          │   └── date-fns@2.30.0
          ├── https://opencollective.com/ioredis
          │   └── ioredis@4.28.5
          ├── https://github.com/sindresorhus/execa?sponsor=1
          │   └── execa@5.1.1
          ├── https://paulmillr.com/funding/
          │   └── chokidar@3.6.0
          ├── https://github.com/sponsors/sibiraj-s
          │   └── ci-info@3.9.0
          ├── https://opencollective.com/js-sdsl
          │   └── js-sdsl@4.3.0
          ├─┬ https://github.com/cheeriojs/cheerio?sponsor=1
          │ │ └── cheerio@1.0.0-rc.10
          │ ├─┬ https://github.com/sponsors/fb55
          │ │ │ └── cheerio-select@1.6.0, css-select@4.3.0, css-what@6.1.0, domelementtype@2.3.0
          │ │ └── https://github.com/fb55/domutils?sponsor=1
          │ │     └── domutils@2.8.0, domutils@3.1.0
          │ ├─┬ https://github.com/cheeriojs/dom-serializer?sponsor=1
          │ │ │ └── dom-serializer@1.4.1, dom-serializer@2.0.0
          │ │ └── https://github.com/fb55/entities?sponsor=1
          │ │     └── entities@2.2.0, entities@4.5.0
          │ ├── https://github.com/fb55/domhandler?sponsor=1
          │ │   └── domhandler@4.3.1, domhandler@5.0.3
          │ └── https://github.com/fb55/htmlparser2?sponsor=1
          │     └── htmlparser2@6.1.0, htmlparser2@8.0.2
          ├── https://locize.com
          │   └── i18next@21.10.0
          ├── https://ko-fi.com/killymxi
          │   └── @selderee/plugin-htmlparser2@0.11.0, selderee@0.11.0, parseley@0.12.1, leac@0.6.0, peberminta@0.9.0
          ├── https://github.com/sponsors/3846masa
          │   └── http-cookie-agent@5.0.4
          └── https://github.com/inikulin/parse5?sponsor=1
            └── parse5@7.1.2
          
          
          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          schrieb am zuletzt editiert von
          #14

          @wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:

          sudo npm

          Arrrgh. Nie npm in Verbindung mit sudo verwenden.

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          1 Antwort Letzte Antwort
          1
          • GlasfaserG Online
            GlasfaserG Online
            Glasfaser
            schrieb am zuletzt editiert von
            #15

            @wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:

            Beim Versuch "npm install bluetooth-hci-socket" durchzuführen

            cd /opt/iobroker
            sudo -H -u iobroker npm install bluetooth-hci-socket
            

            Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

            wauzziW 1 Antwort Letzte Antwort
            0
            • wauzziW wauzzi

              @glasfaser
              Danke für Deine Geduld mit mir :relieved:

              Das Verzeichnis "opt/iobroker/node_modules/bluetooth-hci-socket" existiert bei mir nicht.
              Ich hab eben nochmals mit dem Winscp geschaut. nicht vorhanden

              b51dc883-bae7-4ab6-a3a0-118b0a46d1cf-image.png

              Thomas BraunT Online
              Thomas BraunT Online
              Thomas Braun
              Most Active
              schrieb am zuletzt editiert von
              #16

              @wauzzi

              bluetooth-hci-socket wird auf aktuellen Systemen auch gar nicht mehr verwendet. Auf meinem jedenfalls nicht...

              echad@chet:/opt/iobroker $ npm ls iobroker.ble bluetooth-hci-socket
              iobroker.inst@3.0.0 /opt/iobroker
              └── iobroker.ble@0.14.0
              

              Linux-Werkzeugkasten:
              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
              NodeJS Fixer Skript:
              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

              wauzziW 1 Antwort Letzte Antwort
              0
              • GlasfaserG Glasfaser

                @wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:

                Beim Versuch "npm install bluetooth-hci-socket" durchzuführen

                cd /opt/iobroker
                sudo -H -u iobroker npm install bluetooth-hci-socket
                
                wauzziW Offline
                wauzziW Offline
                wauzzi
                schrieb am zuletzt editiert von
                #17

                @glasfaser said in ble Adapter macht Probleme auf Raspi 5:

                sudo -H -u iobroker npm install bluetooth-hci-socket

                admin@iobroker:~ $ cd /opt/iobroker
                admin@iobroker:/opt/iobroker $ sudo -H -u iobroker npm install bluetooth-hci-socket
                npm ERR! code 1
                npm ERR! path /opt/iobroker/node_modules/bluetooth-hci-socket
                npm ERR! command failed
                npm ERR! command sh -c node-gyp rebuild
                npm ERR! make: Entering directory '/opt/iobroker/node_modules/bluetooth-hci-socket/build'
                npm ERR!   CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
                npm ERR! make: Leaving directory '/opt/iobroker/node_modules/bluetooth-hci-socket/build'
                npm ERR! gyp info it worked if it ends with ok
                npm ERR! gyp info using node-gyp@10.0.1
                npm ERR! gyp info using node@18.19.0 | linux | arm64
                npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
                npm ERR! gyp info spawn /usr/bin/python3
                npm ERR! gyp info spawn args [
                npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
                npm ERR! gyp info spawn args 'binding.gyp',
                npm ERR! gyp info spawn args '-f',
                npm ERR! gyp info spawn args 'make',
                npm ERR! gyp info spawn args '-I',
                npm ERR! gyp info spawn args '/opt/iobroker/node_modules/bluetooth-hci-socket/build/config.gypi',
                npm ERR! gyp info spawn args '-I',
                npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
                npm ERR! gyp info spawn args '-I',
                npm ERR! gyp info spawn args '/home/iobroker/.cache/node-gyp/18.19.0/include/node/common.gypi',
                npm ERR! gyp info spawn args '-Dlibrary=shared_library',
                npm ERR! gyp info spawn args '-Dvisibility=default',
                npm ERR! gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/18.19.0',
                npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
                npm ERR! gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/18.19.0/<(target_arch)/node.lib',
                npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/bluetooth-hci-socket',
                npm ERR! gyp info spawn args '-Dnode_engine=v8',
                npm ERR! gyp info spawn args '--depth=.',
                npm ERR! gyp info spawn args '--no-parallel',
                npm ERR! gyp info spawn args '--generator-output',
                npm ERR! gyp info spawn args 'build',
                npm ERR! gyp info spawn args '-Goutput_dir=.'
                npm ERR! gyp info spawn args ]
                npm ERR! gyp info spawn make
                npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
                npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
                npm ERR! ../src/BluetoothHciSocket.cpp:128:81: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
                npm ERR!   128 |   target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction());
                npm ERR!       |                                                                ~~~~~~~~~~~~~~~~~^~
                npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:15,
                npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8.h:33,
                npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:73,
                npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/node_buffer.h:25,
                npm ERR!                  from ../src/BluetoothHciSocket.cpp:7:
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
                npm ERR!   513 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
                npm ERR!       |                                              ^~~~~~~~~~~
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note:   candidate expects 1 argument, 0 provided
                npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:
                npm ERR! ../src/BluetoothHciSocket.cpp:251:22: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                npm ERR!   251 |     Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                npm ERR!       |     ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8:
                npm ERR! ../../nan/nan.h:1053:46: note: declared here
                npm ERR!  1053 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                npm ERR!       |                                              ^~~~~~~~~~~~
                npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:
                npm ERR! ../src/BluetoothHciSocket.cpp:269:74: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
                npm ERR!   269 |   Local<Function> errorConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked()));
                npm ERR!       |                                                            ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-array-buffer.h:13,
                npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8.h:24:
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
                npm ERR!   290 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                npm ERR!       |                                           ^~~
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note:   candidate expects 2 arguments, 1 provided
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
                npm ERR!   293 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                npm ERR!       |                                           ^~~
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note:   candidate expects 2 arguments, 1 provided
                npm ERR! ../src/BluetoothHciSocket.cpp:275:53: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [1])’
                npm ERR!   275 |   Local<Value> error = errorConstructor->NewInstance(1, constructorArgs);
                npm ERR!       |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’
                npm ERR!    38 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                npm ERR!       |                                            ^~~~~~~~~~~
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note:   candidate expects 3 arguments, 2 provided
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’
                npm ERR!    41 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                npm ERR!       |                                            ^~~~~~~~~~~
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note:   candidate expects 1 argument, 2 provided
                npm ERR! ../src/BluetoothHciSocket.cpp:282:20: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                npm ERR!   282 |   Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                npm ERR!       |   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                npm ERR! ../../nan/nan.h:1053:46: note: declared here
                npm ERR!  1053 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                npm ERR!       |                                              ^~~~~~~~~~~~
                npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’:
                npm ERR! ../src/BluetoothHciSocket.cpp:395:33: error: no matching function for call to ‘v8::Value::IntegerValue()’
                npm ERR!   395 |       devId = arg0->IntegerValue();
                npm ERR!       |               ~~~~~~~~~~~~~~~~~~^~
                npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-primitive.h:11,
                npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:11:
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
                npm ERR!   413 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                npm ERR!       |                                        ^~~~~~~~~~~~
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note:   candidate expects 1 argument, 0 provided
                npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’:
                npm ERR! ../src/BluetoothHciSocket.cpp:417:33: error: no matching function for call to ‘v8::Value::IntegerValue()’
                npm ERR!   417 |       devId = arg0->IntegerValue();
                npm ERR!       |               ~~~~~~~~~~~~~~~~~~^~
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
                npm ERR!   413 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                npm ERR!       |                                        ^~~~~~~~~~~~
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note:   candidate expects 1 argument, 0 provided
                npm ERR! ../src/BluetoothHciSocket.cpp: At global scope:
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:1014:7: 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]
                npm ERR!  1014 |       (node::addon_register_func) (regfunc),                          \
                npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:1048:3: note: in expansion of macro ‘NODE_MODULE_X’
                npm ERR!  1048 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                npm ERR!       |   ^~~~~~~~~~~~~
                npm ERR! ../src/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’
                npm ERR!   499 | NODE_MODULE(binding, BluetoothHciSocket::Init);
                npm ERR!       | ^~~~~~~~~~~
                npm ERR! make: *** [binding.target.mk:111: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
                npm ERR! gyp ERR! build error
                npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
                npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
                npm ERR! gyp ERR! System Linux 6.1.0-rpi8-rpi-2712
                npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/bluetooth-hci-socket
                npm ERR! gyp ERR! node -v v18.19.0
                npm ERR! gyp ERR! node-gyp -v v10.0.1
                npm ERR! gyp ERR! not ok
                
                npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-02-10T22_35_01_714Z-debug-0.log
                admin@iobroker:/opt/iobroker $
                
                
                GlasfaserG Thomas BraunT 2 Antworten Letzte Antwort
                0
                • Thomas BraunT Thomas Braun

                  @wauzzi

                  bluetooth-hci-socket wird auf aktuellen Systemen auch gar nicht mehr verwendet. Auf meinem jedenfalls nicht...

                  echad@chet:/opt/iobroker $ npm ls iobroker.ble bluetooth-hci-socket
                  iobroker.inst@3.0.0 /opt/iobroker
                  └── iobroker.ble@0.14.0
                  
                  wauzziW Offline
                  wauzziW Offline
                  wauzzi
                  schrieb am zuletzt editiert von
                  #18

                  @thomas-braun said in ble Adapter macht Probleme auf Raspi 5:

                  npm ls iobroker.ble bluetooth-hci-socket

                  sieht bei mir ähnlich aus:

                  admin@iobroker:/opt/iobroker $ npm ls iobroker.ble bluetooth-hci-socket
                  iobroker.inst@3.0.0 /opt/iobroker
                  └── iobroker.ble@0.14.0
                  
                  

                  wird dies denn zwingend für den ble Adapter benötigt ?

                  1 Antwort Letzte Antwort
                  0
                  • wauzziW wauzzi

                    @glasfaser said in ble Adapter macht Probleme auf Raspi 5:

                    sudo -H -u iobroker npm install bluetooth-hci-socket

                    admin@iobroker:~ $ cd /opt/iobroker
                    admin@iobroker:/opt/iobroker $ sudo -H -u iobroker npm install bluetooth-hci-socket
                    npm ERR! code 1
                    npm ERR! path /opt/iobroker/node_modules/bluetooth-hci-socket
                    npm ERR! command failed
                    npm ERR! command sh -c node-gyp rebuild
                    npm ERR! make: Entering directory '/opt/iobroker/node_modules/bluetooth-hci-socket/build'
                    npm ERR!   CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
                    npm ERR! make: Leaving directory '/opt/iobroker/node_modules/bluetooth-hci-socket/build'
                    npm ERR! gyp info it worked if it ends with ok
                    npm ERR! gyp info using node-gyp@10.0.1
                    npm ERR! gyp info using node@18.19.0 | linux | arm64
                    npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
                    npm ERR! gyp info spawn /usr/bin/python3
                    npm ERR! gyp info spawn args [
                    npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
                    npm ERR! gyp info spawn args 'binding.gyp',
                    npm ERR! gyp info spawn args '-f',
                    npm ERR! gyp info spawn args 'make',
                    npm ERR! gyp info spawn args '-I',
                    npm ERR! gyp info spawn args '/opt/iobroker/node_modules/bluetooth-hci-socket/build/config.gypi',
                    npm ERR! gyp info spawn args '-I',
                    npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
                    npm ERR! gyp info spawn args '-I',
                    npm ERR! gyp info spawn args '/home/iobroker/.cache/node-gyp/18.19.0/include/node/common.gypi',
                    npm ERR! gyp info spawn args '-Dlibrary=shared_library',
                    npm ERR! gyp info spawn args '-Dvisibility=default',
                    npm ERR! gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/18.19.0',
                    npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
                    npm ERR! gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/18.19.0/<(target_arch)/node.lib',
                    npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/bluetooth-hci-socket',
                    npm ERR! gyp info spawn args '-Dnode_engine=v8',
                    npm ERR! gyp info spawn args '--depth=.',
                    npm ERR! gyp info spawn args '--no-parallel',
                    npm ERR! gyp info spawn args '--generator-output',
                    npm ERR! gyp info spawn args 'build',
                    npm ERR! gyp info spawn args '-Goutput_dir=.'
                    npm ERR! gyp info spawn args ]
                    npm ERR! gyp info spawn make
                    npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
                    npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
                    npm ERR! ../src/BluetoothHciSocket.cpp:128:81: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
                    npm ERR!   128 |   target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction());
                    npm ERR!       |                                                                ~~~~~~~~~~~~~~~~~^~
                    npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:15,
                    npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8.h:33,
                    npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:73,
                    npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/node_buffer.h:25,
                    npm ERR!                  from ../src/BluetoothHciSocket.cpp:7:
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
                    npm ERR!   513 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
                    npm ERR!       |                                              ^~~~~~~~~~~
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note:   candidate expects 1 argument, 0 provided
                    npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:
                    npm ERR! ../src/BluetoothHciSocket.cpp:251:22: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                    npm ERR!   251 |     Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                    npm ERR!       |     ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8:
                    npm ERR! ../../nan/nan.h:1053:46: note: declared here
                    npm ERR!  1053 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                    npm ERR!       |                                              ^~~~~~~~~~~~
                    npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:
                    npm ERR! ../src/BluetoothHciSocket.cpp:269:74: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
                    npm ERR!   269 |   Local<Function> errorConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked()));
                    npm ERR!       |                                                            ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-array-buffer.h:13,
                    npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8.h:24:
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
                    npm ERR!   290 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                    npm ERR!       |                                           ^~~
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note:   candidate expects 2 arguments, 1 provided
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
                    npm ERR!   293 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                    npm ERR!       |                                           ^~~
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note:   candidate expects 2 arguments, 1 provided
                    npm ERR! ../src/BluetoothHciSocket.cpp:275:53: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [1])’
                    npm ERR!   275 |   Local<Value> error = errorConstructor->NewInstance(1, constructorArgs);
                    npm ERR!       |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’
                    npm ERR!    38 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                    npm ERR!       |                                            ^~~~~~~~~~~
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note:   candidate expects 3 arguments, 2 provided
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’
                    npm ERR!    41 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                    npm ERR!       |                                            ^~~~~~~~~~~
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note:   candidate expects 1 argument, 2 provided
                    npm ERR! ../src/BluetoothHciSocket.cpp:282:20: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                    npm ERR!   282 |   Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                    npm ERR!       |   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    npm ERR! ../../nan/nan.h:1053:46: note: declared here
                    npm ERR!  1053 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                    npm ERR!       |                                              ^~~~~~~~~~~~
                    npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’:
                    npm ERR! ../src/BluetoothHciSocket.cpp:395:33: error: no matching function for call to ‘v8::Value::IntegerValue()’
                    npm ERR!   395 |       devId = arg0->IntegerValue();
                    npm ERR!       |               ~~~~~~~~~~~~~~~~~~^~
                    npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-primitive.h:11,
                    npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:11:
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
                    npm ERR!   413 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                    npm ERR!       |                                        ^~~~~~~~~~~~
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note:   candidate expects 1 argument, 0 provided
                    npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’:
                    npm ERR! ../src/BluetoothHciSocket.cpp:417:33: error: no matching function for call to ‘v8::Value::IntegerValue()’
                    npm ERR!   417 |       devId = arg0->IntegerValue();
                    npm ERR!       |               ~~~~~~~~~~~~~~~~~~^~
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
                    npm ERR!   413 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                    npm ERR!       |                                        ^~~~~~~~~~~~
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note:   candidate expects 1 argument, 0 provided
                    npm ERR! ../src/BluetoothHciSocket.cpp: At global scope:
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:1014:7: 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]
                    npm ERR!  1014 |       (node::addon_register_func) (regfunc),                          \
                    npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:1048:3: note: in expansion of macro ‘NODE_MODULE_X’
                    npm ERR!  1048 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                    npm ERR!       |   ^~~~~~~~~~~~~
                    npm ERR! ../src/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’
                    npm ERR!   499 | NODE_MODULE(binding, BluetoothHciSocket::Init);
                    npm ERR!       | ^~~~~~~~~~~
                    npm ERR! make: *** [binding.target.mk:111: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
                    npm ERR! gyp ERR! build error
                    npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
                    npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
                    npm ERR! gyp ERR! System Linux 6.1.0-rpi8-rpi-2712
                    npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                    npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/bluetooth-hci-socket
                    npm ERR! gyp ERR! node -v v18.19.0
                    npm ERR! gyp ERR! node-gyp -v v10.0.1
                    npm ERR! gyp ERR! not ok
                    
                    npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-02-10T22_35_01_714Z-debug-0.log
                    admin@iobroker:/opt/iobroker $
                    
                    
                    GlasfaserG Online
                    GlasfaserG Online
                    Glasfaser
                    schrieb am zuletzt editiert von
                    #19

                    @wauzzi sagte in ble Adapter macht Probleme auf Raspi 5:

                    npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"

                    keine Ahnung was das mit python3 zu tun hat

                    Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

                    1 Antwort Letzte Antwort
                    0
                    • wauzziW wauzzi

                      @glasfaser said in ble Adapter macht Probleme auf Raspi 5:

                      sudo -H -u iobroker npm install bluetooth-hci-socket

                      admin@iobroker:~ $ cd /opt/iobroker
                      admin@iobroker:/opt/iobroker $ sudo -H -u iobroker npm install bluetooth-hci-socket
                      npm ERR! code 1
                      npm ERR! path /opt/iobroker/node_modules/bluetooth-hci-socket
                      npm ERR! command failed
                      npm ERR! command sh -c node-gyp rebuild
                      npm ERR! make: Entering directory '/opt/iobroker/node_modules/bluetooth-hci-socket/build'
                      npm ERR!   CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
                      npm ERR! make: Leaving directory '/opt/iobroker/node_modules/bluetooth-hci-socket/build'
                      npm ERR! gyp info it worked if it ends with ok
                      npm ERR! gyp info using node-gyp@10.0.1
                      npm ERR! gyp info using node@18.19.0 | linux | arm64
                      npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
                      npm ERR! gyp info spawn /usr/bin/python3
                      npm ERR! gyp info spawn args [
                      npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
                      npm ERR! gyp info spawn args 'binding.gyp',
                      npm ERR! gyp info spawn args '-f',
                      npm ERR! gyp info spawn args 'make',
                      npm ERR! gyp info spawn args '-I',
                      npm ERR! gyp info spawn args '/opt/iobroker/node_modules/bluetooth-hci-socket/build/config.gypi',
                      npm ERR! gyp info spawn args '-I',
                      npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
                      npm ERR! gyp info spawn args '-I',
                      npm ERR! gyp info spawn args '/home/iobroker/.cache/node-gyp/18.19.0/include/node/common.gypi',
                      npm ERR! gyp info spawn args '-Dlibrary=shared_library',
                      npm ERR! gyp info spawn args '-Dvisibility=default',
                      npm ERR! gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/18.19.0',
                      npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
                      npm ERR! gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/18.19.0/<(target_arch)/node.lib',
                      npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/bluetooth-hci-socket',
                      npm ERR! gyp info spawn args '-Dnode_engine=v8',
                      npm ERR! gyp info spawn args '--depth=.',
                      npm ERR! gyp info spawn args '--no-parallel',
                      npm ERR! gyp info spawn args '--generator-output',
                      npm ERR! gyp info spawn args 'build',
                      npm ERR! gyp info spawn args '-Goutput_dir=.'
                      npm ERR! gyp info spawn args ]
                      npm ERR! gyp info spawn make
                      npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
                      npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
                      npm ERR! ../src/BluetoothHciSocket.cpp:128:81: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
                      npm ERR!   128 |   target->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction());
                      npm ERR!       |                                                                ~~~~~~~~~~~~~~~~~^~
                      npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:15,
                      npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8.h:33,
                      npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:73,
                      npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/node_buffer.h:25,
                      npm ERR!                  from ../src/BluetoothHciSocket.cpp:7:
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
                      npm ERR!   513 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
                      npm ERR!       |                                              ^~~~~~~~~~~
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-template.h:513:46: note:   candidate expects 1 argument, 0 provided
                      npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:
                      npm ERR! ../src/BluetoothHciSocket.cpp:251:22: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                      npm ERR!   251 |     Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                      npm ERR!       |     ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      npm ERR! In file included from ../src/BluetoothHciSocket.cpp:8:
                      npm ERR! ../../nan/nan.h:1053:46: note: declared here
                      npm ERR!  1053 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                      npm ERR!       |                                              ^~~~~~~~~~~~
                      npm ERR! ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:
                      npm ERR! ../src/BluetoothHciSocket.cpp:269:74: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
                      npm ERR!   269 |   Local<Function> errorConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked()));
                      npm ERR!       |                                                            ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-array-buffer.h:13,
                      npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8.h:24:
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
                      npm ERR!   290 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                      npm ERR!       |                                           ^~~
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:290:43: note:   candidate expects 2 arguments, 1 provided
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
                      npm ERR!   293 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                      npm ERR!       |                                           ^~~
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:293:43: note:   candidate expects 2 arguments, 1 provided
                      npm ERR! ../src/BluetoothHciSocket.cpp:275:53: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local<v8::Value> [1])’
                      npm ERR!   275 |   Local<Value> error = errorConstructor->NewInstance(1, constructorArgs);
                      npm ERR!       |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’
                      npm ERR!    38 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                      npm ERR!       |                                            ^~~~~~~~~~~
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:38:44: note:   candidate expects 3 arguments, 2 provided
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’
                      npm ERR!    41 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance(
                      npm ERR!       |                                            ^~~~~~~~~~~
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-function.h:41:44: note:   candidate expects 1 argument, 2 provided
                      npm ERR! ../src/BluetoothHciSocket.cpp:282:20: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                      npm ERR!   282 |   Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                      npm ERR!       |   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      npm ERR! ../../nan/nan.h:1053:46: note: declared here
                      npm ERR!  1053 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                      npm ERR!       |                                              ^~~~~~~~~~~~
                      npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’:
                      npm ERR! ../src/BluetoothHciSocket.cpp:395:33: error: no matching function for call to ‘v8::Value::IntegerValue()’
                      npm ERR!   395 |       devId = arg0->IntegerValue();
                      npm ERR!       |               ~~~~~~~~~~~~~~~~~~^~
                      npm ERR! In file included from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-primitive.h:11,
                      npm ERR!                  from /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-object.h:11:
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
                      npm ERR!   413 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                      npm ERR!       |                                        ^~~~~~~~~~~~
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note:   candidate expects 1 argument, 0 provided
                      npm ERR! ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’:
                      npm ERR! ../src/BluetoothHciSocket.cpp:417:33: error: no matching function for call to ‘v8::Value::IntegerValue()’
                      npm ERR!   417 |       devId = arg0->IntegerValue();
                      npm ERR!       |               ~~~~~~~~~~~~~~~~~~^~
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
                      npm ERR!   413 |   V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
                      npm ERR!       |                                        ^~~~~~~~~~~~
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/v8-value.h:413:40: note:   candidate expects 1 argument, 0 provided
                      npm ERR! ../src/BluetoothHciSocket.cpp: At global scope:
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:1014:7: 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]
                      npm ERR!  1014 |       (node::addon_register_func) (regfunc),                          \
                      npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      npm ERR! /home/iobroker/.cache/node-gyp/18.19.0/include/node/node.h:1048:3: note: in expansion of macro ‘NODE_MODULE_X’
                      npm ERR!  1048 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                      npm ERR!       |   ^~~~~~~~~~~~~
                      npm ERR! ../src/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’
                      npm ERR!   499 | NODE_MODULE(binding, BluetoothHciSocket::Init);
                      npm ERR!       | ^~~~~~~~~~~
                      npm ERR! make: *** [binding.target.mk:111: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
                      npm ERR! gyp ERR! build error
                      npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
                      npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
                      npm ERR! gyp ERR! System Linux 6.1.0-rpi8-rpi-2712
                      npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                      npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/bluetooth-hci-socket
                      npm ERR! gyp ERR! node -v v18.19.0
                      npm ERR! gyp ERR! node-gyp -v v10.0.1
                      npm ERR! gyp ERR! not ok
                      
                      npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-02-10T22_35_01_714Z-debug-0.log
                      admin@iobroker:/opt/iobroker $
                      
                      
                      Thomas BraunT Online
                      Thomas BraunT Online
                      Thomas Braun
                      Most Active
                      schrieb am zuletzt editiert von
                      #20

                      @wauzzi

                      Grundvoraussetzungen sind da?

                      sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
                      sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
                      

                      Linux-Werkzeugkasten:
                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                      NodeJS Fixer Skript:
                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                      wauzziW 1 Antwort Letzte Antwort
                      0
                      • Thomas BraunT Thomas Braun

                        @wauzzi

                        Grundvoraussetzungen sind da?

                        sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
                        sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
                        
                        wauzziW Offline
                        wauzziW Offline
                        wauzzi
                        schrieb am zuletzt editiert von
                        #21

                        @thomas-braun said in ble Adapter macht Probleme auf Raspi 5:

                        sudo setcap cap_net_raw+eip $(eval readlink -f which node)

                        offensichtlich, ja. Wenn ich dies beurteilen würde

                        admin@iobroker:/opt/iobroker $ sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
                        Reading package lists... Done
                        Building dependency tree... Done
                        Reading state information... Done
                        bluetooth is already the newest version (5.66-1+rpt1+deb12u1).
                        bluez is already the newest version (5.66-1+rpt1+deb12u1).
                        libbluetooth-dev is already the newest version (5.66-1+rpt1+deb12u1).
                        libudev-dev is already the newest version (252.22-1~deb12u1).
                        libcap2-bin is already the newest version (1:2.66-4).
                        0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                        admin@iobroker:/opt/iobroker $ sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
                        admin@iobroker:/opt/iobroker $
                        
                        
                        Thomas BraunT 1 Antwort Letzte Antwort
                        0
                        • wauzziW wauzzi

                          @thomas-braun said in ble Adapter macht Probleme auf Raspi 5:

                          sudo setcap cap_net_raw+eip $(eval readlink -f which node)

                          offensichtlich, ja. Wenn ich dies beurteilen würde

                          admin@iobroker:/opt/iobroker $ sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
                          Reading package lists... Done
                          Building dependency tree... Done
                          Reading state information... Done
                          bluetooth is already the newest version (5.66-1+rpt1+deb12u1).
                          bluez is already the newest version (5.66-1+rpt1+deb12u1).
                          libbluetooth-dev is already the newest version (5.66-1+rpt1+deb12u1).
                          libudev-dev is already the newest version (252.22-1~deb12u1).
                          libcap2-bin is already the newest version (1:2.66-4).
                          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                          admin@iobroker:/opt/iobroker $ sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
                          admin@iobroker:/opt/iobroker $
                          
                          
                          Thomas BraunT Online
                          Thomas BraunT Online
                          Thomas Braun
                          Most Active
                          schrieb am zuletzt editiert von
                          #22

                          @wauzzi

                          Dann schau dir einen Kaltstart des Adapters per

                          iob logs --watch | uniq
                          

                          an.

                          Linux-Werkzeugkasten:
                          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                          NodeJS Fixer Skript:
                          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                          GlasfaserG wauzziW 2 Antworten Letzte Antwort
                          0
                          • Thomas BraunT Thomas Braun

                            @wauzzi

                            Dann schau dir einen Kaltstart des Adapters per

                            iob logs --watch | uniq
                            

                            an.

                            GlasfaserG Online
                            GlasfaserG Online
                            Glasfaser
                            schrieb am zuletzt editiert von
                            #23

                            Kommt wohl öfters der Fehler vor :

                            .#
                            https://github.com/AlCalzone/ioBroker.ble/issues/837

                            Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

                            1 Antwort Letzte Antwort
                            0
                            • Thomas BraunT Thomas Braun

                              @wauzzi

                              Dann schau dir einen Kaltstart des Adapters per

                              iob logs --watch | uniq
                              

                              an.

                              wauzziW Offline
                              wauzziW Offline
                              wauzzi
                              schrieb am zuletzt editiert von
                              #24

                              @thomas-braun said in ble Adapter macht Probleme auf Raspi 5:

                              iob logs --watch | uniq

                              2024-02-10 23:45:58.679  - info: ble.0 (1699) starting. Version 0.14.0 in /opt/iobroker/node_modules/iobroker.ble, node: v18.19.0, js-controller: 5.0.17
                              2024-02-10 23:45:58.740  - info: ble.0 (1699) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, BTHome, _default
                              2024-02-10 23:45:58.741  - info: ble.0 (1699) enabled plugins: _default
                              2024-02-10 23:45:58.741  - info: ble.0 (1699) monitoring all services
                              2024-02-10 23:45:58.790  - info: ble.0 (1699) starting scanner process...
                              2024-02-10 23:45:58.901  - error: ble.0 (1699) Cannot find module '@abandonware/bluetooth-hci-socket'
                              Require stack:
                              - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js
                              - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
                              - /opt/iobroker/node_modules/@abandonware/noble/lib/resolve-bindings.js
                              - /opt/iobroker/node_modules/@abandonware/noble/with-custom-binding.js
                              - /opt/iobroker/node_modules/@abandonware/noble/index.js
                              - /opt/iobroker/node_modules/iobroker.ble/build/scanProcess.js
                              2024-02-10 23:45:58.679  - info: ble.0 (1699) starting. Version 0.14.0 in /opt/iobroker/node_modules/iobroker.ble, node: v18.19.0, js-controller: 5.0.17
                              2024-02-10 23:45:58.740  - info: ble.0 (1699) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, BTHome, _default
                              2024-02-10 23:45:58.741  - info: ble.0 (1699) enabled plugins: _default
                              2024-02-10 23:45:58.741  - info: ble.0 (1699) monitoring all services
                              2024-02-10 23:45:58.790  - info: ble.0 (1699) starting scanner process...
                              2024-02-10 23:45:58.901  - error: ble.0 (1699) Cannot find module '@abandonware/bluetooth-hci-socket'
                              Require stack:
                              - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js
                              - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
                              - /opt/iobroker/node_modules/@abandonware/noble/lib/resolve-bindings.js
                              - /opt/iobroker/node_modules/@abandonware/noble/with-custom-binding.js
                              - /opt/iobroker/node_modules/@abandonware/noble/index.js
                              - /opt/iobroker/node_modules/iobroker.ble/build/scanProcess.js
                              
                              
                              Thomas BraunT 1 Antwort Letzte Antwort
                              0
                              • wauzziW wauzzi

                                @thomas-braun said in ble Adapter macht Probleme auf Raspi 5:

                                iob logs --watch | uniq

                                2024-02-10 23:45:58.679  - info: ble.0 (1699) starting. Version 0.14.0 in /opt/iobroker/node_modules/iobroker.ble, node: v18.19.0, js-controller: 5.0.17
                                2024-02-10 23:45:58.740  - info: ble.0 (1699) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, BTHome, _default
                                2024-02-10 23:45:58.741  - info: ble.0 (1699) enabled plugins: _default
                                2024-02-10 23:45:58.741  - info: ble.0 (1699) monitoring all services
                                2024-02-10 23:45:58.790  - info: ble.0 (1699) starting scanner process...
                                2024-02-10 23:45:58.901  - error: ble.0 (1699) Cannot find module '@abandonware/bluetooth-hci-socket'
                                Require stack:
                                - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js
                                - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
                                - /opt/iobroker/node_modules/@abandonware/noble/lib/resolve-bindings.js
                                - /opt/iobroker/node_modules/@abandonware/noble/with-custom-binding.js
                                - /opt/iobroker/node_modules/@abandonware/noble/index.js
                                - /opt/iobroker/node_modules/iobroker.ble/build/scanProcess.js
                                2024-02-10 23:45:58.679  - info: ble.0 (1699) starting. Version 0.14.0 in /opt/iobroker/node_modules/iobroker.ble, node: v18.19.0, js-controller: 5.0.17
                                2024-02-10 23:45:58.740  - info: ble.0 (1699) loaded plugins: Xiaomi, mi-flora, ruuvi-tag, BTHome, _default
                                2024-02-10 23:45:58.741  - info: ble.0 (1699) enabled plugins: _default
                                2024-02-10 23:45:58.741  - info: ble.0 (1699) monitoring all services
                                2024-02-10 23:45:58.790  - info: ble.0 (1699) starting scanner process...
                                2024-02-10 23:45:58.901  - error: ble.0 (1699) Cannot find module '@abandonware/bluetooth-hci-socket'
                                Require stack:
                                - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/hci.js
                                - /opt/iobroker/node_modules/@abandonware/noble/lib/hci-socket/bindings.js
                                - /opt/iobroker/node_modules/@abandonware/noble/lib/resolve-bindings.js
                                - /opt/iobroker/node_modules/@abandonware/noble/with-custom-binding.js
                                - /opt/iobroker/node_modules/@abandonware/noble/index.js
                                - /opt/iobroker/node_modules/iobroker.ble/build/scanProcess.js
                                
                                
                                Thomas BraunT Online
                                Thomas BraunT Online
                                Thomas Braun
                                Most Active
                                schrieb am zuletzt editiert von
                                #25

                                @wauzzi

                                Dann versuch

                                cd /opt/iobroker/node_modules
                                sudo -H -u iobroker npm i @abandonware/bluetooth-hci-socket --omit=dev
                                

                                Linux-Werkzeugkasten:
                                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                NodeJS Fixer Skript:
                                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                wauzziW 1 Antwort Letzte Antwort
                                2
                                • Thomas BraunT Thomas Braun

                                  @wauzzi

                                  Dann versuch

                                  cd /opt/iobroker/node_modules
                                  sudo -H -u iobroker npm i @abandonware/bluetooth-hci-socket --omit=dev
                                  
                                  wauzziW Offline
                                  wauzziW Offline
                                  wauzzi
                                  schrieb am zuletzt editiert von wauzzi
                                  #26

                                  @thomas-braun said in ble Adapter macht Probleme auf Raspi 5:

                                  @wauzzi

                                  Dann versuch

                                  cd /opt/iobroker/node_modules
                                  sudo -H -u iobroker npm i @abandonware/bluetooth-hci-socket --omit=dev
                                  

                                  Ja Geil !!!! Hat geklappt !!! Alles grün und die BT Geräte werden gefunden. MEGA !!!!:dancers:

                                  Vielen lieben Dank Thomas
                                  Auch vielen lieben an alle anderen die mir versucht haben zu helfen :revolving_hearts:

                                  Jetzt kann Charlie wieder selbst nach Hause kommen ;-)
                                  https://youtu.be/6ebXPKz4bSc?si=bCU5lA-OjBXOasHM

                                  1 Antwort Letzte Antwort
                                  2
                                  • W Offline
                                    W Offline
                                    wrod
                                    schrieb am zuletzt editiert von
                                    #27

                                    @wauzzi
                                    Hallo,
                                    wegen solcher Probleme mit BLE habe ich schon länger ein Skript "fixble.sh" folgenden Inhalts:

                                    
                                    #!
                                    iobroker stop
                                    sudo apt update
                                    sudo apt upgrade
                                    cd /opt/iobroker/node_modules/iobroker.ble
                                    npm install --omit=dev
                                    iobroker fix
                                    sudo reboot
                                    
                                    
                                    

                                    Dieses startet u.a. npm install.

                                    Datin wird eine Abfrage gestellt, ob man etwas erneuern will.
                                    Ich würde das Skript gerne auch unattended (per cron) laufen lassen. (Wie) kann man dabei erreichen, dass diese Abfrage immer als mit "Y" beantwortet gilt, ohne dass ein Eingriff nötig ist?
                                    Dank im Voraus

                                    1 Antwort Letzte Antwort
                                    0
                                    Antworten
                                    • In einem neuen Thema antworten
                                    Anmelden zum Antworten
                                    • Älteste zuerst
                                    • Neuste zuerst
                                    • Meiste Stimmen


                                    Support us

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

                                    620

                                    Online

                                    32.5k

                                    Benutzer

                                    81.8k

                                    Themen

                                    1.3m

                                    Beiträge
                                    Community
                                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                    ioBroker Community 2014-2025
                                    logo
                                    • Anmelden

                                    • Du hast noch kein Konto? Registrieren

                                    • Anmelden oder registrieren, um zu suchen
                                    • Erster Beitrag
                                      Letzter Beitrag
                                    0
                                    • Home
                                    • Aktuell
                                    • Tags
                                    • Ungelesen 0
                                    • Kategorien
                                    • Unreplied
                                    • Beliebt
                                    • GitHub
                                    • Docu
                                    • Hilfe