How cianmawhinney/visca-camera-controller works
Project type and purpose
• This is a Node.js‐based controller for VISCA‐compatible pan-tilt-zoom cameras.
• It provides three input methods—joystick, web UI, and serial commands—and queues and dispatches VISCA commands to the camera over a serial port.
File structure
• Top‐level: Docker/devcontainer files, CI workflows, configuration, package.json, README.
• src/inputs: three input adapters (joystick.js, serial.js, web/…): each feeds camera commands into the system.
• src/requestQueue.js: central queueing and rate-limiting for outgoing VISCA commands.
• src/camera.js: VISCA protocol implementation.
• src/server.js: HTTP server and WebSocket or API endpoints serving the web UI and orchestrating inputs.
• src/config.js & config/config.json(.example): central configuration.
• src/helperFunctions.js: shared utilities.
• test/: unit tests for camera logic.
README for insights
• Implements specific VISCA commands (Pan/Tilt, Zoom, Presets, Iris, etc.).
• Describes joystick mapping and planned future web-UI configurability.