How dark-li/bmd_webtally works
BMD WebTally connects a browser-based tally interface to a Blackmagic ATEM switcher. An operator configures the switcher IP and source-to-label mappings; the service reads Program, Preview, and tally state, which the server exposes to the overview and label-specific client pages. The client page supports fullscreen tally lamps. Configuration is persisted in JSON. The sampled server and scripts show the main request and update paths; page behavior and capabilities are also supported by the README.
Main entry points: main.py FastAPI routes · app.js Tally management UI · client.js Client lamp UI · atem_service.py ATEM state service
Components 14
Web interface
- Tally management UI
static/app.js - Management page
templates/index.html - Client lamp UI
static/client.js - Client page
templates/client.html
Application server
- FastAPI routes
app/main.py - Mapped client state
app/main.py - Mapping management
app/main.py
ATEM tally
- ATEM state service
app/atem_service.py
Configuration
- Config store
app/config_store.py - JSON configuration
data/config.json
Other components
- Operator
- Camera operator
- ATEM switcher
- PyATEMMax
Connections 18
- Operator → Tally management UI: configures
README.md - Tally management UI → FastAPI routes: sends API requests
static/app.js - Tally management UI → FastAPI routes: receives live state
static/app.js - FastAPI routes → Management page: renders
app/main.py - FastAPI routes → Client page: renders
app/main.py - Camera operator → Client lamp UI: views tally
README.md - Client lamp UI → FastAPI routes: requests client state
static/client.js - Client lamp UI → FastAPI routes: receives live state
static/client.js - FastAPI routes → Mapped client state: builds payload
app/main.py - Mapped client state → ATEM state service: reads state
app/main.py - Mapped client state → Mapping management: uses mappings
app/main.py - FastAPI routes → Mapping management: routes mapping requests
app/main.py - Mapping management → Config store: persists mappings
app/main.py - FastAPI routes → ATEM state service: connects and disconnects
app/main.py - FastAPI routes → Config store: loads and saves IP
app/main.py - ATEM state service → PyATEMMax: registers events
app/atem_service.py - PyATEMMax → ATEM switcher: communicates with
README.md - Config store → JSON configuration: reads and writes
app/config_store.py