39_gassistant.pm (Google Assistant, Google Home)

Begonnen von dominik, 29 Januar 2019, 21:59:53

Vorheriges Thema - Nächstes Thema

vbs

Zitat von: SouzA am 25 September 2023, 21:05:59Moin,
mach doch nen Dummy-Switch. Damit schaltest du dann über nen Doif deinen Fernseher...
define du_ku_Radio_ein_aus dummy
attr du_ku_Radio_ein_aus userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
attr du_ku_Radio_ein_aus alias Radio
attr du_ku_Radio_ein_aus devStateIcon on:general_an@green off:general_aus@red
attr du_ku_Radio_ein_aus event-on-update-reading state
attr du_ku_Radio_ein_aus genericDeviceType switch
attr du_ku_Radio_ein_aus group Radio Küche
attr du_ku_Radio_ein_aus homebridgeMapping On=state,cmdOn=on,cmdOff=off
attr du_ku_Radio_ein_aus icon it_radio
attr du_ku_Radio_ein_aus realRoom Küche
attr du_ku_Radio_ein_aus room GoogleHome,Küche,Multiroom
attr du_ku_Radio_ein_aus setList on,off
attr du_ku_Radio_ein_aus webCmd on:off
Das Teil funzt bei mir.

Danke dir! Ja, das hatte ich tatsächlich auch so bisher (also in 2 Devices). Wollte aber etwas optimieren und versuchen, das in einem einzigen Device hinzukriegen, weil es mich immer verwirrt hat, dass es den Fernseher 2 mal gibt xD
Ich bin mir einigermaßen sicher, dass das irgendwie geht. Ich glaube, ich bin nur zu doof...

PS.
Ich glaube bei mir ging deine Variante auch ohne das homeBridgeMapping und genericDeviceType-Attribut. Bei mir hatte das hier gereicht. Dann erkennt gassistant den Typ automatisch:
define wz_tv dummy
setuuid wz_tv 5db9f453-f33f-af31-14df-9c337a78197714ba
attr wz_tv assistantName Fernseher
attr wz_tv group Geräte
attr wz_tv icon it_television
attr wz_tv room GoogleAssistant,Wohnzimmer
attr wz_tv setList on off

vbs

@dominik
Wollte einfach mal Danke sagen! Mir ist jetzt erst wieder bewusst geworden, dass du jetzt seit Jahren für die Community kostenlos diesen Firebase-Dienst betreibst und betreust. Klappt alles wunderbar und auch zuverlässig, ganz stark! <3

vbs

Immer wenn ich Geräte synchronisiere, sagt mir der Assistent am Ende "ein oder mehr Geräte sind nicht verfügbar. Richte sie bitte erneut ein". Aber ich finde nirgends einen Hinweis, um welche Geräte es sich dabei handeln soll (Logs oder so). Es scheinen auch alle Geräte aus FHEM in der Home-App aufzutauchen. Hat jemand eine Idee, was das Problem sein könnte bzw., wie man herausfinden kann, was das Problem ist?

SouzA

Moin,
ich hatte diese Ansage bei den Abläufen.
Ich hab viel mit Lightscene und somit im Assistenten unter Automation und Ambiente-Funktionen.
Da waren meine Automationen nicht mehr aktiv und mussten neu verknüpft werden.

Bis denn
SouzA
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

vbs

Danke, der Hinweise ist interessant.

Also ich hab jetzt ALLES, was ging, aus der App gelöscht: das Zuhause, das FHEM Connect und auch alle Abläufe. Einige Abläufe sind ja offenbar fest und lassen sich nicht löschen. Dort drin hab ich zumindest alle Aktionen gelöscht.

Ergebnis: Problem tritt weiterhin auf...  :))

Was mir aufgefallen ist: bei einem der Default-Abläufe ("Arbeitstag") ist der Play-Button durchgestrichen. Also den Ablauf kann ich nicht händisch antriggern. Das ist normalerweise nur der Fall, wenn ich einen Ablauf deaktiviere. Der Ablauf ist aber nicht deaktiviert (wenn deaktiviert, dann steht da auch "deaktiviert" zusätzlich). Ist das normal bzw. bei euch auch so oder könnte das mit dem Problem zu tun haben?

Du darfst diesen Dateianhang nicht ansehen.


Reinhard.M

