NRCHKB / node-red-contrib-homekit-bridged

Node-RED Contribution - HomeKit Bridged : Node-RED nodes to simulate Apple HomeKit devices.
https://nrchkb.github.io
MIT License
416 stars 52 forks source link

Bug: Cannot find module 'ip' #545

Closed shanse01 closed 3 months ago

shanse01 commented 7 months ago

Your Current NRCHKB Plugin Version

1.6.0

Operating System

Debian GNU/Linux Bookworm (12) on PI

How can we help?

When ever setting up a service node and deploying it I get the following error messages:

"Error: Cannot find module 'ip' Require stack:

Any help is highly appreciated

Any more details?

If this is specific to some hardware or specific software version, please explain here.

Any code or functions to add?

[
    {
        "id": "c39ad1c262410fce",
        "type": "homekit-service",
        "z": "4baa935e0ec6845d",
        "isParent": true,
        "hostType": "0",
        "bridge": "b55c79a875914608",
        "accessoryId": "",
        "parentService": "",
        "name": "testb",
        "serviceName": "Lightbulb",
        "topic": "",
        "filter": false,
        "manufacturer": "NRCHKB",
        "model": "1.6.0",
        "serialNo": "Default Serial Number",
        "firmwareRev": "1.6.0",
        "hardwareRev": "1.6.0",
        "softwareRev": "1.6.0",
        "cameraConfigVideoProcessor": "ffmpeg",
        "cameraConfigSource": "",
        "cameraConfigStillImageSource": "",
        "cameraConfigMaxStreams": 2,
        "cameraConfigMaxWidth": 1280,
        "cameraConfigMaxHeight": 720,
        "cameraConfigMaxFPS": 10,
        "cameraConfigMaxBitrate": 300,
        "cameraConfigVideoCodec": "libx264",
        "cameraConfigAudioCodec": "libfdk_aac",
        "cameraConfigAudio": false,
        "cameraConfigPacketSize": 1316,
        "cameraConfigVerticalFlip": false,
        "cameraConfigHorizontalFlip": false,
        "cameraConfigMapVideo": "0:0",
        "cameraConfigMapAudio": "0:1",
        "cameraConfigVideoFilter": "scale=1280:720",
        "cameraConfigAdditionalCommandLine": "-tune zerolatency",
        "cameraConfigDebug": false,
        "cameraConfigSnapshotOutput": "disabled",
        "cameraConfigInterfaceName": "",
        "characteristicProperties": "{}",
        "waitForSetupMsg": false,
        "outputs": 2,
        "x": 410,
        "y": 440,
        "wires": [
            [
                "d8c6f2cf1ff5d966"
            ],
            []
        ]
    },
    {
        "id": "b55c79a875914608",
        "type": "homekit-bridge",
        "bridgeName": "test",
        "pinCode": "xxxx-xxxx",
        "port": "",
        "advertiser": "bonjour-hap",
        "allowInsecureRequest": false,
        "manufacturer": "NRCHKB",
        "model": "1.6.0",
        "serialNo": "Default Serial Number",
        "firmwareRev": "1.6.0",
        "hardwareRev": "1.6.0",
        "softwareRev": "1.6.0",
        "customMdnsConfig": false,
        "mdnsMulticast": true,
        "mdnsInterface": "",
        "mdnsPort": "",
        "mdnsIp": "",
        "mdnsTtl": "",
        "mdnsLoopback": true,
        "mdnsReuseAddr": true,
        "allowMessagePassthrough": true
    }
]
crxporter commented 7 months ago

@Shaquu is this related to the current discord discussion? I saw you mention ip module. Does it need manual install? Could / should it be added as a dependency on our node so it installs automatically?

caitken-com commented 7 months ago

@shanse01 in the mean time try this solution: https://github.com/NRCHKB/node-red-contrib-homekit-bridged/issues/544

shanse01 commented 7 months ago

@caitken-com Thanks for the hint, does this relate to node-red-contrib-ip, if so, tried it but no change.

caitken-com commented 7 months ago

@shanse01 I believe this what you’re looking for: https://www.npmjs.com/package/ip

crxporter commented 7 months ago

To install for nodered you would go to the .node-red directory (usually located at ~/.node-red/ but depends on how you install) then run npm install ip - then restart nodered

shanse01 commented 7 months ago

@crxporter Thanks that did the trick for the node-red installed parallel to the hombridge, do you know by chance where the ip node would have to be installed if I were to use the "Node Red plugin for Homebridge" inside Hombridge?

Shaquu commented 7 months ago

Will be resolved with next version

Shaquu commented 3 months ago

ip removed in 1.7.0-dev.0