Skip to content

wholeboard.server

FastAPI server: REST API, live event stream and the web UI.

set_lan_password(request) async

Set or clear the network password. Only from the computer running WholeBoard.

ai_local_models(request) async

Search this computer for local model servers; body {url} adds the Server URL from the form.

ai_lan_models() async

Search the subnet this computer is on for model servers on other computers.

clear_projects(request) async

Hide every board from the list (restore=true shows them again). Nothing is deleted.

import_project(request) async

Start a project from an existing KiCad schematic/board (files or a zip, base64 in JSON).

rename_project(pid, request) async

Rename a board; an empty title goes back to the designer's own.

make_panel(pid, request) async

Draw the panel with KiKit and export its Gerbers, BOM and CPL.

apply_swaps(pid, request) async

Use cheaper or in-stock LCSC parts from the quote's suggestions, then re-quote.

check_stock(pid, request) async

Check every BOM line against JLCPCB's live stock, right before ordering.

build_firmware(pid)

Compile the starter firmware in the background; the firmware card updates when it is done.

simlab_scene(pid) async

The finished board with its simulation, for the 3D Sim Lab.

simlab_whatif(pid, request) async

Re-simulate the board with the Sim Lab's slider values.

simlab_video(pid, request) async

Keep a Sim Lab video the browser recorded.

import_outline(pid, request) async

Read a board outline (and holes) from a DXF and hand it to the designer.

put_enclosure(pid, request) async

Rebuild the enclosure from an edited enclosure spec, without the AI.

put_spec(pid, request) async

Replace the design spec by hand and rebuild it without the AI.

restore_revision(pid, rev, request) async

Rebuild an earlier revision's design as a new revision; nothing is deleted.