Moin!
Ich hatte auch immer wieder Spaß mit diesem Problem. Bis heute habe ich nicht wirklich herausfinden können welches Gerät genau gestört hat. So wie es heute aussieht waren es aber keine FHEM Geräte, immer andere die ich mal eingebunden hatte. Ich habe diese rausgeworfen und neu installiert. Damit war der Spuk nicht sofort beendet, es dauerte etwas. Aktuell ist Google diesbezüglich still, ich hoffe es bleibt so. Warum? Was ist passiert? Absolut keine Ahnung und ich habe lange nach der Ursache gesucht. Das hilft dir jetzt nicht wirklich bei der Lösung aber hoffentlich bei der Einschätzung des Problems.

Einen schönen Tag noch
Reinhard 

TimoD

#2961
delete

TimoD

#2962
HILFE,

wenn ich über das Terminal gassistant-fhem installieren möchte bekomme ich folgenden Fehler:

sudo: npm: command not found rpm habe ich nicht als sudo installiert.

Wenn ich stattdessen wie folgt installiere:

sudo /home/fhem/.nvm/versions/node/v14.21.3/bin/npm install -g gassistant-fhem --unsafe-perm

Klappt die Installation per sudo, allerdings bekomme ich dann keinen Login Link und im Log nur folgendes:

Loading cli.js...
Loading version.js...
Loading server.js...
Loading user.js...
Loading logger.js...
Loading fhem.js...
Loading database.js...
Loading localhandleQUERY.js...
Loading utils.js...
Loading localserver.js...
Loading localhandleEXECUTE.js...
[09/10/2023, 21:14:44] using ./gassistant-fhem.cfg
[09/10/2023, 21:14:44] ---
[09/10/2023, 21:14:44] config:
{"gassistant":{"description":"FHEM Connect"},"connections":[{"name":"FHEM","server":"127.0.0.1","port":"8085","filter":"room=GoogleAssistant"}]}
[09/10/2023, 21:14:44] ---
[09/10/2023, 21:14:44] Google Assistant FHEM Connect 3.0.5 started
[09/10/2023, 21:14:44] Fetching FHEM connections...
[09/10/2023, 21:14:44] [FHEM] starting longpoll: https://127.0.0.1:8085/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1696878884303

------------

Hab es hinbekommen -> clean install nicht als sudo + fhem user (nicht pi) + node/v14.21.3 + Konfiguration von Port wie im Wiki + IP des Rasp nicht 127.0.0.1


tplus

Hallo, Gassistant läuft bei mir schon lange problemlos, aber ich habe jetzt meinen Raspi von Buster auf Bullseye upgedated. Danach habe ich dummerweise Gassistant neu installieren wollen (Irrtum), die Installation schlägt aber fehl:

