Repository navigation
Conversation
Add optional V4L2 motion backend
Bumps [@humanfs/node](https://github.com/humanwhocodes/humanfs/tree/HEAD/packages/node) from 0.16.7 to 0.16.8. - [Release notes](https://github.com/humanwhocodes/humanfs/releases) - [Changelog](https://github.com/humanwhocodes/humanfs/blob/main/packages/node/CHANGELOG.md) - [Commits](https://github.com/humanwhocodes/humanfs/commits/node-v0.16.8/packages/node) --- updated-dependencies: - dependency-name: "@humanfs/node" dependency-version: 0.16.8 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: veeck <gitkraken@veeck.de> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: veeck <gitkraken@veeck.de>
There was a problem hiding this comment.
🔵 Needs a closer look
Approval should wait for hardware/integration validation of real V4L2 negotiation, ffmpeg lifecycle, camera recovery, and light-exposure behavior, which isolated mock-based tests cannot establish.
No open issues 🎉
What changed in this PR
Adds an optional server-side V4L2/ffmpeg motion-detection backend while preserving the browser backend as the default. The release also introduces light-change filtering, wake confirmation, lifecycle handling, documentation, and expanded test coverage.
Changes:
- Adds V4L2 camera capture, frame processing, motion detection, wake filtering, and monitor lifecycle management.
- Extends module configuration, status handling, and powered-off statistics.
- Adds lifecycle, failure, race-condition, integration, and QA tests.
- Updates documentation, changelog, version metadata, dependencies, and spelling configuration.
The V4L2 helper still has unresolved monitor lifecycle and state-consistency issues that require correction before approval.
| File | Description |
|---|---|
tests/node-helper-v4l2-wake-light-change.test.js |
Tests wake-time global-light classification and boundary conditions. |
tests/node-helper-v4l2-wake-confirmation.test.js |
Tests delayed wake confirmation and related configuration boundaries. |
tests/node-helper-v4l2-qa.test.js |
Covers V4L2 buffering, lifecycle, concurrency, timeout, and integration scenarios. |
tests/node-helper-v4l2-motion.test.js |
Tests frame buffering, motion thresholds, light filtering, timeout behavior, and configuration normalization. |
tests/node-helper-v4l2-lifecycle.test.js |
Tests camera startup, replacement, stale events, and failure handling. |
tests/node-helper-v4l2-hw01.test.js |
Tests gradual exposure changes and strong-motion wake behavior. |
tests/node-helper-mock.js |
Provides fake process spawning, streams, and V4L2 notifications for tests. |
tests/module-v4l2.test.js |
Tests V4L2 notifications and powered-off statistics. |
tests/module-mock.js |
Supports injectable clocks and modules without browser capture callbacks. |
README.md |
Documents V4L2 setup, requirements, and configuration options. |
package.json |
Bumps the project version and development dependencies. |
package-lock.json |
Updates the dependency lockfile. |
node_helper.js |
Implements the V4L2/ffmpeg backend, frame processing, wake logic, monitor control, and lifecycle management. |
MMM-MotionDetector.js |
Adds V4L2 configuration, status handling, and shared power-off accounting. |
cspell.config.json |
Adds V4L2-related terminology to the spelling dictionary. |
CHANGELOG.md |
Records the 1.9.0 V4L2 release and dependency updates. |
This pull request requires changes.
Review effort: Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add optional V4L2 motion backend