Community编程与开发github.com

camsnap

从RTSP/ONVIF摄像头或本地网络摄像头(包括USB云台变焦控制)捕获帧或片段。

camsnap 是什么?

camsnap 是一款命令行工具,旨在从 IP 摄像头(RTSP/ONVIF)和本地 USB 网络摄像头捕获快照、视频片段,并检测运动事件。它支持通过简单的命令添加和管理摄像头,无需复杂的配置。对于 USB 摄像头,camsnap 还能进行云台变焦(PTZ)控制,包括设置绝对位置、相对移动以及归位操作。该工具基于 `ffmpeg` 工作,跨平台支持 macOS(需摄像头权限)和 Linux 系统。其 `watch` 命令可设定运动检测阈值并执行自定义动作,`doctor` 命令则能帮助排查连接问题。camsnap 特别适合家庭安防、开发测试以及需要自动化摄像头操作的工作流。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/camsnap

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

camsnap 是做什么的?

使用 camsnap 从已配置的摄像头中抓取快照、片段或运动事件。

设置

  • 配置文件:~/.config/camsnap/config.yaml
  • 添加摄像头:camsnap add --name kitchen --host 192.168.0.10 --user user --pass pass

常用命令

  • 发现:camsnap discover --info
  • 快照:camsnap snap kitchen --out shot.jpg
  • 片段:camsnap clip kitchen --dur 5s --out clip.mp4
  • 运动监控:camsnap watch kitchen --threshold 0.2 --action '...'
  • 诊断:camsnap doctor --probe

本地网络摄像头(macOS)

  • 列出设备:camsnap devices
  • 从本地摄像头抓取快照:camsnap snap --device 0 --out webcam.jpg
  • PTZ 位置与范围:camsnap ptz status --device 0
  • 移动云台摄像头:camsnap ptz goto --device 0 --pan 45 --tilt -18
  • 还有 camsnap ptz move(相对偏移)和 camsnap ptz home。

注意事项

  • 需要 ffmpeg 在 PATH 环境变量中。
  • 建议在录制长片段前先进行短时间测试捕获。
  • PTZ 需要 macOS 摄像头权限:这些摄像头仅在流式传输时响应 UVC 控制,因此 camsnap 会保持一个捕获会话以进行操作。
  • 运动命令会验证最终位置,如果摄像头未达到指定位置则退出并返回非零状态。摄像头内置 AI 跟踪可能会覆盖手动定位;如果移动操作频繁失败,请禁用跟踪功能。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Verify Telegram draft and final delivery sequencing in QA Lab with QA Channel or Crabline Telegram.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Find an integration when asked to install, connect, or set up an app. Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

claw-score

Audit or refresh OpenClaw maturity scorecard docs from root taxonomy, maturity scores, and QA evidence artifacts without using maintainer discrawl data or committed inventory reports.

相关技能