...
2229 verbose stack Error: command failed
2229 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
2229 verbose stack     at ChildProcess.emit (node:events:514:28)
2229 verbose stack     at maybeClose (node:internal/child_process:1105:16)
2229 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
2230 verbose pkgid grpc@1.24.11
2231 verbose cwd /home/pi
2232 verbose Linux 5.10.103-v7+
2233 verbose node v20.8.0
2234 verbose npm  v10.1.0
2235 error code 1
2236 error path /home/pi/node_modules/grpc
2237 error command failed
2238 error command sh -c node-pre-gyp install --fallback-to-build --library=static_library
2239 error make: Verzeichnis ,,/home/pi/node_modules/grpc/build" wird betreten
2239 error   CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
2239 error make: Verzeichnis ,,/home/pi/node_modules/grpc/build" wird verlassen
2239 error Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
2240 error node-pre-gyp info it worked if it ends with ok
2240 error node-pre-gyp info using node-pre-gyp@1.0.11
2240 error node-pre-gyp info using node@20.8.0 | linux | arm
2240 error node-pre-gyp info check checked for "/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc/grpc_node.node" (not found)
2240 error node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v115-linux-arm-glibc.tar.gz
2240 error node-pre-gyp ERR! install response status 404 Not Found on https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v115-linux-arm-glibc.tar.gz
2240 error node-pre-gyp WARN Pre-built binaries not installable for grpc@1.24.11 and node@20.8.0 (node-v115 ABI, glibc) (falling back to source compile with node-gyp)
2240 error node-pre-gyp WARN Hit error response status 404 Not Found on https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v115-linux-arm-glibc.tar.gz
2240 error gyp info it worked if it ends with ok
2240 error gyp info using node-gyp@9.4.0
2240 error gyp info using node@20.8.0 | linux | arm
2240 error gyp info ok
2240 error gyp info it worked if it ends with ok
2240 error gyp info using node-gyp@9.4.0
2240 error gyp info using node@20.8.0 | linux | arm
2240 error gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
2240 error gyp http GET https://nodejs.org/download/release/v20.8.0/node-v20.8.0-headers.tar.gz
2240 error gyp http 200 https://nodejs.org/download/release/v20.8.0/node-v20.8.0-headers.tar.gz
2240 error gyp http GET https://nodejs.org/download/release/v20.8.0/SHASUMS256.txt
2240 error gyp http 200 https://nodejs.org/download/release/v20.8.0/SHASUMS256.txt
2240 error gyp info spawn /usr/bin/python3
2240 error gyp info spawn args [
2240 error gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2240 error gyp info spawn args   'binding.gyp',
2240 error gyp info spawn args   '-f',
2240 error gyp info spawn args   'make',
2240 error gyp info spawn args   '-I',
2240 error gyp info spawn args   '/home/pi/node_modules/grpc/build/config.gypi',
2240 error gyp info spawn args   '-I',
2240 error gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2240 error gyp info spawn args   '-I',
2240 error gyp info spawn args   '/home/pi/.cache/node-gyp/20.8.0/include/node/common.gypi',
2240 error gyp info spawn args   '-Dlibrary=shared_library',
2240 error gyp info spawn args   '-Dvisibility=default',
2240 error gyp info spawn args   '-Dnode_root_dir=/home/pi/.cache/node-gyp/20.8.0',
2240 error gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
2240 error gyp info spawn args   '-Dnode_lib_file=/home/pi/.cache/node-gyp/20.8.0/<(target_arch)/node.lib',
2240 error gyp info spawn args   '-Dmodule_root_dir=/home/pi/node_modules/grpc',
2240 error gyp info spawn args   '-Dnode_engine=v8',
2240 error gyp info spawn args   '--depth=.',
2240 error gyp info spawn args   '--no-parallel',
2240 error gyp info spawn args   '--generator-output',
2240 error gyp info spawn args   'build',
2240 error gyp info spawn args   '-Goutput_dir=.'
2240 error gyp info spawn args ]
2240 error gyp info ok
2240 error gyp info it worked if it ends with ok
2240 error gyp info using node-gyp@9.4.0
2240 error gyp info using node@20.8.0 | linux | arm
2240 error gyp info spawn make
2240 error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
2240 error make: g++: Datei oder Verzeichnis nicht gefunden
2240 error make: *** [grpc.target.mk:546: Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o] Fehler 127
2240 error gyp ERR! build error
2240 error gyp ERR! stack Error: `make` failed with exit code: 2
2240 error gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
2240 error gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
2240 error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
2240 error gyp ERR! System Linux 5.10.103-v7+
2240 error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115"
2240 error gyp ERR! cwd /home/pi/node_modules/grpc
2240 error gyp ERR! node -v v20.8.0
2240 error gyp ERR! node-gyp -v v9.4.0
2240 error gyp ERR! not ok
2240 error node-pre-gyp ERR! build error
2240 error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
2240 error node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/pi/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
2240 error node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
2240 error node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1105:16)
2240 error node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
2240 error node-pre-gyp ERR! System Linux 5.10.103-v7+
2240 error node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
2240 error node-pre-gyp ERR! cwd /home/pi/node_modules/grpc
2240 error node-pre-gyp ERR! node -v v20.8.0
2240 error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
2240 error node-pre-gyp ERR! not ok
2241 verbose exit 1
2242 timing npm Completed in 295075ms
2243 verbose unfinished npm timer reify 1696942241166
2244 verbose unfinished npm timer reify:build 1696942487359
2245 verbose unfinished npm timer build 1696942487372
2246 verbose unfinished npm timer build:deps 1696942487377
2247 verbose unfinished npm timer build:run:install 1696942487782
2248 verbose unfinished npm timer build:run:install:node_modules/grpc 1696942487786
2249 verbose code 1
2250 error A complete log of this run can be found in: /home/pi/.npm/_logs/2023-10-10T12_50_38_134Z-debug-0.log

Besten Dank für Tipps...

stefan-dd

Hallo, ich bekomme meine Installation nicht zum laufen. Habe schon alles nochmal neu installiert, aber ohne Erfolg.
Im log sind Fehler, mir fehlt leider der Ansatz.

Loading cli.js...
Loading version.js...
Loading server.js...
Loading user.js...
Loading logger.js...
Loading fhem.js...
Loading database.js...
/usr/local/lib/node_modules/gassistant-fhem/node_modules/vm2/lib/main.js:1125
throw this._internal.Decontextify.value(e);
^

