waiting for pipeline...
ago
#!/usr/bin/env python3 """Standalone live dashboard for chicken-counter pipeline. Serve from project root: PYTHONPATH=src python3 dashboard.py [--port 8080] """ from __future__ import annotations import argparse import json import os from http.server import HTTPServer, SimpleHTTPRequestHandler from pathlib import Path from socketserver import ThreadingMixIn from urllib.parse import unquote, urlparse class ThreadingHTTPServer(ThreadingMixIn, HTTPServer): daemon_threads = True DEFAULT_SHM_DIR = "/dev/shm" DEFAULT_PORT = 8080 DASHBOARD_HTML = r"""