Skip to main content

Rpi Camera

@aaronge/rpi-camerav2026.11.05.1· 16d agoBEHAVIORSWORKFLOWS
01README

Enumerates Raspberry Pi CSI camera modules via rpicam-hello --list-cameras, as a typed, versioned Swamp model. Zero cameras is a valid, verified result, not an error.

02Release Notes

Ship the workflow in the package so a single ops repo can pull it and run it under swamp serve's own scheduler.

03Behaviors1
@aaronge/rpi-camerav2026.08.26.1rpi_camera.ts

Global Arguments

ArgumentTypeDescription
rpicamHelloPath?stringPath to the rpicam-hello binary. Override for odd installs.
fn readCameras()
Run rpicam-hello --list-cameras, parse it, and write the

Resources

cameras(infinite)— Detected CSI cameras from rpicam-hello --list-cameras. Zero
04Workflows1
@aaronge/rpi-cameraa1337c98-3f25-4aca-b624-1baeaafe6a68

Enumerate cameras from camera-local and assert outputRecognized == true — NOT cameraCount > 0, since zero cameras is this machine's normal, verified state. outputRecognized catches the real failure mode: a future rpicam-apps update changing --list-cameras's output shape in a way this model's parser doesn't recognize, which would otherwise fail silently as "0 cameras" indistinguishable from the honest zero-camera case. Camera presence changes rarely, so this runs once a day rather than every 5 mi

collectEnumerate cameras.
1.readCamerascamera-local.readCameras
assertFail the run when rpicam-hello's output couldn't be recognized.
1.output-recognized
reportPrint a one-screen summary. Depends on collect only (not assert), so it still runs when an assertion fails.
1.summarize
05Previous Versions1
2026.08.26.1
06Stats
A
93 / 100
Downloads
33
Archive size
7.5 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License1/2partial

    no SPDX license declared

  • Verified public repository2/2earned
07Platforms