Error: Cannot find module '@firebase/firestore'
Require stack:
- /usr/local/lib/node_modules/gassistant-fhem/node_modules/firebase/firestore/dist/index.cjs.js
- /usr/local/lib/node_modules/gassistant-fhem/node_modules/vm2/lib/main.js
- /usr/local/lib/node_modules/gassistant-fhem/node_modules/vm2/index.js
- /usr/local/lib/node_modules/gassistant-fhem/lib/cli.js
- /usr/local/lib/node_modules/gassistant-fhem/bin/gassistant-fhem
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:931:15)
    at Function.Module._load (internal/modules/cjs/loader.js:774:27)
    at Module.require (internal/modules/cjs/loader.js:1003:19)
    at require (internal/modules/cjs/helpers.js:107:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/gassistant-fhem/node_modules/firebase/firestore/dist/index.cjs.js:3:1)
    at Module._compile (internal/modules/cjs/loader.js:1114:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:979:32)
    at Function.Module._load (internal/modules/cjs/loader.js:819:12)
    at Module.require (internal/modules/cjs/loader.js:1003:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/local/lib/node_modules/gassistant-fhem/node_modules/firebase/firestore/dist/index.cjs.js',
    '/usr/local/lib/node_modules/gassistant-fhem/node_modules/vm2/lib/main.js',
    '/usr/local/lib/node_modules/gassistant-fhem/node_modules/vm2/index.js',
    '/usr/local/lib/node_modules/gassistant-fhem/lib/cli.js',
    '/usr/local/lib/node_modules/gassistant-fhem/bin/gassistant-fhem'
  ]
}
Loading cli.js...
Loading version.js...
Loading server.js...
Loading user.js...
Loading logger.js...

TimoD

Würde gerne in google home einen Lüfter einbinden. Hab mich an der Anleitung im Wiki entlanggehangelt, leider ohne Erfolg, Device taucht zwar auf, ich kann aber die Zustände low, mid, high nicht auswählen, google home sagt Device nicht verfügbar, alle anderen Geräte funktionieren !

Könnt Ih mir helfen, wie das Mapping aussehen müsste:

Internals:
   CFGFN     
   FUUID      65263c14-f33f-53b5-3c9d-e327ad7f18bd9b82
   NAME       Lueftungsanlage
   NR         11569
   STATE      mid
   TYPE       dummy
   eventCount 30
   Helper:
     DBLOG:
       FanSpeed:
         logdb:
           TIME       1697010336.51418
           VALUE      low
       state:
         logdb:
           TIME       1697028811.40882
           VALUE      mid
   OLDREADINGS:
   READINGS:
     2023-10-11 14:53:31   state           mid
Attributes:
   genericDeviceType fan
   homebridgeMapping {"Lueftungsanlage":{"reading":"state","speeds":{"S1":{"cmd":"low","value":"low","synonyms":{"de":["langsam","stufe 1"],"en":["slow","speed 1"]}},"S2":{"cmd":"mid","value":"mid","synonyms":{"de":["mittel","stufe 2"],"en":["medium","speed 2"]}},"S3":{"cmd":"high","value":"high","synonyms":{"de":["maximum","stufe 3"],"en":["maximum","speed 3"]}}},"ordered":true,"reversible":false}}
   room       2.Technik,GoogleAssistant
   setList    low mid high
   webCmd     low:mid:high

Schonmal vielen Dank :-)

TimoD

Zitat von: stefan-dd am 11 Oktober 2023, 14:06:35@firebase/firestore
Sieht aus als würde dir firebase in der Installation fehlen, wird normal in der Installation über das Script mitinstalliert.

TimoD

Zitat von: tplus am 10 Oktober 2023, 15:06:22Hallo, Gassistant läuft bei mir schon lange problemlos, aber ich habe jetzt meinen Raspi von Buster auf Bullseye upgedated. Danach habe ich dummerweise Gassistant neu installieren wollen (Irrtum), die Installation schlägt aber fehl:

