You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cameras require an extra install of FFmpeg for video processing. If you are on a system with `apt` (Raspberry Pi, Ubuntu, Debian, etc.) you can use the FFmpeg install script which is maintained by a couple of our users and designed for NRCHKB. This script is documented [here](https://github.com/marcus-j-davies/nrchkb-ffmpeg-build) and can be run at any time using this one-line terminal command, then following the prompts:
20
+
Cameras require an extra install of FFmpeg for video processing.
21
+
If you are on a system with `apt` (Raspberry Pi, Ubuntu, Debian, etc.) you can use the FFmpeg install script, which is maintained by a couple of our users and designed for NRCHKB.
22
+
This script is documented [here](https://github.com/marcus-j-davies/nrchkb-ffmpeg-build) and can be run at any time using this one-line terminal command, then after the prompts:
@@ -27,11 +29,12 @@ If you are running our [Docker image](https://github.com/NRCHKB/node-red-contrib
27
29
28
30
For those writing examples, please include how you have installed FFmpeg (including any special build flags)!
29
31
30
-
It is recommended to use "Accessory" as the Host Type for cameras. The camera should be the Parent Service, with "Motion" and "Doorbell" (if used) as Linked Services.
32
+
It is recommended to use "Accessory" as the Host Type for cameras.
33
+
The camera should be the Parent Service, with "Motion" and "Doorbell" (if used) as Linked Services.
31
34
32
35
### How to debug issues
33
36
34
-
If you have problems with FFmpeg (if you think the camera is set up properly but it "does nothing" then you might have FFmpeg problems) then please follow these steps to properly debug your FFmpeg setup.
37
+
If you have problems with FFmpeg (if you think the camera is set up properly, but it "does nothing" then you might have FFmpeg problems) then please follow these steps to properly debug your FFmpeg setup.
35
38
36
39
- Configure Camera Control node in Node-RED
37
40
- Run Node-RED with `DEBUG=NRCHKB*,CameraSource*` and tick "debug mode" in Camera Control
@@ -46,7 +49,8 @@ If you have problems with FFmpeg (if you think the camera is set up properly but
46
49
47
50
Example written by CRXPorter. Date 21 November 2020, updated February 2022. Plugin version 1.4.3, Node-RED version 2.1.5.
48
51
49
-
Hardware:\
52
+
Hardware:
53
+
50
54
-Raspberry Pi Zero W\
51
55
-Raspberry Pi Camera Module V2\
52
56
@@ -75,13 +79,17 @@ Step **five**: import this flow. It should be a single homekit node
75
79
Step **six**: add it to your Home.app and enjoy!
76
80
77
81
Notes:\
78
-
Additional tuning could be done to optimize resolution and speed. The new Raspberry Pi High Quality camera should work with the same setup. This setup should work on a Pi 3 or 4 with very little modification. Adding a microphone, motion detector, doorbell button, or other things should be relatively simple. Visit us [on discord](https://discord.gg/uvYac5u) if you'd like to discuss!
82
+
Additional tuning could be done to optimize resolution and speed.
83
+
The new Raspberry Pi High Quality camera should work with the same setup.
84
+
This setup should work on a Pi 3 or 4 with very little modification.
85
+
Adding a microphone, motion detector, doorbell button, or other things should be relatively simple.
86
+
Visit us [on discord](https://discord.gg/uvYac5u) if you'd like to discuss!
79
87
80
88
### * Raspberry Pi Zero W running MotionEyeOS
81
89
82
90
This setup adds motion detection to the Pi Zero W camera. Note that the pi zero does not appear to have enough power to run MotionEye alongside Node-RED, so it is recommended to run MotionEyeOS alone on a pi with Node-RED on another server (bigger pi, NAS, etc.).
83
91
84
-
1. Head over to [MotionEyeOS](https://github.com/ccrisan/motioneyeos) releases and download the one for "raspberrypi", flash it to your SD card as you normally would
92
+
1. Head over to [MotionEyeOS](https://github.com/ccrisan/motioneyeos) releases and download the one for "raspberrypi", flash it to your SD card as you normally would.
85
93
2. Boot and set up MotionEyeOS as you like it (motion detector settings, stream quality, etc.) using their instructions. The one important part is to send your motion alerts to a webhook, the address used in the code below is `http://<node-red-pi-address>:1880/MotionEye`
86
94
3. To import the flow below into your Node-RED machine, you will need to change the IP addresses in the camera node, so they point to your pi zero.
87
95
@@ -98,15 +106,16 @@ Cameras tested:
98
106
- UniFi G3 Bullet
99
107
- UniFi G4 Doorbell
100
108
101
-
Motion detection and doorbell presses are available for advanced users, ask @crxporter on discord. A new UniFi node is in active development, check [here](https://github.com/NRCHKB/node-red-contrib-unifi-os) for that project.
109
+
Motion detection and doorbell presses are available for advanced users, ask @crxporter on discord.
110
+
A new UniFi node is in active development, check [here](https://github.com/NRCHKB/node-red-contrib-unifi-os) for that project.
102
111
103
-
FFmpeg was installed on a pi 4. Node-RED was installed with the official Node-RED on pi install script.
112
+
FFmpeg was installed on a pi 4. Node-RED was installed with the official Node-RED on a PI install script.
104
113
105
114
#### FFmpeg Install
106
115
107
116
Just run the `nrchkb-ffmpeg-build` script found here:
0 commit comments