Raspberry Pi Instalation
-
-
Ich installiere immer nach der Anleitung von SmartApfel, inkl. dem dort verlinkten Betriebssystem.
Ja okay Hat aber ja Vor- und Nachtteile in der Anleitung wird Sie ja Global Installiert. Als SU und bei einer Homebridge ist ja dann schon mit 100 (99)Geräte Schluss. Daher mache ich es meistens mit Verschieden Nutzer dann kann man auch eher mal mit einen Test-User Rumspielen und das Aktive System sind gleich wieder abschiessen
Da hast Du natürlich recht. Aber mit den 100 Geräten komme ich ganz gut hin und sie läuft so stabil das mit mehreren Nutzern ist mir zuviel Gefummel. Ich hab immer ein backup der SD von daher...
naja ja für die "normalen" Nutzer mag das stimmen aber da ich es auch in das KNX-System integriert habe. Merkt mann sehr schnell die Grenzen. Und backup bzw image macht der Pi Jede Nacht auf die NAS des ist kein Problem.
Hey habe folgendes Problem. Wollte mein Pi mal ohne App aufsetzen und habe alles nach der Anleitung von SmartApfel gemacht: Nur wenn ich ein Plugin instalieren will,dann bekomme ich diese Fehlermeldung. Hat jemand eine Idee???
pi@raspberrypi:~ $ npm install -g homebridge-people
npm ERR! tar.unpack untar error /home/pi/.npm/homebridge-people/0.5.0/package.tg z
npm ERR! Linux 4.4.38-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "homebri dge-people"
npm ERR! node v4.6.0
npm ERR! npm v2.15.9
npm ERR! path /usr/local/lib/node_modules/homebridge-people
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ho mebridge-people'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_module s/homebridge-people']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/homebridge-people',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/homebridge-people',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writ er.js:35:25',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:5 3',
npm ERR! 'FSReqWrap.oncomplete (fs.js:82:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.logHast du das als root bzw sudo gemacht?
Scheint als ob du es als pi nur gemacht hast. "npm ERR! Please try running this command again as root/Administrator."
Schreib vor deinem Befehl mal "sudo"
Sudo habe ich mit einem anderen Plugin probiert, geht auch nicht .
Hallo,
Du Hast hoffentlich bei den vorhergehenden Befehlen auch "sudo" benutzt.
z.B.:
Codesudo npm install -g --unsafe-perm homebridge sonst haben diese programme schon keine Rechte.<img src="http://forum.smartapfel.de/images/smilies/emojione/263a.png" alt=":)" class="smiley" srcset="http://forum.smartapfel.de/images/smilies/emojione/[email protected] 2x" id="wscSmiley_0_0" height="23">
ich habe alles nach Anleitung von hier gemacht. Heute konnte ich komischer weise mit sudo alle Plugins ins instalieren. Nur wenn ich meine alte Config benutze kommt wenn ich Homebridge starte diese Fehlermeldung.Kann ich denn meine alte komplett übernehmen? Auch mit Bridge Unername und alter Pin??
pi@raspberrypi:~ $ homebridge
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libd ns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not su pported (or only supported partially) in the Apple Bonjour compatibility layer o f Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libd ns_sd&e=node&f=DNSServiceRegister>
[2/11/2017, 10:39:58 AM] Loaded plugin: homebridge-harmonyhub
[2/11/2017, 10:39:58 AM] Registering platform 'homebridge-harmonyhub.HarmonyHub'
[2/11/2017, 10:39:58 AM] ---
[2/11/2017, 10:39:59 AM] Loaded plugin: homebridge-people
[2/11/2017, 10:39:59 AM] Registering platform 'homebridge-people.People'
[2/11/2017, 10:39:59 AM] Registering accessory 'homebridge-people.PeopleAccessor y'
[2/11/2017, 10:39:59 AM] Registering accessory 'homebridge-people.PeopleAllAcces sory'
[2/11/2017, 10:39:59 AM] ---
[2/11/2017, 10:40:01 AM] Loaded plugin: homebridge-sonos
[2/11/2017, 10:40:01 AM] Registering accessory 'homebridge-sonos.Sonos'
[2/11/2017, 10:40:01 AM] ---
[2/11/2017, 10:40:01 AM] Loaded config.json with 3 accessories and 2 platforms.
[2/11/2017, 10:40:01 AM] ---
[2/11/2017, 10:40:01 AM] Loading 2 platforms...
[2/11/2017, 10:40:01 AM] Initializing People platform...
[2/11/2017, 10:40:01 AM] Initializing platform accessory 'Maik'...
[2/11/2017, 10:40:01 AM] Initializing platform accessory 'Aniko'...
[2/11/2017, 10:40:01 AM] Initializing platform accessory 'Anyone'...
[2/11/2017, 10:40:01 AM] Initializing platform accessory 'No One'...
[2/11/2017, 10:40:01 AM] WebHook: Started server on port '51828'.
[2/11/2017, 10:40:01 AM] [Harmony Hub] Initializing HarmonyHub platform...
[2/11/2017, 10:40:01 AM] [Harmony Hub] Searching for Logitech Harmony remote hub s...
[2/11/2017, 10:40:01 AM] Loading 3 accessories...
[2/11/2017, 10:40:01 AM] [Lautsprecher Bad] Initializing Sonos accessory...
[2/11/2017, 10:40:01 AM] [Lautsprecher Küche] Initializing Sonos accessory...
/usr/local/lib/node_modules/homebridge/lib/api.js:60
throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");
^
Error: The requested accessory 'Computer' was not registered by any plugin.
at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:60:13)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/serve r.js:254:42)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:81:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge :17:22)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)Ich bekomm die Meldung wenn ich WOL instal.
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.6.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge-wol/node_modules/net-ping/node_modules/raw-socket/.node-gyp"
make: Entering directory '/usr/local/lib/node_modules/homebridge-wol/node_modules/net-ping/node_modules/raw-socket/build'
CXX(target) Release/obj.target/raw/src/raw.o
SOLINK_MODULE(target) Release/obj.target/raw.node
COPY Release/raw.node
make: Leaving directory '/usr/local/lib/node_modules/homebridge-wol/node_modules/net-ping/node_modules/raw-socket/build'
[email protected] /usr/local/lib/node_modules/homebridge-wol
??? [email protected] ([email protected])
pi@raspberrypi:~ $Und diese wenn ich jetzt Homebridge ausführe.
Error: Operation not permitted
at Error (native)
at new Socket (/usr/local/lib/node_modules/homebridge-wol/node_modules/net-ping/node_modules/raw-socket/index.js:47:14)
at Object.exports.createSocket (/usr/local/lib/node_modules/homebridge-wol/node_modules/net-ping/node_modules/raw-socket/index.js:202:9)
at Session.getSocket (/usr/local/lib/node_modules/homebridge-wol/node_modules/net-ping/index.js:147:20)
at new Session (/usr/local/lib/node_modules/homebridge-wol/node_modules/net-ping/index.js:101:7)
at Object.exports.createSession (/usr/local/lib/node_modules/homebridge-wol/node_modules/net-ping/index.js:545:9)
at new Pinger (/usr/local/lib/node_modules/homebridge-wol/index.js:102:24)
at new Computer (/usr/local/lib/node_modules/homebridge-wol/index.js:23:16)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:265:29)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:81:38)Du hast in der Config noch Plugins konfiguriert, die aber nicht installiert sind.
Danke Andi, ist mir dann auch aufgefallen.Habe jetzt das 3 mal neu aufgesetzt,aber wenn ich die Homebride starte bekomme ich diese Fehlermeldung und finde die Homebridge auch nicht in der App:
Error: listen EADDRINUSE :::51826
at Object.exports._errnoException (util.js:907:11)
at exports._exceptionWithHostPort (util.js:930:20)
at Server._listen2 (net.js:1250:14)
at listen (net.js:1286:10)
at Server.listen (net.js:1382:5)
at EventedHTTPServer.listen (/usr/lib/node_modules/homebridge/node_modules/h ap-nodejs/lib/util/eventedhttp.js:60:19)
at HAPServer.listen (/usr/lib/node_modules/homebridge/node_modules/hap-nodej s/lib/HAPServer.js:158:20)
at Bridge.Accessory.publish (/usr/lib/node_modules/homebridge/node_modules/h ap-nodejs/lib/Accessory.js:496:16)
at Server._publish (/usr/lib/node_modules/homebridge/lib/server.js:114:16)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:91:10)Mit welchem Befehl startest du Homebridge?
Maik,
fang mal mi ner leeren Config.json an und dann Plugin für Plugin installieren und Config erstellen.
Du kannst ja dann die einzelnen Zeilen aus deiner alten Config in die neue kopieren. Aber so wie für mich aussieht, hast du deine alte Config wieder in den Ordner geworfen, ohne dass du die dazugehörigen Plugins installiert hast. Hast du die Config dann überhaupt in den richtigen Ordner kopiert.
Mach es mal wirklich nach der Anleitung von SmartApfel. Da steht nichts von Config in einen Ordner kopieren.
Zuerst testen und dann Plugin für Plugin.
Und lass endlich diese sch.... Homebridge App weg. Von der hast du nichts.
Hey Andi, ich habe jetzt ja das 3 mal aufgesetzt, da ich die App raus haben möchte. Nur meine Homeapp findet die Homebridge nicht.Habe jetzt nur die Config drin von der Seite. Ich starte die Homebridge mit dem Befehl Homebridge.
und wenn ich ein Plugin instaliere dann kommt das hier:
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.7.3"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/homebridge-wol/node_modules/raw-socket/.node-gyp"
make: Entering directory '/usr/lib/node_modules/homebridge-wol/node_modules/raw-socket/build'
CXX(target) Release/obj.target/raw/src/raw.o
SOLINK_MODULE(target) Release/obj.target/raw.node
COPY Release/raw.node
make: Leaving directory '/usr/lib/node_modules/homebridge-wol/node_modules/raw-socket/build'
/usr/lib
? ??? [email protected]
? ??? [email protected]Wie hast du neu aufgesetzt? Hast du die SD komplett gelöscht.
Die erste Zeile in der Meldung sagt, dass du kein sudo vor den installationsbefehl gesetzt hast und zum schluss das sagt mir, dass du die SD nicht platt gemacht hast da in der usr lib noch was drin hängt!
Du kannst nicht einfach über eine bestehende Installation drüber installieren. Das wird nichts.
Und in der Home App wird nichts angezeigt, weil du die Bridge gelöscht hast und sie bei der Neuinstallation, die selbe Mac und Code hat wie das letzte mal und die Home App sie deshalb nicht als neu sondern gelöscht erkennt.
Plattmachen also SD Card formatieren und dann schritt für schritt in der Anleitung!
Wenn die HomeBridge dann nicht in der App gefunden wird, Config öffnen und Mac Adresse letzte Zahl im Wert erhöhen.
Ich habe eine neue Karte verwendet und bereits 3 mal Formatiert und dann das System aufgespielt. Ich habe immer Sudo eingegeben. Wenn ich jetzt die Config ändere für das erte Plugin bdann bekomme ich die Meldung: Was mache ich denn ständig falsch? Habe alles genau nach Anleitung gemacht sogar 3mal. Kann ich denn nicht die alte Config übernehmen?? Habe ich jetzt nicht gemacht aber wäre das nicht möglich?? Ich drehe echt bald durch,wollte doch nur die App raus haben um zu schauen ob es dann stabiler läuft.
[2/11/2017, 2:26:23 PM] Loaded plugin: homebridge-wol
[2/11/2017, 2:26:23 PM] Registering accessory 'homebridge-wol.Computer'
[2/11/2017, 2:26:23 PM] ---
[2/11/2017, 2:26:23 PM] Loaded config.json with 1 accessories and 0 platforms.
[2/11/2017, 2:26:23 PM] ---
[2/11/2017, 2:26:23 PM] Loading 0 platforms...
[2/11/2017, 2:26:23 PM] Loading 1 accessories...
[2/11/2017, 2:26:23 PM] [Wx10] Initializing Computer accessory...
/usr/lib/node_modules/homebridge-wol/node_modules/raw-socket/index.js:47
this.wrap = new raw.SocketWrap (
^
Error: Operation not permitted
at Error (native)
at new Socket (/usr/lib/node_modules/homebridge-wol/node_modules/raw-socket/index.js:47:14)
at Object.exports.createSocket (/usr/lib/node_modules/homebridge-wol/node_modules/raw-socket/index.js:202:9)
at Session.getSocket (/usr/lib/node_modules/homebridge-wol/node_modules/net-ping/index.js:147:20)
at new Session (/usr/lib/node_modules/homebridge-wol/node_modules/net-ping/index.js:101:7)
at Object.exports.createSession (/usr/lib/node_modules/homebridge-wol/node_modules/net-ping/index.js:545:9)
at new Pinger (/usr/lib/node_modules/homebridge-wol/index.js:102:24)
at new Computer (/usr/lib/node_modules/homebridge-wol/index.js:23:16)
at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:265:29)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:81:38)