Select a box on the photo, or draw a new one.
When the boxes and bindings look right, build it. The photo goes away and the Panel tab becomes a virtual copy of this panel: your layout, your hardware, the same hydraulics, scenarios and scoring as every other preset. Come back and rebuild any time.
Scenarios you build are saved in this browser and show up in the scenario list on the Panel tab and in the proctor console. Export JSON to share one with another device or another department.
Two questions were on the table: can a browser run a pump panel realistically enough to train on, and can a photo of a real panel become the training surface. Both tabs above are working answers. This page is the engineering summary.
Everything on both tabs is driven by one small model that runs 10 times a second. It solves for the pump discharge pressure that balances what the engine and pump can make against what the open lines will take.
Line math is the standard IFSTA/NFPA 1002 form: PDP = NP + FL + AL + EL, with FL = C × Q² × L (Q in hundreds of gpm, L in hundreds of feet) and coefficients 15.5 for 1¾″, 2 for 2½″, 0.8 for 3″, 0.08 for 5″. Fog nozzles are fixed-gallonage (flow scales with the square root of nozzle pressure); smooth bores use Q = 29.7 d² √NP. The pump is a single-stage centrifugal: net pressure rises with RPM squared and droops with total flow, calibrated to 1,500 gpm at 150 psi net.
Supply matters as much as the pump. Tank water goes through a tank-to-pump valve that can only pass so much; a hydrant has a static pressure and a residual that falls with flow. When intake pressure goes negative the pump starts to cavitate: the model collapses the pump's output, the gauges flutter, and the PSI governor drops the engine to idle the way an FRC or Class1 governor does on low intake. Those are the failure modes an engineer has to recognize by feel, and they fall out of the model instead of being scripted.
The Panel tab is drawn from the same parts a real panel is built from: chrome-bezel gauges with white faces, color-coded discharge tags, gate handles in slots, quarter-turn valve handles, a governor unit with an LCD and buttons, a rocker switch panel, tank level lights, and the plumbing that is only there to look at. Every control is operated directly by dragging or pressing it. Because the panel is described as a list of parts and positions, a department's own panel is a different list, not a different program.
A pump panel is a fixed layout of a small number of control types: gauges, gate valve handles, a throttle or governor, a few switches, primer buttons, and placards. That is what makes the photo idea workable. The photo becomes a background; each control is a box on it with a type and a binding into the engine; gauges get a needle overlay; handles get a drag-to-operate hit area, with a control dock under the photo for the parts a flat photo cannot make tactile.
Draw or auto-detect boxes, assign types, bindings and hardware style, train on the photo with live needles, then build the replica: the photo goes away and the same layout is rebuilt from the virtual hardware as a preset of its own, with the panel style and pump controller the detection guessed. The AI detection sends the photo to Claude and asks for a JSON list of controls with normalized boxes and a confidence score, which you then confirm or fix.
Perspective correction (tap the four panel corners, warp to a flat rectangle), a per-manufacturer gauge library with known sweep angles, needle inpainting so the photographed needle at rest disappears, and a shared library so one mapped panel serves the whole station.
Detection accuracy is the honest risk. A vision model finds the gauges, the big intake and discharge outlets, the governor display and the handle clusters reliably; it is less reliable at reading the small engraved tags that say which discharge a gauge belongs to. The workflow should assume every box gets a five-second human confirmation. That is still faster than building a panel from scratch in an editor, and it only happens once per apparatus.
Scenarios are incident timelines, not checklists. Orders arrive over the radio with fireground delays: crews call for water when a line is flaked, hoses take 15–20 seconds to fill, the hydrant firefighter needs a minute to dress the hydrant, Command asks for a water status or a residual and expects an answer on your radio within a set time, a crew reports low pressure and you have to read the gauges to tell a kink from a pump problem, and every run ends with a proper shutdown: idle, gates closed slowly, tank topped off, supply closed, pump disengaged, drains open. Abuse has consequences: cavitating, running dry or overheating for long enough seizes the pump and ends the run; over-pressure bursts hose. The debrief plots discharge, intake and every nozzle pressure against the log so you can see the moment a decision went wrong.
The Build tab is a scenario editor: set the water supply and tank, add lines with real hose and nozzle choices (the editor shows the pressure each one needs), then assemble a timeline from beats such as charge a line, hydrant arrives, Command asks for a residual, kink, burst, lost hydrant, weak hydrant, custom radio traffic, and shutdown. Scenarios save in the browser, appear in every scenario list, and export as JSON. Evaluation mode randomizes hydrant pressure, tank size and hose lengths on any scenario, turns hints off, and grades the run; History keeps the last fifty runs.
The proctor console (open this page with #proctor on the address in a second tab, window or device) watches the operator live and can burst a line, kill or weaken the hydrant, type radio traffic, change the scenario or the panel style, and restart. Two tabs in one browser link directly. For a trainee on another computer, the instructor signs in on the proctor console (department accounts), opens a session and reads out the 5-character code; the trainee enters it under Training session, and the console follows their panel live. Any instructor in the department can pick the session up from their own computer, and admins invite instructors with a one-time link. Radio traffic from crews is generated from nozzle pressure and spoken with the browser's speech engine.
Panel styles are data, not code: each preset (Pierce 2015+, Pierce 1990s, E-ONE 2010s, Sutphen 2010s, Classic 1970s–80s, Rosenbauer electric, generic) describes the finish, gauge faces (white or vintage black), tag style, the valve hardware itself (push-pull T-handles, round-knob pull rods with lock collars, horizontal slot swing levers, Pierce-style arc swing handles, lever gates, electric controllers, electric intake switch), the pump controller (FRC InControl TGA400 or TGA300, FRC PumpBoss PBA400 or PumpBoss MAX, Class1 TPG or TPG+, each drawn from the real unit and swappable from the sidebar, or a vernier knob with a relief valve for the pre-governor era), primer type, tank level indicator and where every control sits. The layouts were built against photos of real panels from each builder. Adding a department's real rig is a new preset, and the photo mapper is the way to build one from a picture.