main
Colby Knox Publish 0.1.2 a842014 26d ago
{
  "dock_manifest": "1.2.0",
  "say": [
    "show my camera stream",
    "open the bench cam in a pane",
    "take a snapshot of the camera"
  ],
  "webview": {
    "title": "MJPEG Stream Viewer",
    "favicon": "public/icon.svg"
  },
  "health": {
    "url": "/api/status",
    "poll_seconds": 15,
    "timeout_ms": 2000
  },
  "launch": {
    "mode": "container_command",
    "console": "show",
    "steps": [
      {
        "label": "Installing or updating the MJPEG stream viewer",
        "run": "sh -c 'PATH=\"$HOME/.local/bin:$PATH\"; adom-wiki pkg update mjpeg-stream-viewer || adom-wiki pkg install adom/mjpeg-stream-viewer'",
        "timeout_seconds": 120
      },
      {
        "label": "Starting the viewer",
        "run": "sh -c 'PATH=\"$HOME/.local/bin:$PATH\"; exec mjpeg-stream-viewer --ai-thread \"${ADOM_AI_THREAD:-dock}\" serve --print-url --port auto'",
        "await": "url",
        "timeout_seconds": 60
      }
    ],
    "on_ready": "navigate_placeholder"
  },
  "context": {
    "query": [
      "url",
      "fps",
      "bare"
    ],
    "env": "ADOM_CONTEXT"
  },
  "requires": {
    "desktop": false,
    "bridges": []
  }
}