@marko1974 sagte in [Neuer Adapter] EuSec:
Okay, soweit schaut das sauber aus.
Die
Aktualisierung für 26 Pakete verfügbar.
würde ich aber auch noch eintüten.
@thomas-braun über die admin console eufy-security deinstalliert und einfach eu-sec installiert
@marko1974 sagte in [Neuer Adapter] EuSec:
einfach eu-sec
Woher? Über github? Über ein Repo? Ganz woanders her?
Du sprichst von dem hier:
@thomas-braun von dem spreche ich, ja....den hab ich einfach aus dem stable genommen...also unter der Oberfläche von iobroker installiert. neustart beschert nun das hier
2022-03-06 15:50:24.626 - error: host.openhab Caught by controller[0]: internal/modules/cjs/loader.js:303
2022-03-06 15:50:24.626 - error: host.openhab Caught by controller[0]: throw err;
2022-03-06 15:50:24.630 - error: host.openhab Caught by controller[0]: ^
2022-03-06 15:50:24.632 - error: host.openhab Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/eufy-security-client/build/index.js'. Please verify that the package.json has a valid "main" entry
2022-03-06 15:50:24.633 - error: host.openhab Caught by controller[0]: at tryPackage (internal/modules/cjs/loader.js:295:19)
2022-03-06 15:50:24.634 - error: host.openhab Caught by controller[0]: at Function.Module._findPath (internal/modules/cjs/loader.js:508:18)
2022-03-06 15:50:24.635 - error: host.openhab Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:802:27)
2022-03-06 15:50:24.635 - error: host.openhab Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:667:27)
2022-03-06 15:50:24.636 - error: host.openhab Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
2022-03-06 15:50:24.639 - error: host.openhab Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
2022-03-06 15:50:24.640 - error: host.openhab Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.eusec/build/main.js:31:32)
2022-03-06 15:50:24.641 - error: host.openhab Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
2022-03-06 15:50:24.641 - error: host.openhab Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
2022-03-06 15:50:24.642 - error: host.openhab Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32) {
2022-03-06 15:50:24.642 - error: host.openhab Caught by controller[0]: code: 'MODULE_NOT_FOUND',
2022-03-06 15:50:24.643 - error: host.openhab Caught by controller[0]: path: '/opt/iobroker/node_modules/eufy-security-client/package.json',
2022-03-06 15:50:24.644 - error: host.openhab Caught by controller[0]: requestPath: 'eufy-security-client'
2022-03-06 15:50:24.644 - error: host.openhab Caught by controller[0]: }
2022-03-06 15:50:24.646 - error: host.openhab instance system.adapter.eusec.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
zusätzlich läuft jetzt irgendwie immer ein rebuild durch in schleife
host.openhab
2022-03-06 15:56:20.221 info iobroker npm-rebuild: > sharp@0.28.1 install /opt/iobroker/node_modules/sharp> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
host.openhab
2022-03-06 15:56:20.220 info iobroker npm-rebuild:
host.openhab
2022-03-06 15:56:19.950 info iobroker npm-rebuild: make: Verzeichnis „/opt/iobroker/node_modules/@abandonware/noble/build“ wird verlassen
host.openhab
2022-03-06 15:56:19.905 info iobroker npm-rebuild: COPY Release/noble.node
host.openhab
2022-03-06 15:56:19.438 info iobroker npm-rebuild: SOLINK_MODULE(target) Release/obj.target/noble.node
host.openhab
2022-03-06 15:56:19.430 info iobroker npm-rebuild: make: Verzeichnis „/opt/iobroker/node_modules/@abandonware/noble/build“ wird betreten
host.openhab
2022-03-06 15:56:16.832 info iobroker npm-rebuild: > @abandonware/noble@1.9.2-15 install /opt/iobroker/node_modules/@abandonware/noble> node-gyp rebuild
host.openhab
2022-03-06 15:56:15.538 info iobroker npm-rebuild: [@abandonware/bluetooth-hci-socket] Success: "/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/bluetooth_hci_socket.node" already installedPass --update-binary to reinstall or --build-from-source to recompile
host.openhab
2022-03-06 15:56:13.846 info iobroker npm-rebuild: COPY Release/uwrap.nodemake: Verzeichnis „/opt/iobroker/node_modules/usocket/build“ wird verlassen> @abandonware/bluetooth-hci-socket@0.5.3-8 install /opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket> node-pre-gyp install --fallback-to-build
host.openhab
2022-03-06 15:56:11.137 info iobroker npm-rebuild: SOLINK_MODULE(target) Release/obj.target/uwrap.node
host.openhab
2022-03-06 15:55:55.908 info iobroker npm-rebuild: CXX(target) Release/obj.target/uwrap/src/uwrap.o
host.openhab
2022-03-06 15:55:55.886 info iobroker npm-rebuild: make: Verzeichnis „/opt/iobroker/node_modules/usocket/build“ wird betreten
host.openhab
2022-03-06 15:55:52.530 info iobroker npm-rebuild: > usocket@0.3.0 install /opt/iobroker/node_modules/usocket> node-gyp rebuild
host.openhab
2022-03-06 15:55:52.416 info iobroker npm-rebuild: ursaNative bindings compilation fail. This is not an issue. Modules that depend on it will use fallbacks.
host.openhab
2022-03-06 15:55:40.108 info iobroker npm-rebuild: > ursa-optional@0.9.10 install /opt/iobroker/node_modules/ursa-optional> node rebuild.js
host.openhab
2022-03-06 15:55:40.016 info iobroker npm-rebuild: make: Verzeichnis „/opt/iobroker/node_modules/unix-dgram/build“ wird verlassen
host.openhab
2022-03-06 15:55:39.935 info iobroker npm-rebuild: COPY Release/unix_dgram.node
host.openhab
2022-03-06 15:55:39.389 info iobroker npm-rebuild: SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
host.openhab
2022-03-06 15:55:31.082 info iobroker npm-rebuild: make: Verzeichnis „/opt/iobroker/node_modules/unix-dgram/build“ wird betreten CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
host.openhab
2022-03-06 15:55:27.172 info iobroker npm-rebuild: > unix-dgram@2.0.4 install /opt/iobroker/node_modules/unix-dgram> node-gyp rebuild
host.openhab
2022-03-06 15:55:27.000 info iobroker npm-rebuild: make: Verzeichnis „/opt/iobroker/node_modules/raw-socket/build“ wird verlassen
host.openhab
2022-03-06 15:55:26.947 info iobroker npm-rebuild: COPY Release/raw.node
host.openhab
2022-03-06 15:55:26.449 info iobroker npm-rebuild: SOLINK_MODULE(target) Release/obj.target/raw.node
host.openhab
2022-03-06 15:55:16.785 info iobroker npm-rebuild: CXX(target) Release/obj.target/raw/src/raw.o
host.openhab
2022-03-06 15:55:16.774 info iobroker npm-rebuild: make: Verzeichnis „/opt/iobroker/node_modules/raw-socket/build“ wird betreten
host.openhab
2022-03-06 15:55:13.640 info iobroker npm-rebuild: SOLINK_MODULE(target) Release/obj.target/diskusage.node COPY Release/diskusage.nodemake: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird verlassen> raw-socket@1.7.0 install /opt/iobroker/node_modules/raw-socket> node-gyp rebuild
host.openhab
2022-03-06 15:55:10.630 info iobroker npm-rebuild: CXX(target) Release/obj.target/diskusage/src/diskusage_posix.o
host.openhab
2022-03-06 15:55:04.251 info iobroker npm-rebuild: CXX(target) Release/obj.target/diskusage/src/main.o
host.openhab
2022-03-06 15:55:04.246 info iobroker npm-rebuild: make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten
host.openhab
2022-03-06 15:55:00.383 info iobroker npm-rebuild: > diskusage@1.1.3 install /opt/iobroker/node_modules/diskusage> node-gyp rebuild
host.openhab
2022-03-06 15:55:00.381 info iobroker npm-rebuild:
host.openhab
2022-03-06 15:54:59.628 info iobroker npm-rebuild: > @root/acme@3.1.0 postinstall /opt/iobroker/node_modules/@root/acme> node scripts/postinstall
host.openhab
2022-03-06 15:54:59.626 info iobroker npm-rebuild:
host.openhab
2022-03-06 15:54:57.458 info iobroker npm-rebuild: > nodemon@2.0.15 postinstall /opt/iobroker/node_modules/nodemon> node bin/postinstall || exit 0
vis.0
2022-03-06 15:54:54.661 info Terminated (NO_ERROR): Without reason
vis.0
2022-03-06 15:54:53.540 info vis license is OK.
vis.0
2022-03-06 15:54:53.246 info starting. Version 1.4.5 in /opt/iobroker/node_modules/iobroker.vis, node: v12.22.7, js-controller: 4.0.18
@marko1974 sagte in [Neuer Adapter] EuSec:
node: v12.22.7
Ich würde mal langsame (nee, eher schnell) auf die vorgesehene Version 14 wechseln.
Auf meinem Test-System wird der ganz brav installiert:
2022-03-06 15:55:00.815 - info: host.chet iobroker add eusec auto --host chet
2022-03-06 15:55:04.190 - info: host.chet iobroker NPM version: 8.5.1
2022-03-06 15:55:04.194 - info: host.chet iobroker Installing iobroker.eusec@0.8.5... (System call)
2022-03-06 15:55:38.040 - info: host.chet iobroker
2022-03-06 15:55:38.044 - info: host.chet iobroker added 40 packages in 33s53 packages are looking for funding run `npm fund` for details
2022-03-06 15:55:38.116 - info: host.chet iobroker host.chet install adapter eusec
2022-03-06 15:55:38.171 - info: host.chet iobroker upload [14] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/eusec.png eusec.png image/png
2022-03-06 15:55:38.250 - info: host.chet iobroker upload [13] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/i18n/de/translations.json i18n/de/translations.json application/json
2022-03-06 15:55:38.262 - info: host.chet iobroker upload [12] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/i18n/en/translations.json i18n/en/translations.json application/json
2022-03-06 15:55:44.483 - info: host.chet iobroker upload [11] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/i18n/es/translations.json i18n/es/translations.json application/json
2022-03-06 15:55:44.512 - info: host.chet iobroker upload [10] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
2022-03-06 15:55:44.535 - info: host.chet iobroker upload [9] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/i18n/it/translations.json i18n/it/translations.json application/json
2022-03-06 15:55:44.546 - info: host.chet iobroker upload [8] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
2022-03-06 15:55:44.559 - info: host.chet iobroker upload [7] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
2022-03-06 15:55:44.572 - info: host.chet iobroker upload [6] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
2022-03-06 15:55:44.589 - info: host.chet iobroker upload [5] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
2022-03-06 15:55:45.816 - info: host.chet iobroker upload [4] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
2022-03-06 15:55:45.832 - info: host.chet iobroker upload [3] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/index_m.html index_m.html text/html
2022-03-06 15:55:45.845 - info: host.chet iobroker upload [2] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/jsonConfig.json jsonConfig.json application/json
2022-03-06 15:55:45.856 - info: host.chet iobroker upload [1] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/style.css style.css text/css
2022-03-06 15:55:45.867 - info: host.chet iobroker upload [0] eusec.admin /opt/iobroker/node_modules/iobroker.eusec/admin/words.js words.js application/javascript
2022-03-06 15:55:46.002 - info: host.chet iobroker host.chet object system.adapter.eusec created/updated
2022-03-06 15:55:46.014 - warn: web.0 (77575) Terminated (-100): Without reason
2022-03-06 15:55:46.086 - info: host.chet iobroker host.chet create instance eusec
2022-03-06 15:55:46.099 - info: host.chet iobroker host.chet object system.adapter.eusec.0.alive created
2022-03-06 15:55:46.114 - info: host.chet iobroker host.chet object system.adapter.eusec.0.connected created
2022-03-06 15:55:46.131 - info: host.chet iobroker host.chet object system.adapter.eusec.0.compactMode created
2022-03-06 15:55:46.145 - info: host.chet iobroker host.chet object system.adapter.eusec.0.cpu created
2022-03-06 15:55:46.160 - info: host.chet iobroker host.chet object system.adapter.eusec.0.cputime created
2022-03-06 15:55:46.176 - info: host.chet iobroker host.chet object system.adapter.eusec.0.memHeapUsed created
2022-03-06 15:55:46.190 - info: host.chet iobroker host.chet object system.adapter.eusec.0.memHeapTotal created
2022-03-06 15:55:46.204 - info: host.chet iobroker host.chet object system.adapter.eusec.0.memRss created
2022-03-06 15:55:46.221 - info: host.chet iobroker host.chet object system.adapter.eusec.0.uptime created
2022-03-06 15:55:46.235 - info: host.chet iobroker host.chet object system.adapter.eusec.0.inputCount created
2022-03-06 15:55:46.249 - info: host.chet iobroker host.chet object system.adapter.eusec.0.outputCount created
2022-03-06 15:55:46.263 - info: host.chet iobroker host.chet object system.adapter.eusec.0.eventLoopLag created
2022-03-06 15:55:46.275 - info: host.chet iobroker host.chet object system.adapter.eusec.0.sigKill created
2022-03-06 15:55:46.288 - info: host.chet iobroker host.chet object system.adapter.eusec.0.logLevel created
2022-03-06 15:55:46.299 - info: host.chet iobroker host.chet object eusec.0 created
2022-03-06 15:55:46.360 - info: host.chet iobroker host.chet object system.adapter.eusec.0 created
2022-03-06 15:55:46.651 - info: host.chet instance system.adapter.web.0 terminated with code 156 (START_IMMEDIATELY_AFTER_STOP)
2022-03-06 15:55:46.651 - info: host.chet Restart adapter system.adapter.web.0 because enabled
2022-03-06 15:55:47.393 - info: host.chet iobroker exit 0
2022-03-06 15:55:47.749 - info: host.chet instance system.adapter.web.0 started with pid 84925
2022-03-06 15:55:49.421 - info: host.chet instance system.adapter.eusec.0 started with pid 84936
2022-03-06 15:55:57.123 - info: eusec.0 (84936) starting. Version 0.8.5 in /opt/iobroker/node_modules/iobroker.eusec, node: v17.6.0, js-controller: 4.0.19
2022-03-06 15:55:59.175 - error: eusec.0 (84936) Response code not ok [{"code":10000,"msg":"Anfrage fehlgeschlagen."}]
2022-03-06 15:55:59.176 - error: eusec.0 (84936) Token error
@thomas-braun update den gerade....mal sehen
@marko1974 sagte in [Neuer Adapter] EuSec:
update den gerade....mal sehen
Den Adapter oder die veraltete nodeJS-Installation?
@thomas-braun die veraltete nodeJS
Mit
sudo ln -s /usr/bin/node /usr/bin/nodejs
which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
dann schauen ob das alles senkrecht im System hängt.
@thomas-braun said in [Neuer Adapter] EuSec:
which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
[16:16:01] openhabian@openhab:/opt/iobroker$ sudo ln -s /usr/bin/node /usr/bin/n odejs
ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
[16:17:07] openhabian@openhab:/opt/iobroker$ which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo ap t update && apt policy nodejs
/usr/bin/nodejs
/usr/bin/node
/usr/bin/npm
v14.19.0
v14.19.0
6.14.16
openhabian
/opt/iobroker
[16:15:56] openhabian@openhab:/opt/iobroker$ iobroker start
[16:16:01] openhabian@openhab:/opt/iobroker$ sudo ln -s /usr/bin/node /usr/bin/n odejs
ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
[16:17:07] openhabian@openhab:/opt/iobroker$ which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo ap t update && apt policy nodejs
/usr/bin/nodejs
/usr/bin/node
/usr/bin/npm
v14.19.0
v14.19.0
6.14.16
openhabian
/opt/iobroker
OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
OK:2 http://phoscon.de/apt/deconz buster-beta InRelease
OK:3 http://archive.raspberrypi.org/debian buster InRelease
OK:4 https://deb.nodesource.com/node_14.x buster InRelease
OK:5 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Aktualisierung für 26 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
nodejs:
Installiert: 14.19.0-deb-1nodesource1
Installationskandidat: 14.19.0-deb-1nodesource1
Versionstabelle:
*** 14.19.0-deb-1nodesource1 500
500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
100 /var/lib/dpkg/status
10.24.0~dfsg-1~deb10u1 500
500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
[16:17:59] openhabian@openhab:/opt/iobroker$ [16:15:56] openhabian@openhab:/opt/ iobroker$ iobroker start
-bash: [16:15:56]: Kommando nicht gefunden.
[16:18:00] openhabian@openhab:/opt/iobroker$ [16:16:01] openhabian@openhab:/opt/ iobroker$ sudo ln -s /usr/bin/node /usr/bin/nodejs
-bash: [16:16:01]: Kommando nicht gefunden.
[16:18:00] openhabian@openhab:/opt/iobroker$ ln: die symbolische Verknüpfung '/u sr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
-bash: ln:: Kommando nicht gefunden.
[16:18:00] openhabian@openhab:/opt/iobroker$ [16:17:07] openhabian@openhab:/opt/ iobroker$ which nodejs node npm && nodejs -v && node -v && npm -v && whoami && p wd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
-bash: [16:17:07]: Kommando nicht gefunden.
[16:18:00] openhabian@openhab:/opt/iobroker$ /usr/bin/nodejs
Welcome to Node.js v14.19.0.
Type ".help" for more information.
> /usr/bin/node
/usr/bin/node
^
Uncaught SyntaxError: Invalid regular expression flags
> /usr/bin/npm
/usr/bin/npm
^
Uncaught SyntaxError: Invalid regular expression flags
> v14.19.0
v14.19.0
^^^
Uncaught SyntaxError: Unexpected number
> v14.19.0
v14.19.0
^^^
Uncaught SyntaxError: Unexpected number
> 6.14.16
6.14.16
^^^
Uncaught SyntaxError: Unexpected number
> openhabian
Uncaught ReferenceError: openhabian is not defined
> /opt/iobroker
/opt/iobroker
^
Uncaught SyntaxError: Invalid regular expression flags
>
@marko1974 sagte in [Neuer Adapter] EuSec:
Okay, soweit schaut das sauber aus.
Die
Aktualisierung für 26 Pakete verfügbar.
würde ich aber auch noch eintüten.
@thomas-braun also bisher läuft da nichts sauber....immer noch das gleiche wie vorher
eintüten?
sudo apt update
sudo apt full-upgrade
sudo reboot
@thomas-braun said in [Neuer Adapter] EuSec:
sudo apt full-upgrade
achso ja...das hatte ich soben gemacht...nur noch mal eben rebooten
@thomas-braun ursprünglich wollte ich eigentlich nur, wenn ein bild erfasst wird in einer meiner eufy 2c (keine cloud) dieses an telegram schicken. meinentwegen auch ein video. Ich hatte das schonmal probiert mit nem blockly ....klappte aber leider nicht, da keiin http link versendet wurde und somit auch keine vorschau bei telegram angezeigt wurde. Hoffe das geht mittlerweile überhaupt
Ich kenne den Adapter nicht. Keine Ahnung was der kann oder nicht.
@thomas-braun aber wir sind doch hier in dem thread des adapters
Und? Für eine Installation eines Adapters muss man ja nicht wissen was der macht.
@thomas-braun hehe...ja das stimmt schon
zumindest bin ich hier damit dann aber nicht falsch
Ist der ioBroker jetzt zur Ruhe gekommen? Rebuilds durchgeführt?
Ein (Neu)-Start des Adapters schaut jetzt wie aus?
@thomas-braun es rödelt noch...melde mich sofort wenn er fertig ist