ipcam
by ltpop
Smart Home & IoTBrief
ONVIF PTZ control + RTSP capture + camera discovery.
Description
What This Skill Does
Controls IP cameras over RTSP and ONVIF protocols. Supports snapshots, video recording, PTZ movement, preset positions, and network camera discovery. Works with cameras from TP-Link, Hikvision, Dahua, Reolink, Amcrest, and Axis.
Combines RTSP capture and ONVIF PTZ control in one skill, avoiding the need to juggle separate tools or write custom ONVIF XML by hand.
When to Use It
- Capture a snapshot from a front-door camera on demand
- Record a 15-second clip when motion is detected
- Pan a PTZ camera to a saved preset position
- Scan the local network to find and configure new cameras
- Pull the RTSP stream URL for use in another application
Example Workflow
User asks: check the backyard camera and move it to the gate preset
- 1
Run camera.sh info to verify the backyard camera is reachable
- 2
Run ptz.py preset list to retrieve saved presets
- 3
Identify the gate preset number from the list
- 4
Run ptz.py preset goto <n> to move the camera to that position
- 5
Run camera.sh snapshot to capture a frame confirming the new view
Camera is positioned at the gate preset and a snapshot is saved to disk
Requirements
- Camera credentials (username and password) for each IP camera
- ONVIF enabled in the camera's web UI
Installation
clawhub install ltpop/ipcamRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.