Hallo zusammen!
Ich bin der Pascal, bin 22 Jahre alt und bin gerade dabei meine Wohnung etwas smarter zu machen 8).
Das ist mein erster Beitrag hier und möchte das Thema nochmal aufrollen, da das bei mir leider nicht funktioniert hat.
Node Version: v8.11.4
NPM Version: 6.4.1
Es scheint, als hätte es jetzt geklappt das Plugin
https://www.npmjs.com/package/homebridge-theater-mode
via
zu installieren.
Wenn ich jedoch das zweite Package
installieren möchte, dann bekomme ich folgenden Fehler:
root@Homebridge:/usr/lib/node_modules# sudo npm install -g node-appletv
> [email protected] preinstall /usr/lib/node_modules/node-appletv/node_modules/sodium
> node install.js --preinstall
Static libsodium was not found at /usr/lib/node_modules/node-appletv/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source.
libtoolize: error: Failed to create 'build-aux'
make: *** [libsodium] Fehler 1
Makefile:61: die Regel für Ziel „libsodium“ scheiterte
/usr/lib/node_modules/node-appletv/node_modules/sodium/install.js:287
throw new Error(cmdLine + ' exited with code ' + code);
^
Error: make libsodium exited with code 2
at ChildProcess.<anonymous> (/usr/lib/node_modules/node-appletv/node_modules/sodium/install.js:287:19)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `node install.js --preinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-09-09T17_27_25_027Z-debug.log
Alles anzeigen
Habe ich ausgeführt, bringt mich aber leider nicht weiter.
€: Ich muss leider bei der Node Version: v8.11.4 bleiben, da ich meine Hue-Brinen und meine Osram-Smartplugs über die Homebridge steuere. Und das homebridge-hue Plugin benötigt v8.11.4.
€2: Der Vorschlag von d3h56r mit
Hat leider auch nicht funktioniert.
Würde mich freuen, wenn ihr mir weiterhelfen könntet.
Lösung für mein Problem gefunden
Nachdem ich heute circa 3h damit verbracht habe, das ganze irgenwie zum Laufen zu bekommen und gefühlt 100 Dependencies installiert habe und mich dann schließlich an euch gewandt habe hat es, wie es der Zufall will, dann noch recht schnell geklappt. Und die Lösung war so einfach, dass ich mich frage warum ich da nicht früher drauf gekommen bin.
Auf der NPM-Seite von node-appletv stand die Lösung eigentlich schon.
As a standalone cli
As a node module
Ich habs dann schließlich als node module installiert. ![]()

Und siehe da. Es hat geklappt.
Muss sagen es ist schon ein tolles Erlebnis wenn die Lichter dementsprechend automatisch gedimmt werden, wenn der AppleTV auf Play geht.
PS: Ihr wisst ja wie das ist wenn man ewig an einer Lösung sitzt und dann nicht mehr weiter weiß. Und plötzlich sieht man den Fehler. Vielleicht hilft es ja dem ein oder anderen auch noch.
Grüße Pascal