...
2229 verbose stack Error: command failed
2229 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
2229 verbose stack     at ChildProcess.emit (node:events:514:28)
2229 verbose stack     at maybeClose (node:internal/child_process:1105:16)
2229 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
2230 verbose pkgid grpc@1.24.11
2231 verbose cwd /home/pi
2232 verbose Linux 5.10.103-v7+
2233 verbose node v20.8.0
2234 verbose npm  v10.1.0
2235 error code 1
2236 error path /home/pi/node_modules/grpc
2237 error command failed
2238 error command sh -c node-pre-gyp install --fallback-to-build --library=static_library
2239 error make: Verzeichnis ,,/home/pi/node_modules/grpc/build" wird betreten
2239 error   CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
2239 error make: Verzeichnis ,,/home/pi/node_modules/grpc/build" wird verlassen
2239 error Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
2240 error node-pre-gyp info it worked if it ends with ok
2240 error node-pre-gyp info using node-pre-gyp@1.0.11
2240 error node-pre-gyp info using node@20.8.0 | linux | arm
2240 error node-pre-gyp info check checked for "/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc/grpc_node.node" (not found)
2240 error node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v115-linux-arm-glibc.tar.gz
2240 error node-pre-gyp ERR! install response status 404 Not Found on https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v115-linux-arm-glibc.tar.gz
2240 error node-pre-gyp WARN Pre-built binaries not installable for grpc@1.24.11 and node@20.8.0 (node-v115 ABI, glibc) (falling back to source compile with node-gyp)
2240 error node-pre-gyp WARN Hit error response status 404 Not Found on https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v115-linux-arm-glibc.tar.gz
2240 error gyp info it worked if it ends with ok
2240 error gyp info using node-gyp@9.4.0
2240 error gyp info using node@20.8.0 | linux | arm
2240 error gyp info ok
2240 error gyp info it worked if it ends with ok
2240 error gyp info using node-gyp@9.4.0
2240 error gyp info using node@20.8.0 | linux | arm
2240 error gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
2240 error gyp http GET https://nodejs.org/download/release/v20.8.0/node-v20.8.0-headers.tar.gz
2240 error gyp http 200 https://nodejs.org/download/release/v20.8.0/node-v20.8.0-headers.tar.gz
2240 error gyp http GET https://nodejs.org/download/release/v20.8.0/SHASUMS256.txt
2240 error gyp http 200 https://nodejs.org/download/release/v20.8.0/SHASUMS256.txt
2240 error gyp info spawn /usr/bin/python3
2240 error gyp info spawn args [
2240 error gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
2240 error gyp info spawn args   'binding.gyp',
2240 error gyp info spawn args   '-f',
2240 error gyp info spawn args   'make',
2240 error gyp info spawn args   '-I',
2240 error gyp info spawn args   '/home/pi/node_modules/grpc/build/config.gypi',
2240 error gyp info spawn args   '-I',
2240 error gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
2240 error gyp info spawn args   '-I',
2240 error gyp info spawn args   '/home/pi/.cache/node-gyp/20.8.0/include/node/common.gypi',
2240 error gyp info spawn args   '-Dlibrary=shared_library',
2240 error gyp info spawn args   '-Dvisibility=default',
2240 error gyp info spawn args   '-Dnode_root_dir=/home/pi/.cache/node-gyp/20.8.0',
2240 error gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
2240 error gyp info spawn args   '-Dnode_lib_file=/home/pi/.cache/node-gyp/20.8.0/<(target_arch)/node.lib',
2240 error gyp info spawn args   '-Dmodule_root_dir=/home/pi/node_modules/grpc',
2240 error gyp info spawn args   '-Dnode_engine=v8',
2240 error gyp info spawn args   '--depth=.',
2240 error gyp info spawn args   '--no-parallel',
2240 error gyp info spawn args   '--generator-output',
2240 error gyp info spawn args   'build',
2240 error gyp info spawn args   '-Goutput_dir=.'
2240 error gyp info spawn args ]
2240 error gyp info ok
2240 error gyp info it worked if it ends with ok
2240 error gyp info using node-gyp@9.4.0
2240 error gyp info using node@20.8.0 | linux | arm
2240 error gyp info spawn make
2240 error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
2240 error make: g++: Datei oder Verzeichnis nicht gefunden
2240 error make: *** [grpc.target.mk:546: Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o] Fehler 127
2240 error gyp ERR! build error
2240 error gyp ERR! stack Error: `make` failed with exit code: 2
2240 error gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
2240 error gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
2240 error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
2240 error gyp ERR! System Linux 5.10.103-v7+
2240 error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115"
2240 error gyp ERR! cwd /home/pi/node_modules/grpc
2240 error gyp ERR! node -v v20.8.0
2240 error gyp ERR! node-gyp -v v9.4.0
2240 error gyp ERR! not ok
2240 error node-pre-gyp ERR! build error
2240 error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/node_modules/grpc/src/node/extension_binary/node-v115-linux-arm-glibc --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
2240 error node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/pi/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
2240 error node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
2240 error node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1105:16)
2240 error node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
2240 error node-pre-gyp ERR! System Linux 5.10.103-v7+
2240 error node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
2240 error node-pre-gyp ERR! cwd /home/pi/node_modules/grpc
2240 error node-pre-gyp ERR! node -v v20.8.0
2240 error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
2240 error node-pre-gyp ERR! not ok
2241 verbose exit 1
2242 timing npm Completed in 295075ms
2243 verbose unfinished npm timer reify 1696942241166
2244 verbose unfinished npm timer reify:build 1696942487359
2245 verbose unfinished npm timer build 1696942487372
2246 verbose unfinished npm timer build:deps 1696942487377
2247 verbose unfinished npm timer build:run:install 1696942487782
2248 verbose unfinished npm timer build:run:install:node_modules/grpc 1696942487786
2249 verbose code 1
2250 error A complete log of this run can be found in: /home/pi/.npm/_logs/2023-10-10T12_50_38_134Z-debug-0.log

