seydx / homebridge-camera-ui

Homebridge plugin for RTSP Cameras with HSV, motion detection support, Image Rekognition, Web UI to manage/watch streams and WebApp support
MIT License
647 stars 92 forks source link

Not Working for Yi Cameras, Homebridge installed on Mac via HomeBrew #8

Closed fLyRhyTHeMz closed 4 years ago

fLyRhyTHeMz commented 5 years ago

Trying to get this plugin running for my 2 yi cameras, a dome cam 1080, and outdoor cam 1080.

System Info: Mac running macOS 10.14

Ffmpeg was installed via homebrew

plugin installed with:npm install -g homebridge-camera-ui@latest

Config for the plugin looks like this and the was validated by jsonlint:

 {
    "platform": "CameraUI",
    "debug": false,
    "videoProcessor": "ffmpeg",
    "cameras": [{
            "name": "Living Room",
            "active": true,
            "yihackv4": true,
            "videoConfig": {
                "source": "-rtsp_transport tcp -re -i rtsp://xxx.xxx.x.xxx/ch0_0.h264",
        "stillImageSource": "-i rtsp://xxx.xxx.x.xxx/ch0_0.h264",
        "maxWidth": 1920,
                "maxHeight": 1080,
                "maxFPS": 30
            }
        },
        {
            "name": "Walkout",
            "active": true,
            "yihackv4": true,
            "videoConfig": {
                "source": "-rtsp_transport tcp -re -i rtsp://yyy.yyy.y.yyy/ch0_0.h264",
        "stillImageSource": "-i rtsp://yyy.yyy.y.yyy/ch0_0.h264",
        "maxWidth": 1920,
                "maxHeight": 1080,
                "maxFPS": 30
            }
        }
    ]
}

After running home bridge, these are the relevant outputs I see

[2019-07-24, 1:27:18 p.m.] Plugin /usr/local/lib/node_modules/homebridge-camera-ui requires Node version of ^8.9.1 which does not satisfy the current Node version of v12.6.0. You may need to upgrade your installation of Node.

[2019-07-24, 1:27:37 p.m.] [CameraUI] Initializing CameraUI platform... [2019-07-24, 1:27:37 p.m.] [CameraUI] ** [2019-07-24, 1:27:37 p.m.] [CameraUI] CameraUI v2.1.9 by SeydX [2019-07-24, 1:27:37 p.m.] [CameraUI] GitHub: https://github.com/SeydX/homebridge-camera-mqtt [2019-07-24, 1:27:37 p.m.] [CameraUI] Email: seyd55@outlook.de [2019-07-24, 1:27:37 p.m.] [CameraUI] ** [2019-07-24, 1:27:37 p.m.] [CameraUI] start success...

[2019-07-24, 1:27:37 p.m.] [CameraUI] [INFO] Initalizing Living Room [2019-07-24, 1:27:37 p.m.] [CameraUI] [INFO] Initalizing Walkout [2019-07-24, 1:27:37 p.m.] [CameraUI] [INFO] Found 2 active camera(s) in config.json [2019-07-24, 1:27:41 p.m.] Living Room is running on port #####. [2019-07-24, 1:27:41 p.m.] Please add [Living Room] manually in Home app. Setup Code: ###-##-### [2019-07-24, 1:27:41 p.m.] Walkout is running on port #####. [2019-07-24, 1:27:41 p.m.] Please add [Walkout] manually in Home app. Setup Code: ###-##-###

[2019-07-24, 1:27:42 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:27:42 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config!_

Then homebridge completes its boot up and displays the QR code. Everything else works fine and I was even able to add the cameras to homekit using the setup codes which were generated.

However, the cameras never displayed anything. Not preview tiles or stream, just a no response message.

After homebridge is running, these are the messages being output _[2019-07-24, 1:27:52 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:27:52 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:27:58 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:27:59 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:28:00 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:28:00 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:28:06 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:28:06 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:28:08 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:28:15 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:28:15 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:28:20 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:28:27 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:28:31 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:28:31 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:28:33 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:28:33 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:28:41 p.m.] [CameraUI] [INFO] Start streaming video from Living Room with 1280x720@299kBit [2019-07-24, 1:28:41 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:28:42 p.m.] [CameraUI] [ERROR] Living Room: FFmpeg exited with code 1 [2019-07-24, 1:28:47 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:28:47 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:28:47 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:28:47 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:28:59 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:29:03 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:29:03 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:29:12 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:29:17 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:29:19 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:29:19 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:29:28 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:29:35 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:29:35 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:29:36 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:29:40 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:29:50 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:29:51 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:29:51 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:29:51 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:29:53 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:30:07 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:30:07 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:30:13 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:30:22 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:30:23 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:30:23 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:30:34 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:30:39 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:30:39 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:30:45 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:30:55 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:30:55 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:30:56 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:31:06 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:31:11 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:31:11 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:31:27 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:31:27 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:31:38 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:31:39 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:31:43 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:31:43 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:31:51 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:31:58 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:31:59 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:31:59 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:32:15 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:32:15 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:32:31 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:32:31 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:32:32 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:32:47 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:32:48 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:32:51 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:33:02 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:33:03 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:33:04 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:33:04 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:33:20 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:33:20 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:33:31 p.m.] [SmartThings] Change Event: (Living Room Harmony) [CURRENTACTIVITY] is -- [2019-07-24, 1:33:31 p.m.] [SmartThings] Change Event: (TV - Apple TV [Harmony Activity]) [SWITCH] is off [2019-07-24, 1:33:36 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:33:36 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:33:39 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:33:43 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:33:43 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:33:45 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:33:52 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:33:52 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:34:08 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:34:08 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:34:14 p.m.] [CameraUI] [INFO] Living Room: Snapshot from Living Room at 480x270 [2019-07-24, 1:34:24 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:34:24 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:34:40 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:34:40 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:34:53 p.m.] [CameraUI] [INFO] Walkout: Snapshot from Walkout at 480x270 [2019-07-24, 1:34:56 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:34:56 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:35:12 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:35:12 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:35:28 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:35:28 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:35:44 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:35:44 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:36:00 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:36:00 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:36:16 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:36:16 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:36:32 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:36:32 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:36:48 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:36:48 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:37:04 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:37:04 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:37:20 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:37:20 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:37:36 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:37:36 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:37:52 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:37:52 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:38:08 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:38:09 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:38:25 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:38:25 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:38:41 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:38:41 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:38:57 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:38:57 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config! [2019-07-24, 1:39:13 p.m.] [CameraUI] [ERROR] Living Room: An error occured while checking camera config! [2019-07-24, 1:39:13 p.m.] [CameraUI] [ERROR] Walkout: An error occured while checking camera config!_

Any ideas how to Fix this?

ads1230 commented 5 years ago

update node.js https://www.hostingadvice.com/how-to/update-node-js-latest-version/#option2