ralf.b

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • 2. April 2019 at 21:50 #44952

    Das Plugin homebridge-server bekomme ich leider nicht installert.
    die Fehlermeldung sowohl durch die M2P als auch durch die Konsole lautet:

    gyp WARN EACCES user „root“ does not have permission to access the dev dir „/root/.node-gyp/11.13.0“
    gyp WARN EACCES attempting to reinstall using temporary dev dir „/usr/local/lib/node_modules/homebridge-server/node_modules/curve25519-n/.node-gyp“
    gyp WARN install got an error, rolling back install
    gyp WARN install got an error, rolling back install
    gyp ERR! configure error
    gyp ERR! stack Error: EACCES: permission denied, mkdir ‚/usr/local/lib/node_modules/homebridge-server/node_modules/curve25519-n/.node-gyp‘
    gyp ERR! System Linux 4.19.30-v7+
    gyp ERR! command „/usr/local/bin/node“ „/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js“ „rebuild“
    gyp ERR! cwd /usr/local/lib/node_modules/homebridge-server/node_modules/curve25519-n
    gyp ERR! node -v v11.13.0
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] install: node-gyp rebuild
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] install 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/2019-04-02T19_40_52_396Z-debug.log
    root@max2play:/home/pi# cd 7

    Vielleicht kannst du etwas dazu sagen.

    Danke

    LG
    Ralf

    2. April 2019 at 19:57 #44951

    Hallo Heiner,

    habe ich noch nicht wirklich ausprobiert, da mir das Plugin Homebride-http-switch regelmäßig die HB abgeschossen hat.
    Nun versuche ich den Weg über die M2P Homebridge in einem Testheim zu testen.
    Leider kann das Plugin Homebridge-server nicht installiert werden.
    Sprich nimmt man aus der config.json diese Zeilen raus, klatppt es auch mit dem Hb Start:
    {
    „platform“: „Server“,
    „port“: 8765,
    „name“: „Homebridge Server“
    }
    Mal schauen was man daraus machen kann.

    LG
    Ralf

    29. März 2019 at 17:18 #44926

    Hallo Heiner,

    danke für die schnelle Antwort.
    Für den Raspberry gibt es einen HTTP- Shutdown Befehl.
    Um einen Statefull Schalter für das Homekit zu generieren wird ein EIN und AUS Schaltzustand benötigt.
    Hier als Bespiel:
    „switchType“: „stateful“,

    „onUrl“: „http://localhost/api/switchOn“,
    „offUrl“: „http://localhost/api/switchOff“,

    „statusUrl“: „http://localhost/api/switchStatus“

    Für offUrl habe ich nun ein Eintrag, was mir feht ist irgendetwas für den Rasperry Status und für die onUrl.
    Ich weiß nicht was passiert wenn diese leer bleiben.
    z.B „onURl“: „“

    Gruß
    Ralf

    • This reply was modified 5 years ago by ralf.b.
    • This reply was modified 5 years ago by ralf.b.
Viewing 3 posts - 1 through 3 (of 3 total)