🐷 Piggy
Log in

Configure Flagstaff, AZ Trains

Back to review

Preset

Loading…

Capture

The SAM model variant is a global setting — change it on the Settings page.

Detection prompts are configured per zone — see the Zones tab.

Delete site

Permanently removes this site's configuration, alert rules, history, and all recorded video. This cannot be undone.

Location & schedule

Geolocation is optional and only used for display. Hours of operation pause acquisition outside the daily window to save CPU and storage overnight — analysis of already-captured footage is unaffected, and a site outside its hours shows as Sleeping rather than unhealthy.

Choose an icon

Shown next to the site name and its map link. Left alone, a flag is suggested automatically from the coordinates above -- click Choose icon to search flags, faces, and everyday objects instead. Nothing is saved until you click Save below.

View on OpenStreetMap ↗

Zones

Draw a polygon on the reference frame: click to add points, then Finish. Press Esc or Undo point to remove the last point. Click edit on a saved zone below to load it back onto the canvas. Coordinates are stored normalised (0–1), so they survive a change of feed resolution.

Reference frame

A SAM3 zone with no drawn shape (0 points, then Finish) applies to the entire scene.

OCR zones

Weather axes

Every axis reads the whole frame unless you draw it a shape. Ground surface and water surface stay off until you turn them on, so a camera that shows no water never reports a water state.

SAM3 detection zones

Text Overlays

Burned into rendered clips by default (a per-render request can override these). Content may reference {timestamp}, {site_name}, {rule_name}, {metric:concept.count}, {ocr:field}; an unresolved variable renders as empty text. X/Y are 0-1 offsets from the chosen corner and may become pixel-based in a future release.

AnchorXYSizeColourBackgroundContent

Metric Webhooks

Piggy POSTs a JSON payload to each URL below whenever any of its watched metrics changes value between segments -- see /api/v1/docs for the payload shape. Best-effort, single attempt, no retry.

URLWatched metrics
Add a webhook
Metrics to watch

Alert rules

NameConditionCooldownChannels
No rules yet.
Add a rule

Upload archival footage