Mise à jour et passage à ZwaveJS

Bonjour à tous,

utilisateur Jedom su PI3B depuis 2016 je tente de ne pas louper le train…

Toujours sous OpenZwave je voudrais passer sous ZwaveJS. Puis-je le faire sans tout casser?
Je viens d’essayer l’installation d’ZwaveJS mais ça ne se passe pas vraiment bien au niveau des dépendances…

J’ai tenté une recherche sur le forum sans vraiment de succès. Donc désolé si le sujet a déja été abordé.

Voici mes infos système:

Dans le log d’installation ZwavceJS je vois ceci :

[1/5] Validating package.json...
[2/5] Resolving packages...
warning archiver > archiver-utils > glob@8.1.0: Glob versions prior to v9 are no longer supported
warning archiver > archiver-utils > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning csurf@1.11.0: Please use another csrf package
warning native-url > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See https://v2.vuejs.org/eol/ for more details.
warning @types/extract-zip@2.0.1: This is a stub types definition. extract-zip provides its own type definitions, so you do not need this installed.
warning c8 > test-exclude > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning c8 > test-exclude > glob > inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning c8 > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning c8 > rimraf > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning docsify-cli > docsify-server-renderer@4.13.1: docsify-server-renderer 4.x and below is no longer supported while we investigate the future of SSR and SSG for Docsify
warning eslint > @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
warning eslint > file-entry-cache > flat-cache > rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
warning eslint > @humanwhocodes/config-array > @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
warning mocha > glob@8.1.0: Glob versions prior to v9 are no longer supported
warning release-it > shelljs > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning vite-plugin-pwa > workbox-build > glob@7.2.3: Glob versions prior to v9 are no longer supported
warning vite-plugin-pwa > workbox-build > @rollup/plugin-replace > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning " > @zwave-js/server@1.38.0" has incorrect peer dependency "zwave-js@^13.2.0".
warning " > vis-data@7.1.9" has unmet peer dependency "uuid@^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0".
warning " > vis-data@7.1.9" has unmet peer dependency "vis-util@^5.0.1".
warning " > vis-network@9.1.9" has unmet peer dependency "@egjs/hammerjs@^2.0.0".
warning " > vis-network@9.1.9" has unmet peer dependency "component-emitter@^1.3.0".
warning " > vis-network@9.1.9" has unmet peer dependency "keycharm@^0.2.0 || ^0.3.0 || ^0.4.0".
warning " > vis-network@9.1.9" has unmet peer dependency "uuid@^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0".
warning " > vis-network@9.1.9" has unmet peer dependency "vis-util@^5.0.1".
warning " > @babel/register@7.24.6" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > vite-plugin-pwa@0.16.7" has unmet peer dependency "workbox-build@^7.0.0".
warning " > vite-plugin-pwa@0.16.7" has unmet peer dependency "workbox-window@^7.0.0".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 400.89s.
+ sudo yarn run build
yarn run v1.22.22
$ npm-run-all 'build:*'
$ tsc
$ vite build
vite v4.5.3 building for production...
transforming...
✓ 577 modules transformed.
<--- Last few GCs --->
[23193:0x6081708]   115428 ms: Scavenge (reduce) 235.0 (248.6) -> 234.7 (248.6) MB, 3.8 / 0.0 ms  (average mu = 0.953, current mu = 0.961) allocation failure;
[23193:0x6081708]   115458 ms: Scavenge (reduce) 235.0 (248.6) -> 234.7 (248.6) MB, 3.9 / 0.0 ms  (average mu = 0.953, current mu = 0.961) allocation failure;
[23193:0x6081708]   116978 ms: Mark-sweep (reduce) 240.3 (253.9) -> 238.0 (253.9) MB, 1469.1 / 0.0 ms  (average mu = 0.881, current mu = 0.576) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Aborted
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build:ui" exited with 134.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
+ chown -R www-data:www-data CHANGELOG.md LICENSE README.md SECURITY.md api certs dist docker docs esbuild-register.js esbuild.js genereteDocs.ts index.html kubernetes kustomization.yaml node_modules nodemon.json package-lock.json package.json package.sh pkg public server server_config.js snippets src store test tsconfig.eslint.json tsconfig.json vite.config.js wallaby.js yarn.lock
+ '[' -e /dev/ttyAMA0 ']'
+ sudo sed -i 's/console=ttyAMA0,115200//; s/kgdboc=ttyAMA0,115200//' /boot/cmdline.txt
+ sudo sed -i 's|[^:]*:[^:]*:respawn:/sbin/getty[^:]*ttyAMA0[^:]*||' /etc/inittab
sed: can't read /etc/inittab: No such file or directory
+ '[' -e /dev/ttymxc0 ']'
+ '[' -e /dev/ttyAMA0 ']'
+ sudo systemctl mask serial-getty@ttyAMA0.service
+ sudo systemctl stop serial-getty@ttyAMA0.service
++ grep Revision /proc/cpuinfo
++ cut -d: -f2
++ tr -d ' '
+ RPI_BOARD_REVISION=a02082
+ [[ a02082 == \a\0\2\0\8\2 ]]
+ systemctl disable hciuart
++ grep dtoverlay=pi3-miniuart-bt /boot/config.txt
+ [[ ! -n '' ]]
+ echo 'Raspberry Pi 3 Detected. If you use a Razberry board you must Disable Bluetooth'
Raspberry Pi 3 Detected. If you use a Razberry board you must Disable Bluetooth
+ echo 'Please add '\''dtoverlay=pi3-miniuart-bt'\'' to the end of the file /boot/config.txt'
Please add 'dtoverlay=pi3-miniuart-bt' to the end of the file /boot/config.txt
+ echo 'And reboot your Raspberry Pi'
And reboot your Raspberry Pi
+ echo 'Everything is successfully installed!'
Everything is successfully installed!
+ echo 11
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end zwavejs
+ echo 12
+ rm /tmp/jeedom_install_in_progress_zwavejs
+ echo '*******************End of package installation******************'
*******************End of package installation******************

D’avance merci pour votre aide

Bonjour,

Nous n’avons pas le log complet d’installation des dépendances.

De plus vous êtes encore en debian 10, donc ne pas louper le train concernant linux c’est déjà fait.

Cependant vous êtes sur un raspi 3, donc peu de ram

Déjà essayer de libérer de la ram en stoppant des plugins le temps d’essayer de mettre en place les dépendances de openzwavejs

Néanmoins, si vous voulez continuer à pouvoir évoluer, quand je vois la charge de votre machine, le souci de ram, je vous conseillerai de passer sur un raspi 4 4Go de ram, installer debian 11 bien à jour et restaurer le backup de votre raspi 3

Bonjour et Merci pour le retour rapide.

En effet vous avez raison tout cela devient quelque peu obsolete.
Je vais me tourner vers un PI4 avec une installation fraiche.

A noter que je suis sur Msata (usb), savez vous si je peux toujours utiliser cette méthode : Msata ?

Merci pour votre aide

Bonjour.

Oui, vous pouvez utiliser ce tutoriel, mais pour pi4 c’est celui-ci :

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.