Besten Dank für Tipps...

Und du scheinst das ähnliche Problem wie ich zu haben, siehe oben grpc (welches von gassisstant benötigt wird, funktioniert nicht mit nodejs 20.x.x. downgrade mal auf 14.x.x und installiere neu

tplus

Ich konnte das Problem lösen indem ich einfach das ursprüngliche Verzeichnis welches noch als Backup vorhanden war wieder umbenannt habe.

Eine Neuinstallation wird dann natürlich schwierig...

stefan-dd

#2969
Zitat von: TimoD am 11 Oktober 2023, 14:58:28
Zitat von: stefan-dd am 11 Oktober 2023, 14:06:35@firebase/firestore
Sieht aus als würde dir firebase in der Installation fehlen, wird normal in der Installation über das Script mitinstalliert.

Danke, das habe ich nun versucht. Bringt aber keine Änderung.
Bei der Installation bekomme ich schon folgende Warnungen.
                              DEPRECATION WARNING

  Node.js 14.x is no longer actively supported!

  You will not receive security or critical stability updates for this version.

  You should migrate to a supported version of Node.js as soon as possible.
  Use the installation script that corresponds to the version of Node.js you
  wish to install. e.g.

   * https://deb.nodesource.com/setup_16.x — Node.js 16 "Gallium"
   * https://deb.nodesource.com/setup_18.x — Node.js 18 LTS "Hydrogen" (recommended)
   * https://deb.nodesource.com/setup_19.x — Node.js 19 "Nineteen"
   * https://deb.nodesource.com/setup_20.x — Node.js 20 "Iron" (current)

  Please see https://github.com/nodejs/Release for details about which
  version may be appropriate for you.

  The NodeSource Node.js distributions repository contains
  information both about supported versions of Node.js and supported Linux
  distributions. To learn more about usage, see the repository:
    https://github.com/nodesource/distributions

================================================================================
================================================================================

Continuing in 20 seconds ...

root@fhem:~# sudo npm install -g gassistant-fhem --unsafe-perm
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated vm2@3.9.2: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.
npm WARN deprecated grpc@1.24.11: This library will not receive further updates other than security fixes. We recommend using @grpc/grpc-js instead.
npm WARN deprecated core-js@3.6.5: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
/usr/bin/gassistant-fhem -> /usr/lib/node_modules/gassistant-fhem/bin/gassistant-fhem

> grpc@1.24.11 install /usr/lib/node_modules/gassistant-fhem/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: "/usr/lib/node_modules/gassistant-fhem/node_modules/grpc/src/node/extension_binary/node-v83-linux-x64-glibc/grpc_node.node" is installed via remote

> core-js@3.6.5 postinstall /usr/lib/node_modules/gassistant-fhem/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> protobufjs@6.11.4 postinstall /usr/lib/node_modules/gassistant-fhem/node_modules/@grpc/proto-loader/node_modules/protobufjs
> node scripts/postinstall


> protobufjs@7.2.5 postinstall /usr/lib/node_modules/gassistant-fhem/node_modules/protobufjs
> node scripts/postinstall

+ gassistant-fhem@3.0.5
added 319 packages from 238 contributors in 52.548s


Kann es sein, das das Installationsscript nicht mehr ganz so aktuelle ist?