OSCAR
v1.0.3Reads a running OSCAR and drafts OSC, MIDI and DMX control interfaces you review.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
status What this OSCAR is
OSCAR's version, its ports (HTTP, the fixed OSC listening port, the socket bridge), whether editing is locked, the MIDI driver's condition, and how many projects and published interfaces there are. Start here.
list_projects The projects in OSCAR
Every project OSCAR holds, with its id and its title, as File > Open project or template lists them. A project is what a person edits; it reaches phones only once it is published (list_published).
read_project A project's widgets
Every widget in one project, published or not, with its full settings as the editor holds them: addresses, ports, channels, MIDI mappings, DMX targets. Also says where the project is published, if it is. A setting nobody touched reads as its default. What phones see is the published copy, which may be older: read_published reads that one.
| Parameter | Type | Description |
|---|---|---|
project * | string | The project's id, or its title, as list_projects gives them |
list_published The published interfaces
Every published interface: its name, the project it was published from, the path it is served at, who can open it (access: "network", or "off" for one no device can open, whose schedules and bridges still run), and how many widgets it holds. Published interfaces are running -- phones and tablets may be on them, and the rig hears them.
read_published A published interface's widgets
Every widget on one published interface, with its full settings as phones have them: addresses, ports, channels, MIDI mappings, DMX targets. For answering why something does or does not respond.
| Parameter | Type | Description |
|---|---|---|
id * | string | The published interface's id, as list_published names it |
installation_map The installation, as OSCAR knows it
One picture of the whole installation: this computer's network addresses and ports, its MIDI ports and USB interfaces (a USB DMX interface among them), and everything the published interfaces talk to and listen for -- each OSC destination with the addresses sent to it, each MIDI port with its channels and controllers, each DMX output with its universe and channels -- with the control and interface behind every one. notices lists what does not add up: a MIDI port or USB interface that is not there, OSC followed while OSCAR cannot listen, two controls on the same DMX channels. It is worked out f…
midi_ports The MIDI ports
The MIDI inputs and outputs this machine has right now, and the driver's condition.
recent_activity What the server has lately done
The network log's recent rows: what OSCAR's server actually received and sent, oldest first, repeats within a moment gathered into one row with a count n. Each row has what (OSC address, MIDI control, DMX universe and channels) and value (what the latest carried). Incoming rows: device (the sender's address, or the MIDI port), surfaces (published interfaces that follow it), canvas (the editor's canvas followed it); with neither, nothing follows it. Outgoing rows: to (where it went), origin (whose move: canvas, local, internet, schedule, bridge), surface (the published interface) and widget. dr…
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many of the newest rows (default 50) |
describe_widgets The widgets and how to write them
Every widget OSCAR has -- tag, attributes, defaults, and each setting with its type, options and meaning -- plus how an interface is written as HTML. Read this before building one.
validate_draft Judge a draft
Run an interface written as HTML through the widgets' own validators: unknown settings, values their panels would refuse, missing or repeated ids. Returns the complaints to correct. Nothing is saved.
| Parameter | Type | Description |
|---|---|---|
html * | string | The whole HTML document |
create_draft Save a draft for the person to review
Validate an interface and, if it is clean, save it as a draft: it appears in OSCAR under File > Open project or template, with a Draft badge. It is a file for a person to review: nothing is published, nothing is sent, and no project is changed. An existing draft of the same name is only replaced when overwrite is true.
| Parameter | Type | Description |
|---|---|---|
html * | string | The whole HTML document |
name * | string | The draft's name, shown in File > Open project or template (up to 80 characters; longer is cut) |
overwrite | boolean | string | Replace an existing draft of the same name |