Ankündigung

Einklappen
Keine Ankündigung bisher.

Apple - HomeKit - Schnittstelle zur Heimautomation

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • neonightmare
    antwortet
    Hallo

    Habe nun die config.json auf meine Anlage angepasst (geprüft mit JSONLint). Leider startet der homebridge Server nun nicht mehr:

    Code:
    ubuntu@ubuntu-VirtualBox:~/homebridge$ npm run start
    
    > homebridge@0.1.1 start /home/ubuntu/homebridge
    > DEBUG=* node app.js || true
    
    *** 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=libdns_sd&e=node>
    *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in 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=libdns_sd&e=node&f=DNSServiceRegister>
    Starting HomeBridge server...
    _____________________________________________________________________
    IMPORTANT: Homebridge is in the middle of some big changes.
               Read more about it here:
               https://github.com/nfarina/homebridge/wiki/Migration-Guide
    _____________________________________________________________________
    
    Loading 2 platforms...
    [undefined] Initializing YamahaAVR platform...
    [undefined] Getting Yamaha AVR devices.
    [KNX] Initializing KNX platform...
    [KNX] Fetching KNX devices.
    [KNX] parsing acc 0 of 2
    [KNX] push new universal device Werkstatt Licht Wohnen
    [KNX] Accessory constructor called
    [KNX] created Werkstatt Licht Wohnen universal accessory
    [KNX] parsing acc 1 of 2
    [KNX] push new universal device Werkstatt
    [KNX] Accessory constructor called
    [KNX] created Werkstatt universal accessory
    [KNX] returning 2 accessories
    [KNX] Initializing platform accessory 'Werkstatt Licht Wohnen'...
    [KNX] Preparing Services: 1
    [KNX] Preparing Service: 0 of type Lightbulb
    [KNX] Lightbulb on/off characteristic enabled
    [KNX] knx registering BOOLEAN 1/1/2,1/1/2
    [KNX] Issuing read requests on the KNX bus...
    >>> knxd groupsocketlisten starting <<<
    [KNX] Initializing platform accessory 'Werkstatt'...
    [KNX] Preparing Services: 2
    [KNX] Preparing Service: 0 of type Lightbulb
    [KNX] Lightbulb on/off characteristic enabled
    [KNX] knx registering BOOLEAN 1/1/1
    [KNX] Issuing read requests on the KNX bus...
    [KNX] Preparing Service: 1 of type Thermostat
    [KNX] Thermostat CurrentTemperature characteristic enabled
    [KNX] knx registering FLOAT ,1/1/10
    [KNX] Issuing read requests on the KNX bus...
    [KNX] Thermostat TargetTemperature characteristic enabled
    [KNX] knx registering FLOAT 1/1/10
    [KNX] Issuing read requests on the KNX bus...
    [KNX] Thermostat CurrentHeatingCoolingState characteristic enabled
    [KNX] knx registering HVAC ,1/1/10
    [KNX] Issuing read requests on the KNX bus...
    << knxd socket listener already running >>
    Loading 0 accessories...
    (node) warning: possible EventEmitter memory leak detected. 11 data listeners added. Use emitter.setMaxListeners() to increase limit.
    Trace
        at Socket.addListener (events.js:179:15)
        at Socket.Readable.on (_stream_readable.js:671:33)
        at Connection.openTGroup (/home/ubuntu/homebridge/node_modules/eibd/lib/connection.js:142:15)
        at Object.<anonymous> (/home/ubuntu/homebridge/accessories/knxdevice.js:123:20)
        at Socket.emit (events.js:129:20)
        at onwriteError (_stream_writable.js:317:10)
        at onwrite (_stream_writable.js:335:5)
        at WritableState.onwrite (_stream_writable.js:105:5)
        at fireErrorCallbacks (net.js:456:13)
        at Socket._destroy (net.js:467:5)
    
    events.js:0
    (null)
    
    RangeError: Maximum call stack size exceeded
    THX Neo

    Einen Kommentar schreiben:


  • neonightmare
    antwortet
    Guten Morgen Raoul

    Danke für den Tipp, habe das howto in Post #198 korrigiert.
    ubuntu 15.04 - user/password ubuntu/reverse

    Hier der Link zum fertigen Virtualbox-Image.

    -keine Gewährleistung/kein offizieller Support/Feedback im Forum erwünscht-

    Danke an drego für das Hosting
    frohes testen...

    Griits Neo
    Zuletzt geändert von neonightmare; 22.09.2015, 08:18.

    Einen Kommentar schreiben:


  • snowdd
    antwortet
    Zitat von neonightmare Beitrag anzeigen
    Hallo


    HAP-NodeJS installieren:
    --------
    Code:
    git clone [url]https://github.com/KhaosT/HAP-NodeJS[/url]
    cd HAP-NodeJS
    npm rebuild
    npm install
    -----------------------------------------------------------
    Homebridge installieren mittels:
    https://github.com/nfarina/homebridge
    --------
    Code:
    cd ..
    git clone [URL]https://github.com/nfarina/homebridge.git[/URL]
    cd homebridge
    sudo npm install -g node-gyp
    npm install
    --------


    greets Neo
    Hallo Neo,

    den HAP-NodeJS besser nicht vorab installieren, da die Version, auf die homebridge fixiert ist, automatisch mit homebridge installiert wird.
    Das "npm install" im homebridge-Verzeichnis sollte genau dafür sorgen. Alle Abhängigkeiten stehen in der "package.json"-Datei des jew. SW-Paketes.
    So soll vermieden werden, dass eine andere, ggf. inkomaptible, Version von HAP-NodeJS istalliert ist!
    Spart Aufwand bei der Fehlersuche!

    Gruß
    Raoul

    Einen Kommentar schreiben:


  • snowdd
    antwortet
    Zitat von mhoeftx Beitrag anzeigen
    Hallo zusammen,

    benötige mal Eure Hilfe.
    Versuche gerade HAP-NodeJS mithilfe der Anleitung aus Post #117 zu installieren.
    Bis zum Punkt "pi@raspberry2 ~/HAP-NodeJS-KNX $ npm install" klappt das auch alles, danach erhalte ich jedoch folgende Fehlermeldung:
    [...]
    Gruß,

    Mark
    Hallo Mark,
    meinen HAP-NodeJS-KNX gibt es nicht mehr. Ich habe auf die Abstraktionsebene homebridge umgeschwenkt, da diese so eine Art "Module" für verschiedene Plattformen zulässt, so dass man neben KNX auch gleich noch etliche andere Hausautomatisierungen mitbenutzen kann (wenn man will und solche hat).

    Zur Installation gibt es auch schon einige Artikel hier im Forum. Da ich mich in der letzten Zeit auf die iOS9 Anpassungen gestürzt habe, musste ich die Anleitungen anderen überlassen :-)

    Gruß
    Raoul


    Einen Kommentar schreiben:


  • ThorstenGehrig
    antwortet
    Dank Drego hier der Link zu meinem Raspberry (1) Image:
    http://knx.drego.de/downloads/homebridge.img
    Passwort für root/pi ist jeweils homebridge
    Keine Gewährleistung / kein offizieller Support / Feedback - Weiterentwicklung - Verbesserung im Forum erwünscht :-)

    Einen Kommentar schreiben:


  • ThorstenGehrig
    antwortet
    Hi,
    @snowdd: danke für die Links zu den HAP HomeKitTypes.... eine Verlinkung zur Apple-Doku hast du nicht auch zufällig?
    (oder gibts die nur mit MFI zugang? den krieg ich aber auch vermutlich hin...)

    Nur mal so: was müsste man am HAP tun damit die Alarmanlage unterstützt wird? SO wie ich es sehe kann es erstmal EVE noch nicht...
    Davon mal abgesehen:

    Type "Security System"
    Required attributes:
    SecuritySystemCurrentState
    SecuritySystemTargetState

    Die Werte für Current und Target state
    Characteristic.SecuritySystemCurrentState.STAY_ARM = 0;
    Characteristic.SecuritySystemCurrentState.AWAY_ARM = 1;
    Characteristic.SecuritySystemCurrentState.NIGHT_AR M = 2;
    Characteristic.SecuritySystemCurrentState.DISARMED = 3;
    Characteristic.SecuritySystemCurrentState.ALARM_TR IGGERED = 4;
    (wobei zwischen 0/1/2 ist mir der Unterschied nicht ganz klar... alle sind "Scharf" - vielleicht 1=Scharf aber Anwesend/ignorierung der PM, 1=Scharf mit PM, 3=???)

    optional attributes:
    StatusFault (scheint generisch zu sein)
    StatusTampered (scheint generisch zu sein)
    SecuritySystemAlarmType (0 oder 1)
    Name (scheint generisch zu sein)

    Sofern also saubere "API" Dokumentation... was muss man nun tun um diese in die Homebridge einzubinden?

    -- das ganze ist nur eine Übungs-Frage... eine "Alarmanlage" kann ich bei mir zwar Abbilden - muss diese aber nicht unbedingt in Homekit einbinden.

    Gruß
    Thorsten

    Einen Kommentar schreiben:


  • mhoeftx
    antwortet
    Hallo zusammen,

    benötige mal Eure Hilfe.
    Versuche gerade HAP-NodeJS mithilfe der Anleitung aus Post #117 zu installieren.
    Bis zum Punkt "pi@raspberry2 ~/HAP-NodeJS-KNX $ npm install" klappt das auch alles, danach erhalte ich jedoch folgende Fehlermeldung:

    Code:
    pi@raspberrypi ~/HAP-NodeJS-KNX $  npm install
    npm ERR! install Couldn't read dependencies
    npm ERR! Linux 4.1.7+
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
    npm ERR! node v0.12.6
    npm ERR! npm  v2.11.2
    npm ERR! path /home/pi/HAP-NodeJS-KNX/package.json
    npm ERR! code ENOPACKAGEJSON
    npm ERR! errno -2
    
    npm ERR! package.json ENOENT, open '/home/pi/HAP-NodeJS-KNX/package.json'
    npm ERR! package.json This is most likely not a problem with npm itself.
    npm ERR! package.json npm can't find a package.json file in your current directory.
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /home/pi/HAP-NodeJS-KNX/npm-debug.log
    pi@raspberrypi ~/HAP-NodeJS-KNX $
    Kann damit auf die schnelle jemand etwas anfangen?
    Für jeden Hinweis bin ich sehr dankbar.

    Gruß,

    Mark

    Einen Kommentar schreiben:


  • neonightmare
    antwortet
    Hallo

    Hier das Howto zum installieren auf einem Virtualbox-Image:

    Virtualbox- Image by neonightmare 20150921
    -----------------------------------------------------------------------------------
    basierend auf Image von:
    http://virtualboxes.org/images/ubuntu/

    ubuntu 15.04 - user/password ubuntu/reverse
    Netzwerkadapter in Virtualbox als „Bridged"

    Homebridge Ubuntu Howto:
    -----------------------------------------------------------------------------------
    Grundpakete installieren:
    --------
    sudo apt-get update
    sudo apt-get install git-core git libnss-mdns libavahi-compat-libdnssd-dev curl

    -----------------------------------------------------------------------------------
    Node installieren mittels Howto:
    https://www.digitalocean.com/communi...gerer-on-a-vps
    V0.12.6 installieren:
    --------
    curl https://raw.githubusercontent.com/cr...1.1/install.sh | bash
    => Close and reopen your terminal to start using NVM
    source ~/.profile
    nvm install v0.12.6
    nvm use v0.12.6
    which node
    n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local
    -----------------------------------------------------------------------------------
    npm update mittels:
    https://docs.npmjs.com/misc/faq#how-do-i-update-npm
    --------
    npm -v
    npm install npm -g
    npm -v
    -----------------------------------------------------------------------------------
    Homebridge installieren mittels:
    https://github.com/nfarina/homebridge
    --------
    cd ..
    git clone https://github.com/nfarina/homebridge.git
    cd homebridge
    sudo npm install -g node-gyp
    npm install
    -----------------------------------------------------------
    config.js anpasssen
    Testconfig von hier:
    https://github.com/nfarina/homebridg...le-config.json
    -----------------------------------------------------------
    Start des Servers mittels:
    --------
    npm run start
    -----------------------------------------------------------
    EIBD Installieren
    --------
    cd ..
    sudo wget http://michlstechblog.info/blog/down...ll_eibd_usb.sh
    sudo chmod +x ./install_eibd_usb.sh
    sudo ./install_eibd_usb.sh && update-rc.d eibd defaults
    /etc/init.d/eibd stop

    (mit findknxusb usbadresse herausfinden)

    bcuaddrtab usb:1:4:1:0:0
    bcuaddrtab -w 0 usb:1:4
    --------
    eibd starten:
    --------
    sudo /etc/init.d/eibd start

    -----------------------------------------------------------
    aktualisieren der homebridge:
    --------
    cd homebridge
    git pull

    greets Neo
    Zuletzt geändert von neonightmare; 22.09.2015, 08:58.

    Einen Kommentar schreiben:


  • drego
    antwortet
    Hi. Ich kann auch den Download zur Verfügung stellen. Habe ne eigene Serverfarm und habe auch schon andere Raspi Images hier fürs Forum online. Traffic spielt keine Rolle. Bei Interesse kurze PN an mich. Grüße

    Einen Kommentar schreiben:


  • ThorstenGehrig
    antwortet
    Gratuliere. Ich denke an dem Virtualbox image sind noch mehr leute interessiert!
    Kannst du es irgendwo zur verfügung stellen?
    (gerne auch privaten link an mich).
    Einfach vorher die root- und userpasswörter "standardisieren" und sehen das nichts privates drauf ist.... (e.g.homebridge config löschen oder scrambeln).
    Gruß
    Thorsten

    Einen Kommentar schreiben:


  • neonightmare
    antwortet
    Vielen Dank soweit. Konnte mittels dieser Anleitung die nötige node-Version installieren. Nun sieht der Output wie folgt aus:
    Code:
    ubuntu@ubuntu-VirtualBox:~$ which node
    /home/ubuntu/.nvm/versions/v0.12.6/bin/node
    ubuntu@ubuntu-VirtualBox:~$ cd homebridge/
    ubuntu@ubuntu-VirtualBox:~/homebridge$ npm install
    npm WARN engine ad2usb@1.0.3: wanted: {"node":"~0.10.0"} (current: {"node":"0.12.6","npm":"2.11.2"})
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/ed25519.git /home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d: Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d'...
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/ed25519.git /home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d: fatal: unable to connect to github.com:
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/ed25519.git /home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d: github.com[0: 192.30.252.128]: errno=Connection timed out
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae: Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae'...
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae: fatal: unable to connect to github.com:
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-srp.git /home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-node-srp-git-b14235ae: github.com[0: 192.30.252.128]: errno=Connection timed out
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-curve25519.git /home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d: Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d'...
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-curve25519.git /home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d: fatal: unable to connect to github.com:
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/node-curve25519.git /home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-git-750fb09d: github.com[0: 192.30.252.128]: errno=Connection timed out
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/substack/sockjs-client.git /home/ubuntu/.npm/_git-remotes/git-github-com-substack-sockjs-client-git-59d3f72e: Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-substack-sockjs-client-git-59d3f72e'...
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/substack/sockjs-client.git /home/ubuntu/.npm/_git-remotes/git-github-com-substack-sockjs-client-git-59d3f72e: fatal: unable to connect to github.com:
    npm ERR! git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/substack/sockjs-client.git /home/ubuntu/.npm/_git-remotes/git-github-com-substack-sockjs-client-git-59d3f72e: github.com[0: 192.30.252.128]: errno=Connection timed out
    npm ERR! Linux 3.19.0-28-generic
    npm ERR! argv "/home/ubuntu/.nvm/versions/v0.12.6/bin/node" "/home/ubuntu/.nvm/versions/v0.12.6/bin/npm" "install"
    npm ERR! node v0.12.6
    npm ERR! npm v2.11.2
    npm ERR! code 128
    
    npm ERR! Command failed: git clone --template=/home/ubuntu/.npm/_git-remotes/_templates --mirror git://github.com/KhaosT/ed25519.git /home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d
    npm ERR! Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-ed25519-git-d8bdee1d'...
    npm ERR! fatal: unable to connect to github.com:
    npm ERR! github.com[0: 192.30.252.128]: errno=Connection timed out
    npm ERR!
    npm ERR!
    npm ERR!
    npm ERR! If you need help, you may report this error at:
    npm ERR! <https://github.com/npm/npm/issues>
    
    npm ERR! Please include the following file with any support request:
    npm ERR! /home/ubuntu/homebridge/npm-debug.log
    ubuntu@ubuntu-VirtualBox:~/homebridge$ npm run start
    
    > homebridge@0.1.1 start /home/ubuntu/homebridge
    > DEBUG=* node app.js || true
    
    module.js:338
    throw err;
    ^
    Error: Cannot find module 'HAP-NodeJS'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/ubuntu/homebridge/app.js:4:11)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    ubuntu@ubuntu-VirtualBox:~/homebridge$

    [EDIT]

    Habe nun mittels
    Code:
    ubuntu@ubuntu-VirtualBox:~/homebridge$ npm install npm -g
    /home/ubuntu/.nvm/versions/v0.12.6/bin/npm -> /home/ubuntu/.nvm/versions/v0.12.6/lib/node_modules/npm/bin/npm-cli.js
    npm@3.3.3 /home/ubuntu/.nvm/versions/v0.12.6/lib/node_modules/npm
    ubuntu@ubuntu-VirtualBox:~/homebridge$ npm -v
    3.3.3
    ​
    auf V3.3.3 upgedated

    [EDIT2]
    Ein Firewallproblem (nun behoben) verursachte das nicht erreichen des GIT-Servers beim Befehl
    Code:
    ubuntu@ubuntu-VirtualBox:~/homebridge$ npm install
    ​
    nun ist folgender Output relevant:
    Code:
    ubuntu@ubuntu-VirtualBox:~/homebridge$ npm install
    npm WARN install Couldn't install optional dependency: Unsupported
    
    > dtrace-provider@0.5.0 install /home/ubuntu/homebridge/node_modules/dtrace-provider
    > node scripts/install.js
    
    
    > bufferutil@1.2.1 install /home/ubuntu/homebridge/node_modules/bufferutil
    > node-gyp rebuild
    
    make: Entering directory '/home/ubuntu/homebridge/node_modules/bufferutil/build'
      CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
      SOLINK_MODULE(target) Release/obj.target/bufferutil.node
      COPY Release/bufferutil.node
    make: Leaving directory '/home/ubuntu/homebridge/node_modules/bufferutil/build'
    
    > utf-8-validate@1.2.1 install /home/ubuntu/homebridge/node_modules/utf-8-validate
    > node-gyp rebuild
    
    make: Entering directory '/home/ubuntu/homebridge/node_modules/utf-8-validate/build'
      CXX(target) Release/obj.target/validation/src/validation.o
      SOLINK_MODULE(target) Release/obj.target/validation.node
      COPY Release/validation.node
    make: Leaving directory '/home/ubuntu/homebridge/node_modules/utf-8-validate/build'
    
    > bufferutil@1.2.1 install /home/ubuntu/homebridge/node_modules/bufferutil
    > node-gyp rebuild
    
    make: Entering directory '/home/ubuntu/homebridge/node_modules/bufferutil/build'
      CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
      SOLINK_MODULE(target) Release/obj.target/bufferutil.node
      COPY Release/bufferutil.node
    make: Leaving directory '/home/ubuntu/homebridge/node_modules/bufferutil/build'
    
    > dtrace-provider@0.5.0 install /home/ubuntu/homebridge/node_modules/dtrace-provider
    > node scripts/install.js
    
    
    > utf-8-validate@1.2.1 install /home/ubuntu/homebridge/node_modules/utf-8-validate
    > node-gyp rebuild
    
    make: Entering directory '/home/ubuntu/homebridge/node_modules/utf-8-validate/build'
      CXX(target) Release/obj.target/validation/src/validation.o
      SOLINK_MODULE(target) Release/obj.target/validation.node
      COPY Release/validation.node
    make: Leaving directory '/home/ubuntu/homebridge/node_modules/utf-8-validate/build'
    safereturn@0.0.4 node_modules/elkington/node_modules/safereturn -> node_modules/safereturn
    homebridge@0.1.1 /home/ubuntu/homebridge
    ├── elkington@0.1.0  (git://github.com/kevinohara80/elkington.git#80bc9cc77faeee2a8ce22c0c12a2c73023044131)
    ├─┬ harmonyhubjs-client@1.1.5
    │ ├─┬ node-xmpp-client@1.0.0
    │ │ ├─┬ faye-websocket@0.7.3
    │ │ │ └─┬ websocket-driver@0.6.2
    │ │ │   └── websocket-extensions@0.1.1
    │ │ ├─┬ node-xmpp-core@2.0.0
    │ │ │ └─┬ node-stringprep@0.7.2
    │ │ │   ├── bindings@1.2.1
    │ │ │   └── nan@1.8.4
    │ │ └─┬ request@2.55.0
    │ │   └── node-uuid@1.4.3
    │ └─┬ node-xmpp-core@1.0.0
    │   ├─┬ ltx@0.9.1
    │   │ └─┬ node-expat@2.3.10
    │   │   ├── bindings@1.2.1
    │   │   └── nan@2.0.9
    │   └─┬ node-stringprep@0.7.2
    │     ├── bindings@1.2.1
    │     └── nan@1.8.4
    ├─┬ komponist@0.1.0
    │ └─┬ shoe@0.0.4
    │   ├─┬ sockjs@0.3.15
    │   │ ├─┬ faye-websocket@0.9.4
    │   │ │ └─┬ websocket-driver@0.6.2
    │   │ │   └── websocket-extensions@0.1.1
    │   │ └── node-uuid@1.4.3
    │   └── sockjs-client@0.0.0-unreleasable  (git://github.com/substack/sockjs-client.git#40d48d06b4dba884416bf88a051f76ca3c8ffcae)
    ├─┬ lifx-api@1.0.1
    │ └─┬ request@2.62.0
    │   └── node-uuid@1.4.3
    ├─┬ mdns@2.2.10
    │ ├── bindings@1.2.1
    │ └── nan@2.0.9
    ├─┬ node-hue-api@1.1.2
    │ └─┬ request-util@0.1.0
    │   └─┬ request@2.51.0
    │     └── node-uuid@1.4.3
    ├─┬ node-icontrol@0.1.4
    │ └─┬ ws@0.8.0
    │   ├─┬ bufferutil@1.2.1
    │   │ ├── bindings@1.2.1
    │   │ └── nan@2.0.9
    │   └── utf-8-validate@1.2.1
    ├─┬ request@2.49.0
    │ └── node-uuid@1.4.3
    ├─┬ sonos@0.8.0
    │ └─┬ request@2.27.0
    │   └── node-uuid@1.4.3
    ├─┬ teslams@1.0.1
    │ └─┬ mongodb@2.0.43
    │   └─┬ mongodb-core@1.2.12
    │     └─┬ kerberos@0.0.14
    │       └── nan@2.0.9
    ├── unofficial-nest-api@0.1.4  (git+https://github.com/hachidorii/unofficial_nodejs_nest.git#d8d48edc952b049ff6320ef99afa7b2f04cdee98)
    ├─┬ wemo@0.2.1
    │ ├─┬ node-ssdp@2.5.1
    │ │ └─┬ bunyan@1.4.0
    │ │   └─┬ dtrace-provider@0.5.0
    │ │     └── nan@1.8.4
    │ └─┬ request@2.62.0
    │   └── node-uuid@1.4.3
    └─┬ yamaha-nodejs@0.4.3
      └─┬ request@2.40.0
        └── node-uuid@1.4.3
    
    ubuntu@ubuntu-VirtualBox:~/homebridge$ npm run start
    
    > homebridge@0.1.1 start /home/ubuntu/homebridge
    > DEBUG=* node app.js || true
    
    module.js:338
        throw err;
              ^
    Error: Cannot find module 'HAP-NodeJS'
        at Function.Module._resolveFilename (module.js:336:15)
        at Function.Module._load (module.js:278:25)
        at Module.require (module.js:365:17)
        at require (module.js:384:17)
        at Object.<anonymous> (/home/ubuntu/homebridge/app.js:4:11)
        at Module._compile (module.js:460:26)
        at Object.Module._extensions..js (module.js:478:10)
        at Module.load (module.js:355:32)
        at Function.Module._load (module.js:310:12)
        at Function.Module.runMain (module.js:501:10)
    ​
    [EDIT3]

    Ein
    Code:
    ubuntu@ubuntu-VirtualBox:~/homebridge$ node-gyp -v
    v3.0.3
    ubuntu@ubuntu-VirtualBox:~/homebridge$ sudo npm install -g node-gyp
    /usr/bin/node-gyp -> /usr/lib/node_modules/node-gyp/bin/node-gyp.js
    node-gyp@3.0.3 /usr/lib/node_modules/node-gyp
    ├── graceful-fs@4.1.2
    ├── semver@5.0.3
    ├── osenv@0.1.3 (os-tmpdir@1.0.1, os-homedir@1.0.1)
    ├── fstream@1.0.8 (inherits@2.0.1)
    ├── nopt@3.0.4 (abbrev@1.0.7)
    ├── minimatch@1.0.0 (sigmund@1.0.1, lru-cache@2.7.0)
    ├── mkdirp@0.5.1 (minimist@0.0.8)
    ├── tar@1.0.3 (inherits@2.0.1, block-stream@0.0.8)
    ├── which@1.1.2 (is-absolute@0.1.7)
    ├── path-array@1.0.0 (array-index@0.1.1)
    ├── glob@4.5.3 (inherits@2.0.1, once@1.3.2, inflight@1.0.4, minimatch@2.0.10)
    ├── rimraf@2.4.3 (glob@5.0.14)
    ├── npmlog@1.2.1 (ansi@0.3.0, are-we-there-yet@1.0.4, gauge@1.2.2)
    └── request@2.63.0 (aws-sign2@0.5.0, forever-agent@0.6.1, stringstream@0.0.4, caseless@0.11.0, tunnel-agent@0.4.1, oauth-sign@0.8.0, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, node-uuid@1.4.3, qs@5.1.0, combined-stream@1.0.5, form-data@1.0.0-rc3, tough-cookie@2.0.0, mime-types@2.1.7, http-signature@0.11.0, bl@1.0.0, hawk@3.1.0, har-validator@1.8.0)
    ​
    hat das Problem gelöst!!

    Nun kann ich zumindest den Homeserver starten! Werde alles nun nochmals reproduzieren und dokumentieren...
    und dann ran an die Config und good Siri!

    THX Neo
    Zuletzt geändert von neonightmare; 21.09.2015, 15:17.

    Einen Kommentar schreiben:


  • snowdd
    antwortet
    Ich glaube die wesentliche Zeilen sind:

    Code:
    gyp ERR! node -v v0.10.25  
    gyp ERR! node-gyp -v v0.12.2  
    gyp ERR! not ok
    Ich würde auf jeden Fall node 0.12.6 installieren. Node 4.0.0 klappt mit vielen Programmen noch nicht. 0.10 ist wohl ein bisserl alt.

    Einen Kommentar schreiben:


  • neonightmare
    antwortet
    ThorstenGehrig

    Ich versuche nun schon länger vergeblich homebridge auf meinem Ubuntu 15.04 in Virtualbox zu installieren. Irgendwie klappt dies nicht...

    Hier der Output der Installation der Grundpakete:
    Code:
    ubuntu@ubuntu-VirtualBox:~$ nodejs -v
    v0.10.25
    ubuntu@ubuntu-VirtualBox:~$ node -v
    ubuntu@ubuntu-VirtualBox:~$ npm -v
    1.4.21
    ubuntu@ubuntu-VirtualBox:~$
    mit dieser Anleitung habe ich keinen Erfolg:
    https://github.com/nfarina/homebridge

    $ git clone https://github.com/nfarina/homebridge.git $ cd homebridge $ npm install
    Code:
    npm install

    wird ausgeführt mit folgendem Output:
    Code:
    ubuntu@ubuntu-VirtualBox:~/homebridge$ npm install
    The authenticity of host 'github.com (192.30.252.130)' can't be established.
    RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
    -/e you sure you want to continue connecting (yes/no)? |
    npm ERR! git clone git@github.com:kevinohara80/elkington Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-kevinohara80-elkington-d9fb204f'...
    npm ERR! git clone git@github.com:kevinohara80/elkington Warning: Permanently added 'github.com,192.30.252.130' (RSA) to the list of known hosts.
    npm ERR! git clone git@github.com:kevinohara80/elkington Permission denied (publickey).
    npm ERR! git clone git@github.com:kevinohara80/elkington fatal: Could not read from remote repository.
    npm ERR! git clone git@github.com:kevinohara80/elkington
    npm ERR! git clone git@github.com:kevinohara80/elkington Please make sure you have the correct access rights
    npm ERR! git clone git@github.com:kevinohara80/elkington and the repository exists.
    npm ERR! notarget No compatible version found: elkington@'kevinohara80/elkington'
    npm ERR! notarget Valid install targets:
    npm ERR! notarget ["0.0.1-alpha","0.0.1","0.0.2","0.1.0"]
    npm ERR! notarget
    npm ERR! notarget This is most likely not a problem with npm itself.
    npm ERR! notarget In most cases you or one of your dependencies are requesting
    npm ERR! notarget a package version that doesn't exist.
    
    npm ERR! System Linux 3.19.0-28-generic
    npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
    npm ERR! cwd /home/ubuntu/homebridge
    npm ERR! node -v v0.10.25
    npm ERR! npm -v 1.4.21
    npm ERR! code ETARGET
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR!     /home/ubuntu/homebridge/npm-debug.log
    npm ERR! not ok code 0
    ubuntu@ubuntu-VirtualBox:~/homebridge$


    OK, das erste Problem konnte ich beheben -> SSH Schlüssel generiert und zu meinem GIT-Account hinzugefügt.
    https://help.github.com/articles/generating-ssh-keys/

    nun sieht der Output wie folgt aus:
    Code:
    ubuntu@ubuntu-VirtualBox:~/homebridge$ npm install
    npm WARN optional dep failed, continuing fsevents@0.3.8
     
    > mdns@2.2.10 install /home/ubuntu/homebridge/node_modules/mdns
    > node-gyp rebuild
    
    gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: `gyp` failed with exit code: 1
    gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
    gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
    gyp ERR! System Linux 3.19.0-28-generic
    gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
    gyp ERR! cwd /home/ubuntu/homebridge/node_modules/mdns
    gyp ERR! node -v v0.10.25
    gyp ERR! node-gyp -v v0.12.2
    gyp ERR! not ok
    npm WARN This failure might be due to the use of legacy binary "node"
    npm WARN For further explanations, please read
    /usr/share/doc/nodejs/README.Debian
     
    npm ERR! mdns@2.2.10 install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the mdns@2.2.10 install script.
    npm ERR! This is most likely a problem with the mdns package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     node-gyp rebuild
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls mdns
    npm ERR! There is likely additional logging output above.
    
    npm ERR! System Linux 3.19.0-28-generic
    npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
    npm ERR! cwd /home/ubuntu/homebridge
    npm ERR! node -v v0.10.25
    npm ERR! npm -v 1.4.21
    npm ERR! code ELIFECYCLE
    |
    > bufferutil@1.2.1 install /home/ubuntu/homebridge/node_modules/node-icontrol/node_modules/ws/node_modules/bufferutil
    > node-gyp rebuild
    
    gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: `gyp` failed with exit code: 1
    gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
    gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
    gyp ERR! System Linux 3.19.0-28-generic
    gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
    gyp ERR! cwd /home/ubuntu/homebridge/node_modules/node-icontrol/node_modules/ws/node_modules/bufferutil
    gyp ERR! node -v v0.10.25
    gyp ERR! node-gyp -v v0.12.2
    gyp ERR! not ok
    npm WARN This failure might be due to the use of legacy binary "node"
    npm WARN For further explanations, please read
    /usr/share/doc/nodejs/README.Debian
     
    
    > utf-8-validate@1.2.1 install /home/ubuntu/homebridge/node_modules/node-icontrol/node_modules/ws/node_modules/utf-8-validate
    > node-gyp rebuild
    
    gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: `gyp` failed with exit code: 1
    gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
    gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
    gyp ERR! System Linux 3.19.0-28-generic
    gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
    gyp ERR! cwd /home/ubuntu/homebridge/node_modules/node-icontrol/node_modules/ws/node_modules/utf-8-validate
    gyp ERR! node -v v0.10.25
    gyp ERR! node-gyp -v v0.12.2
    gyp ERR! not ok
    npm WARN optional dep failed, continuing bufferutil@1.2.1
    npm WARN This failure might be due to the use of legacy binary "node"
    npm WARN For further explanations, please read
    /usr/share/doc/nodejs/README.Debian
     
    npm WARN optional dep failed, continuing utf-8-validate@1.2.1
    npm WARN engine hawk@3.1.0: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.25","npm":"1.4.21"})
    npm WARN engine hawk@3.1.0: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.25","npm":"1.4.21"})
    
    > node-stringprep@0.6.2 install /home/ubuntu/homebridge/node_modules/harmonyhubjs-client/node_modules/node-stringprep
    > node-gyp rebuild
    
    gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: `gyp` failed with exit code: 1
    gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
    gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
    gyp ERR! System Linux 3.19.0-28-generic
    gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
    gyp ERR! cwd /home/ubuntu/homebridge/node_modules/harmonyhubjs-client/node_modules/node-stringprep
    gyp ERR! node -v v0.10.25
    gyp ERR! node-gyp -v v0.12.2
    gyp ERR! not ok
    npm WARN This failure might be due to the use of legacy binary "node"
    npm WARN For further explanations, please read
    /usr/share/doc/nodejs/README.Debian
     
    
    > node-stringprep@0.7.2 install /home/ubuntu/homebridge/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/node_modules/node-stringprep
    > node-gyp rebuild
    
    gyp ERR! UNCAUGHT EXCEPTION
    gyp ERR! stack Error: ENOENT, no such file or directory
    gyp ERR! stack     at process.cwd (/usr/lib/nodejs/graceful-fs/polyfills.js:8:19)
    gyp ERR! stack     at Object.exports.resolve (path.js:309:52)
    gyp ERR! stack     at configure (/usr/share/node-gyp/lib/configure.js:26:23)
    gyp ERR! stack     at Object.self.commands.(anonymous function) [as configure] (/usr/share/node-gyp/lib/node-gyp.js:66:37)
    gyp ERR! stack     at run (/usr/share/node-gyp/bin/node-gyp.js:72:30)
    gyp ERR! stack     at process._tickCallback (node.js:415:13)
    gyp ERR! System Linux 3.19.0-28-generic
    gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
    
    /usr/lib/nodejs/graceful-fs/polyfills.js:8
        cwd = origCwd.call(process)
                      ^
    Error: ENOENT, no such file or directory
        at process.cwd (/usr/lib/nodejs/graceful-fs/polyfills.js:8:19)
        at errorMessage (/usr/share/node-gyp/bin/node-gyp.js:119:28)
        at issueMessage (/usr/share/node-gyp/bin/node-gyp.js:125:3)
        at process.<anonymous> (/usr/share/node-gyp/bin/node-gyp.js:109:3)
        at process.EventEmitter.emit (events.js:95:17)
        at process._fatalException (node.js:272:26)
    npm WARN This failure might be due to the use of legacy binary "node"
    npm WARN For further explanations, please read
    /usr/share/doc/nodejs/README.Debian
     
    
    > node-stringprep@0.7.2 install /home/ubuntu/homebridge/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/node_modules/node-xmpp-core/node_modules/node-stringprep
    > node-gyp rebuild
    
    gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: `gyp` failed with exit code: 1
    gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
    gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
    gyp ERR! System Linux 3.19.0-28-generic
    gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
    gyp ERR! cwd /home/ubuntu/homebridge/node_modules/harmonyhubjs-client/node_modules/node-xmpp-client/node_modules/node-xmpp-core/node_modules/node-stringprep
    gyp ERR! node -v v0.10.25
    gyp ERR! node-gyp -v v0.12.2
    gyp ERR! not ok
    npm WARN This failure might be due to the use of legacy binary "node"
    npm WARN For further explanations, please read
    /usr/share/doc/nodejs/README.Debian
     
    npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.25","npm":"1.4.21"})
    npm WARN engine hoek@2.16.2: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.25","npm":"1.4.21"})
    npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.25","npm":"1.4.21"})
    npm WARN engine hoek@2.16.2: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.25","npm":"1.4.21"})
    npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.25","npm":"1.4.21"})
    npm WARN engine hoek@2.16.2: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.25","npm":"1.4.21"})
    
    > dtrace-provider@0.5.0 install /home/ubuntu/homebridge/node_modules/wemo/node_modules/node-ssdp/node_modules/bunyan/node_modules/dtrace-provider
    > node scripts/install.js
    
    npm WARN This failure might be due to the use of legacy binary "node"
    npm WARN For further explanations, please read
    /usr/share/doc/nodejs/README.Debian
     
    npm WARN optional dep failed, continuing dtrace-provider@0.5.0
    
    > kerberos@0.0.14 install /home/ubuntu/homebridge/node_modules/teslams/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
    > (node-gyp rebuild) || (exit 0)
    
    gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: `gyp` failed with exit code: 1
    gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
    gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
    gyp ERR! System Linux 3.19.0-28-generic
    gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
    gyp ERR! cwd /home/ubuntu/homebridge/node_modules/teslams/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
    gyp ERR! node -v v0.10.25
    gyp ERR! node-gyp -v v0.12.2
    gyp ERR! not ok
    
    > iconv@2.1.10 install /home/ubuntu/homebridge/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/node_modules/ltx/node_modules/node-expat/node_modules/iconv
    > node-gyp rebuild
    
    gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: `gyp` failed with exit code: 1
    gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:344:16)
    gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
    gyp ERR! System Linux 3.19.0-28-generic
    gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
    gyp ERR! cwd /home/ubuntu/homebridge/node_modules/harmonyhubjs-client/node_modules/node-xmpp-core/node_modules/ltx/node_modules/node-expat/node_modules/iconv
    gyp ERR! node -v v0.10.25
    gyp ERR! node-gyp -v v0.12.2
    gyp ERR! not ok
    npm WARN This failure might be due to the use of legacy binary "node"
    npm WARN For further explanations, please read
    /usr/share/doc/nodejs/README.Debian
     
    
    npm ERR! git clone git://github.com/KhaosT/ed25519 Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-ed25519-f1e5441c'...
    npm ERR! git clone git://github.com/KhaosT/ed25519 fatal: unable to connect to github.com:
    npm ERR! git clone git://github.com/KhaosT/ed25519 github.com[0: 192.30.252.130]: errno=Connection timed out
    npm ERR! git clone git://github.com/KhaosT/node-curve25519 Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-node-curve25519-1cfd9812'...
    npm ERR! git clone git://github.com/KhaosT/node-curve25519 fatal: unable to connect to github.com:
    npm ERR! git clone git://github.com/KhaosT/node-curve25519 github.com[0: 192.30.252.130]: errno=Connection timed out
    npm ERR! git clone git://github.com/KhaosT/node-srp Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-KhaosT-node-srp-751af2a5'...
    npm ERR! git clone git://github.com/KhaosT/node-srp fatal: unable to connect to github.com:
    npm ERR! git clone git://github.com/KhaosT/node-srp github.com[0: 192.30.252.130]: errno=Connection timed out
    npm ERR! git clone git://github.com/substack/sockjs-client.git Cloning into bare repository '/home/ubuntu/.npm/_git-remotes/git-github-com-substack-sockjs-client-git-b6070fc3'...
    npm ERR! git clone git://github.com/substack/sockjs-client.git fatal: unable to connect to github.com:
    npm ERR! git clone git://github.com/substack/sockjs-client.git github.com[0: 192.30.252.128]: errno=Connection timed out
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR!     /home/ubuntu/homebridge/npm-debug.log
    npm ERR! not ok code 0
    ubuntu@ubuntu-VirtualBox:~/homebridge$
    ​
    Ich mache da was grundsätzlich falsch...
    THX für die Starthilfe...
    Neo
    Zuletzt geändert von neonightmare; 21.09.2015, 10:27.

    Einen Kommentar schreiben:


  • snowdd
    antwortet
    Zitat von ThorstenGehrig Beitrag anzeigen
    a) Für Rollläden muss es doch neben den %-Ansteuerungen auch ein "hoch/runter" kommando geben?
    Das Position State wird von EVE ja so ähnlich übersetzt - nur read bringt mich da nicht weiter...
    Hallo Thorsten!
    Nein das ist nicht vorgesehen, siehe meinen Link aus meinem vorgehenden Post
    Zitat von ThorstenGehrig Beitrag anzeigen
    b) Wenn ich ein neues KNX Device hinzufügen - findet ed EVE ja nicht ohne das ich alles lösche und neu hinzufüge.
    Eine mühsamme Zuordnung zu den Räumen muss dann jedesmal wiederholt werden... wie machts du das?
    Solange Du neue Geräte in der config.json hinzufügst, sollten die beim Neustarten des homebridge Servers automatisch in EVE auftauchen. Blöd wird es beim basteln, wenn das neue Gerät nicht "compliant" ist, dann sperrt HomeKit die ganze Bridge und man muss in der config.json die MAC-Adresse (die "username" heißt) weiterzählen, also aus der letzten 30 eine 31 machen etc.
    Die Geräte, solange Du sie in der "platforms" Section der Datei aufzählst, müssen ja nicht einzeln gebunden (paired) werden.

    Gruß
    Raoul


    Einen Kommentar schreiben:


  • snowdd
    antwortet
    Zitat von ThorstenGehrig Beitrag anzeigen
    Frage zu den Jallousien/Rollladen - es gibt ja folgende werte:
    • CurrentPosition: DPT5 percentage
    • TargetPosition: DPT5 percentage
    • PositionState: DPT5 value[listen only]
    CurrentPosition - da geht wohl set und listen - aber nur listen macht sinn, oder?
    Target Position - da macht wohl nur set sinn, oder?
    PositionState: was soll das sein?
    Ich würde ja gerne selbst in der developer doku nachschauen - finde es dort aber nicht (zugriff habe ich).
    Ein Deep-Link in die developer homekit doku würde mir auch helfen...
    Die Liste aller möglichen Services und Eigenschaften (Characteristics) ist im Quellcode des verwendeten HAP-nodeJS zu finden:
    https://github.com/KhaosT/HAP-NodeJS...omeKitTypes.js

    Aber zu Deiner Frage:
    - Current: lässt sich aus der App nicht verändern, ließt also nur auf dem Bus
    - Target: Set ist sinnvoll. Listen nur dann, wenn das Gerät auf mehreren GA hört und du "fremde" Änderungen am Zielwert auch direct anzeigen möchtest. Ich verwende bei mir nur Set
    PositionState: Der Name ist schlecht gewählt, Apple hätte besser MotionState nehmen sollen. Möglich sind hier 0 Schließend, 1 Öffnend, und 2 Stopped.
    Siehe hier: https://github.com/KhaosT/HAP-NodeJS...tTypes.js#L830


    Zitat von ThorstenGehrig Beitrag anzeigen
    Nachtrag: noch ein Problem. Den Rollladen habe ich konfiguriert und kann ihn auch im EVE sehen und "mühsam" steuern (über die +/- Prozentanzeige). Meine iOS 9.1(beta)-Siri Antwortet mir aber auf "Rollladen schließen" immer "Tut mir leid, Thorsten, ich habe diesmal keine Jalousien gefunden"... klappt das bei jemanden?
    Nein, und das geht wohl auch anderen Sprachen noch nicht. Es gibt wohl auch noch keine zertifizierten Rolläden, daher ist es Apple gerade wohl auch nicht so wichtig.

    Gruß
    Raoul
    HAP-NodeJS - Node.js implementation of HomeKit Accessory Server.

    Einen Kommentar schreiben:

Lädt...
X