Skip to main content
Control webcam streaming for visual monitoring of devices under test.

Syntax

lager webcam [NETNAME] COMMAND [OPTIONS]

Commands

CommandDescription
startStart webcam stream
stopStop webcam stream
urlPrint URLs of all active streams
start-allStart all webcam streams
stop-allStop all webcam streams

Options

OptionDescription
--box BOXLagerbox name or IP address

Command Reference

start

Start a webcam stream.
lager webcam CAM1 start --box my-lager-box

stop

Stop a webcam stream.
lager webcam CAM1 stop --box my-lager-box

url

Print URLs of all active webcam streams.
lager webcam url --box my-lager-box
Output:
Active webcam streams:
  CAM1: http://100.91.127.26:8081/stream
  CAM2: http://100.91.127.26:8082/stream

start-all

Start all configured webcam streams.
lager webcam start-all --box my-lager-box

stop-all

Stop all webcam streams.
lager webcam stop-all --box my-lager-box

Usage

Basic Workflow

# Start a webcam
lager webcam CAM1 start --box lab-gw

# Get the stream URL
lager webcam url --box lab-gw

# Open in browser
# http://100.91.127.26:8081/stream

# Stop when done
lager webcam CAM1 stop --box lab-gw

Multiple Cameras

# Start all cameras
lager webcam start-all --box lab-gw

# View all URLs
lager webcam url --box lab-gw

# Stop all cameras
lager webcam stop-all --box lab-gw

Stream Format

Webcam streams are provided as:
  • HTTP MJPEG streams for browser viewing
  • Per-webcam ports (8081, 8082, etc.)
  • Device path reporting for debugging

Use Cases

Visual Inspection

Monitor physical state of DUT during testing:
lager webcam BENCH_CAM start
# Run tests while monitoring
lager webcam BENCH_CAM stop

Remote Debugging

View LED states, display outputs, or physical connections:
lager webcam url --box remote-gateway
# Open stream in browser

Documentation

Capture visual evidence of test results:
lager webcam BOARD_VIEW start
# Capture screenshots from stream
lager webcam BOARD_VIEW stop

Examples

# Set default webcam
lager defaults add --webcam-net MAIN_CAM

# Quick start/stop
lager webcam start
lager webcam stop

# Check status
lager webcam url

Notes

  • Webcams must be connected via USB to the gateway
  • Each webcam uses a unique port (8081+)
  • Streams are accessible via gateway IP address
  • Default net can be set with lager defaults add --webcam-net
  • USB webcams should be compatible with V4L2