39fb5fb7c2
Footer camera chips open/close a tile per camera (bottom right, ~15% wide, stacking leftwards); the open set is a per-user preference (users.open_cameras). A tile shows the camera's newest entry/exit snapshot and switches to live video while that camera pushes vehicle events (per-camera activity, same 30 s TTL as lane status). - devices: RTSP MJPEG client + RFC 2435 RTP/JPEG reassembly; Hikvision openLiveStream() on the sub-stream (x02, must be MJPEG — H.264 is refused with that reason) - server: CameraLiveHub (one shared upstream per camera, latest-frame delivery, fps cap, linger, backoff), CameraActivity, /api/cameras/:id/latest-snapshot, WS /api/cameras/:id/live (shared handshake auth with /api/ws + device:read), PUT /api/auth/open-cameras, migration 0033 (open_cameras + snapshot device/time index) - web: CameraDock, footer toggles, binary frames in the platform socket (Tauri too) - .gitattributes: *.jpg / *.bin binary (byte-exact test fixtures) Verified on park-lab cameras end to end and in headless Firefox. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.4 KiB
TypeScript
38 lines
1.4 KiB
TypeScript
// @parking/devices — device-agnostic adapters + the driver registry that lets
|
|
// an admin select between supported devices at first-run setup.
|
|
//
|
|
// See wiki/concepts/device-adapter-pattern.md and device-registry.md.
|
|
|
|
export * from "./interfaces.js";
|
|
export * from "./registry.js";
|
|
export { setDeviceLogSink, type DeviceLogSink } from "./drivers/common.js";
|
|
// Built-in drivers: the registrar plus the individual driver objects (used by
|
|
// hardware test scripts and any direct/programmatic device access).
|
|
export {
|
|
registerBuiltinDrivers,
|
|
dingtianDriver,
|
|
stubAccessDriver,
|
|
wiegandReaderDriver,
|
|
tcpipReaderDriver,
|
|
dingtianQrReaderDriver,
|
|
hikvisionDriver,
|
|
dahuaDriver,
|
|
rongtaDriver,
|
|
k200lDriver,
|
|
escposDriver,
|
|
} from "./drivers/index.js";
|
|
export { isPrinter, type PrinterRole } from "./drivers/printer-rongta.js";
|
|
// Albanian human date/time for printed slips (receipts, tickets, shift Z-report),
|
|
// kept in one place so all printed output formats dates identically.
|
|
export { stamp as formatStampSq } from "./drivers/printer-escpos.js";
|
|
export {
|
|
orderForRole,
|
|
printWithFailover,
|
|
printerRoleOf,
|
|
NoPrinterAvailableError,
|
|
type PrinterInstance,
|
|
} from "./printer-routing.js";
|
|
// Live camera view: RTSP MJPEG client + RTP/JPEG reassembly (wiki/decisions/camera-live-view.md).
|
|
export { RtspMjpegStream, RtspCodecError, type RtspMjpegOptions } from "./drivers/rtsp-mjpeg.js";
|
|
export { JpegDepacketizer } from "./drivers/rfc2435.js";
|