feat: 增加摄像头定时感知#308
Open
GodD6366 wants to merge 2 commits into
Open
Conversation
|
👋 感谢提交 PR @GodD6366!维护者会尽快 review。 提交前请确认:
|
| for did, schedule in value.items() | ||
| if isinstance(schedule, dict) | ||
| } | ||
| except json.JSONDecodeError: |
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.
概要
行为说明
in_use表示用户手动总开关,不会被定时配置改写。effective_in_use = in_use && !schedule_paused,只有总开关开启时定时规则才会生效。weekdays使用0=周一到6=周日;缺省时等价周一到周日全选。22:00-07:00不覆盖周二凌晨。验证
cd backend/miloco && uv run pytest tests/test_miot_filter_and_cameras.py tests/perception/test_camera_adapter_reconnect.pycd cli && uv run pytest tests/test_commands.pycd web && CI=true pnpm typecheckcd web && CI=true pnpm test -- --runpython3 -m compileall backend/miloco/src/miloco/miot backend/miloco/src/miloco/perception/collect cli/src/miloco_cli/commands