Skip to content

Screen document

eaxScadaReferenceStarterView as Markdown

A display as stored in data/studio/pages/*.json, decoded into ScreenSchema. The same structure is published as a JSON Schema in eaxScada/internal/devstudio/screen.schema.json.

Keys are the JSON keys. Optional marks keys that are omitted when empty, or that may be absent (pointers).

ScreenSchema represents the declarative JSON screen structure

Source: eaxScada/internal/devstudio/devstudio.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
display_id string
name string
folder_id string yes
folder_path string yes
description string yes
is_global boolean
width integer
height integer
parameters map of string to any
layers list of Layer
kind string yes Kind distinguishes a 2D synoptic (“2d”, the default when empty) from a 3D digital twin scene (“3d”), so both live in the same project tree and reuse the same save/versioning/deploy path. “iso” is an isometric (2.5D) screen: its map, blocks, connectors and overlay are in Iso (iso.go). “report” is a report template: its page settings, datasets, bands and body are in Report (report.go).
scene3d Scene3DSchema yes
iso IsoScreen yes
report ReportTemplate yes
display_settings DisplaySettings yes
screen_params ScreenParams yes ScreenParams: the parameters the screen declares and its named value sets (params.go). {Name} in the screen is replaced by the value it is opened with.
is_shell boolean yes Display architecture role, set from Display Settings. These were written by the UI but absent from this struct, so encoding/json discarded them on every save and the dialog reopened showing defaults — the “settings do not persist” report. See the round-trip audit in the r9 review.
is_popup boolean yes
is_entry_point boolean yes
background_color string yes
updated_at integer
updated_by string

Layer contains grouped shapes

Source: eaxScada/internal/devstudio/devstudio.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
id string yes
name string
visible boolean
locked boolean
shapes list of ShapeModel

Scene3DSchema is a persisted 3D digital-twin scene. Nodes are stored by kind plus transform rather than as baked geometry, so a scene is rebuilt by the same factory that creates equipment interactively.

Source: eaxScada/internal/devstudio/devstudio.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
nodes list of Scene3DNode
camera Scene3DCamera yes
joystick string yes Joystick: on-screen navigation sticks in the operator runtime: “auto” (on for touch-only devices, off with a mouse), “on”, or “off” (not offered on this screen). Empty: the project’s shared_settings.joystick_3d, else “auto”. With “auto” or “on” the operator can switch it (button, Alt+J) and the browser remembers that choice.
cameraMode string yes CameraMode: the operator’s camera: “” or “orbit” (free, as before) or “iso” (the locked isometric camera, roadmap section 11.7). CameraLock: the operator may not leave “iso”. The 3D designer saved both, and the save dropped them (no fields here).
cameraLock boolean yes
layers Scene3DLayers yes Layers: layer state with no node to hold it. A node’s own layer is its metadata.layer. Absent: every layer visible and unlocked.
look Scene3DLook yes Look: the scene settings (lighting preset, time of day, exposure, shadows, ambient occlusion, quality, floor), checked on decode (scene3d_look.go). Absent: the default look, exactly as before.

IsoScreen is an isometric screen’s map, view, blocks, connectors and 2D overlay.

Source: eaxScada/internal/devstudio/iso.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
version integer
palette string yes Palette: IsoPaletteHighPerformance (empty: the default for operator screens) or IsoPaletteDetailed.
map IsoMap
view IsoView yes
blocks list of IsoBlock Blocks: the placed blocks, in the order the designer keeps them (the drawing order is the depth sort’s, eax_iso_core.js).
connectors list of IsoConnector yes Connectors: pipes, cables, fences and walkways, stored as tiles; the pieces are derived from each tile’s mask (eax_iso_core.js autotileMasks), never stored.
overlay list of ShapeModel yes Overlay: ordinary 2D shapes in screen space, drawn above the map (trends, grids, buttons, labels). They are shapes like a layer’s, with the same actions, bindings and checks.

ReportTemplate is the report member of a screen of kind “report”: what the report engine (internal/reports/engine) renders. Every member is validated on save (ValidateReport); a member the model does not have is kept when a stored document is read and refused when one is saved, so nothing is dropped without the designer being told.

Units: millimetres. Placeholders: {Name} is a declared parameter of the screen (ScreenSchema.ScreenParams), {alias.column} a column of a dataset of Datasets (the first row; inside a repeat group over that dataset, the current row), and in a page header or footer the page fields (ReportPageFields). Tag references ({Area/Tag}) are refused: a report reads its datasets, never live tags.

Source: eaxScada/internal/devstudio/report.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
version integer yes Version: ReportTemplateVersion (0 is read as 1).
paper string yes Paper: PaperA4 (default when empty), PaperA3, PaperLetter, PaperLegal.
orientation string yes Orientation: portrait (default when empty) or landscape.
margins_mm list of number yes MarginsMM: top, right, bottom, left in mm (empty: 15 on every side).
language string yes Language and NumberLocale: a language tag (“fr”, “en-GB”); empty is the server’s. TimeZone: “site” (the server’s, also when empty), “UTC” or a zone name (“Europe/Paris”).
time_zone string yes
number_locale string yes
datasets list of ReportDatasetRef yes Datasets: the named datasets the report reads, each under an alias, with its parameters bound to the report’s ({day}).
page_header ReportBand yes PageHeader, PageFooter: the bands repeated on every page.
page_footer ReportBand yes
body list of ReportElement yes Body: the elements in flow order.
outputs list of string yes Outputs: “pdf”, “xlsx” (empty: pdf).
signatures ReportSignaturePlan yes Signatures: the Part 11 signature plan of the report’s archived runs (report_signatures.go; empty: none).
external_delivery_allowed boolean yes ExternalDeliveryAllowed: the report “may be sent outside” (e-mail to external addresses, §3.7; internal/reports/deliver). Turned on only by a reports_admin (CheckExternalDeliveryFlag); a duplicate starts without it.

DisplaySettings defines standard industrial display attributes

Source: eaxScada/internal/devstudio/devstudio.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
display_type string “replace”, “overlay”, “on_top” (popup)
cannot_be_replaced boolean For “on_top” / popup: stays persistent
allow_multiple_copies boolean Allow multiple running popup instances
cache_after_displaying boolean Keep DOM / state in memory when closed
always_updating boolean Keep updating tags even when hidden/cached
tag_refresh_rate_sec number Max Tag Update Rate in seconds (e.g. 0.05, 0.1, 0.5, 1.0, 2.0, 5.0)
show_last_acquired boolean Display last acquired value if offline
size_mode string Sizing & Resizing
width integer Width in pixels (e.g. 1920 or 400 for popup)
height integer Height in pixels (e.g. 1080 or 320 for popup)
allow_resize boolean Allow display window to be resized
resize_behavior string “scale” vs “pan”
position_mode string Positioning (for popups / overlays)
position_x integer X offset in pixels
position_y integer Y offset in pixels
has_title_bar boolean Title Bar & Window Controls (for popups)
title_bar_text string Custom title string (supports variables)
system_menu boolean Show system menu icon
minimize_button boolean Minimize to dock/taskbar
maximize_button boolean Maximize to full viewport
close_button boolean Show close (X) button
pin_button boolean Pin on top toggle
size_to_main_window boolean Stretch to main window at runtime
security_code string Navigation & Security
background_color string Background color hex (e.g. “#090d16”)
use_gradient_style boolean Use gradient backdrop
gradient_color_end string Optional gradient end
track_navigation boolean Track screen for breadcrumb history
navigation_name string History screen name
role string yes Written by the Display Settings modal; previously not declared here, so every one of them was dropped silently on save.
startup_action_type string yes
startup_command string yes
default_inner_display string yes
inner_container_id string yes
scaling_mode string yes
phone_view string yes First view of this screen in the operator runtime on a phone: “cards” (the screen reflowed as a list of cards), “screen” (the designed screen, with pinch-zoom and pan), or empty for automatic (cards when the screen has values or commands to list). The operator can switch; the choice is remembered in that browser.
is_entry_point boolean yes
touch_keyboard TouchKeyboardSettings yes TouchKeyboard is this screen’s on-screen keyboard setting (WP05); its mode “inherit” passes to the project’s.

ScreenParams is what a screen declares about its parameters, and its named value sets.

Source: eaxScada/internal/devstudio/params.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
declared list of ParamDecl
sets list of ParamSet yes

ShapeModel defines a 2D industrial graphic element

Source: eaxScada/internal/devstudio/devstudio.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
id string
type string Rect, Circle, Path, Pipe, Text, Pump, Tank, Valve, Reactor, Motor, Gauge, IndustrialGauge
data string yes SVG path or procedural definition
props map of string to any
bindings map of string to BindingConf yes
visibility_expr string yes
accessibility_expr string yes
action ActionConf yes
conditions map of string to any yes
animations list of map of string to any yes
layerId string yes
locked boolean yes
children list of ShapeModel yes Children: a group’s shapes, positioned relative to the group (type Group). Groups nest at most 32 deep (MaxShapeDepth). A component instance’s children are compiled from its component when drawn and are not stored.
connector ConnectorSpec yes Connector: a pipe or line glued to objects (the designer’s pipe and line tools, web/static/js/designer/designer_connectors.js). props.points stays the drawn route, which is all the runtime draws; this says how the designer made it, so the route follows the objects when they move. Absent on every other shape.

Source: eaxScada/internal/devstudio/devstudio.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
name string
kind string
pos list of number
rot list of number
scale list of number
enabled boolean
color string yes
metadata map of string to any yes

Source: eaxScada/internal/devstudio/devstudio.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
alpha number
beta number
radius number
target list of number yes

Scene3DLayers is the 3D designer’s layer state. The designer always sent it, but it was not stored, so hidden and locked layers came back visible and unlocked after a reload, in the designer and in the operator runtime.

Source: eaxScada/internal/devstudio/devstudio.go

Key Type Optional Description
known list of string yes Known: every layer name, including layers that hold no node yet.
hidden list of string yes Hidden: layers whose nodes are not shown (designer and runtime).
locked list of string yes Locked: layers whose nodes are shown but cannot be picked or moved.

Scene3DLook is a 3D scene’s settings, as the 3D kit’s Look.state() gives them (web/static/js/3d/eax3d_kit.js LOOK_DEFAULT, LOOK_PRESETS, FLOOR_KINDS). The designer writes it only once the engineer changed something; a scene without it keeps the default look.

Loading is lenient: a display setting never stops a screen from loading (a later version’s preset read by this one after a rollback, an HA node a version behind). An unknown preset, shadow setting, quality or floor takes that member’s default, a look that is not an object is the default look, numbers are kept in their range, other members are dropped. What was replaced is remembered, and saving is strict: Validate (called by validateScreen for every save) refuses it with a plain message.

Source: eaxScada/internal/devstudio/scene3d_look.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
preset string Preset: hall (indoor plant hall, the default), outdoor_day, overcast, dusk, control_room or clean_room.
timeOfDay number TimeOfDay: hours, 0 to 24 (outdoor presets).
exposure number Exposure: 0.25 to 4.
shadows string Shadows: off, soft or high.
ao boolean AO: soft contact shadows.
quality string Quality: low, balanced or high.
floor string Floor: concrete, epoxy, grating, grass or none.

IsoMap is the tile map: w x d tiles (x east, z south).

Source: eaxScada/internal/devstudio/iso.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
w integer
d integer
level_step number yes LevelStep: the height of one raise / lower step, in world units (0: 0.5).
ground list of IsoGround yes
levels list of IsoLevel yes Levels: named elevations (a platform deck, a mezzanine) the designer offers when raising a block.

IsoView is the default view: direction Dir (0..3, quarter turns) and whether operators may rotate it (decision D18: yes unless the designer locks it; absent = true).

Source: eaxScada/internal/devstudio/iso.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
dir integer
operator_rotate boolean yes

IsoBlock is a placed block: catalog block Block (“pump_centrifugal@3”, the version pinned), its north-west footprint tile (X, Z), facing F (quarter turns, 0..3) and elevation Elev (world units). Props, Bindings, Action, Conditions and the expressions are a 2D object’s: the bindings “state” (a multistate map from values to the block’s states), “level” (fill_level) and any part’s, the action the 2D action model unchanged. Alarms: the alarm sources (tag paths, “*” a wildcard) whose alarms the block shows.

Source: eaxScada/internal/devstudio/iso.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
id string
name string yes
block string
x integer
z integer
f integer
elev number
props map of string to any yes
bindings map of string to BindingConf yes
visibility_expr string yes
accessibility_expr string yes
action ActionConf yes
conditions map of string to any yes
alarms list of string yes
locked boolean yes

IsoConnector is one connector network of a family (“pipe”, “cable”, “fence”, “walkway”): its tiles [x, z, elev] and its service (“water”). Bindings: “flow” and any other, as a 2D object’s.

Source: eaxScada/internal/devstudio/iso.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
id string
name string yes
family string
service string yes
tiles list of list of number
props map of string to any yes
bindings map of string to BindingConf yes

ReportDatasetRef is one dataset a report reads.

Source: eaxScada/internal/devstudio/report.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
ref string Ref: the dataset’s id.
alias string Alias: the name the report’s elements use ({alias.column}, Dataset).
bind map of string to string yes Bind: dataset parameter -> value; the value may hold the report’s parameters (“{day}”, “{day}+1d”); the engine evaluates it.

ReportBand is a page header or footer.

Source: eaxScada/internal/devstudio/report.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
height_mm number yes HeightMM: the band’s height (0: the height of its items).
items list of ReportBandItem yes

ReportElement is one element of a report’s body (or of a repeat group).

  • text: Text, with {Name} and {alias.column} placeholders;
  • kpi: Label, Value (a column of a dataset), Unit;
  • chart: Dataset, Chart (kind and X column), Columns (the series);
  • table: Dataset, Columns;
  • page_break: nothing;
  • repeat_group: Dataset (repeated once per row), Children.

Source: eaxScada/internal/devstudio/report.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
id string
type string
text string yes
label string yes
value ReportValue yes
unit string yes
dataset string yes
columns list of ReportColumn yes
chart ReportChart yes
children list of ReportElement yes
height_mm number yes HeightMM: the element’s height (0: its content’s).
group_by string yes Table only (the report engine, lane R): GroupBy keeps the rows of one value of the column together; Subtotal (avg, sum, min, max, count) follows each group with a subtotal row, Total adds one over every row. A subtotal’s quality is the aggregate of its input rows’ qualities.
subtotal string yes
total boolean yes

ReportSignaturePlan is the signature plan of a report template.

Source: eaxScada/internal/devstudio/report_signatures.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
mode string yes Mode: none (also when empty), review, or review_approve.
review ReportSignatureStep yes Review, Approve: the steps’ roles and meanings (Approve only with review_approve).
approve ReportSignatureStep yes
approver_differs_from_reviewer boolean yes ApproverDiffersFromReviewer, ApproverDiffersFromRunner: the approver may not be the person who reviewed, nor the person who ran the report. Unset: yes; only an explicit false lifts a rule.
approver_differs_from_runner boolean yes

TouchKeyboardSettings is the on-screen keyboard setting of a project (shared_settings.touch_keyboard) or a screen (display_settings.touch_keyboard), read by eax_keypad.js (WP05). It was not declared, so a save dropped it. Members the server does not model are kept in Extra and written back.

Source: eaxScada/internal/devstudio/devstudio.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
mode string yes project: auto | always | never; screen: inherit | auto | always | never
layouts list of string yes the first is the default layout
size string yes s | m | l
position string yes bottom_dock | near_field | center
show_range boolean yes
show_old_value boolean yes
confirm_label string yes the keypad’s confirm key text
login boolean yes project only: the keyboard on the sign-in page
layout string yes screen only: the layout this screen uses

ParamDecl declares one parameter.

Source: eaxScada/internal/devstudio/params.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
name string
description string yes
type string tagFolder | text | number | date
required boolean yes
default string yes Default: the value when none is given (“” is none).
allowed_values list of string yes AllowedValues: the only values accepted (empty: any).
allowed_pattern string yes AllowedPattern: a tag-folder pattern every value must match (Plant/Pumps/*; empty: any).

ParamSet is one named set of values (“P-101”).

Source: eaxScada/internal/devstudio/params.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
name string
description string yes
values map of string to string

BindingConf defines dynamic tag bindings

Source: eaxScada/internal/devstudio/devstudio.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
type string multistate, transform, fill_level, text_val, stroke, tag, expression
tag_path string
expression string yes
map map of string to string yes for multistate (e.g. “0”: “#ef4444”, “1”: “#10b981”)
in_range list of number yes [0, 100]
out_range list of number yes [0, 360] or [0, 200]
format string yes “%.1f °C”
targetComponentId string yes For a “property” binding: the id (or name) of the object on the screen whose property it shows.
targetProp string yes For a “property” binding: the property of that object it shows (for example fill or text).

ActionConf defines click-to-command actions

Source: eaxScada/internal/devstudio/devstudio.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
type string override_modal, toggle_bool, write_val, nav_screen, set_1, etc.
tag_path string yes
write_value number yes The value a write action writes (0 included; absent = not set).
target string yes
command string yes
confirmation string yes
confirm_message string yes
esignature_reason string yes
confirmation_var string yes ConfirmationVar is the interlock tag of confirmation “variable”: the operator confirms unless the tag exists, has Good quality and reads 0. A missing, Bad or Uncertain interlock asks. It was missing here, so a save dropped it from the action (only props.action kept it).
target_screen string yes
params map of string to string yes Popups, docks and navigation (roadmap WP11; runtime_popups.js). Params: the screen parameters an open_popup (or navigate) action passes: {Param} in the popup’s tag paths and texts is replaced by the value when the popup is drawn (e.g. {“Equip”: “P-101”, “TagRoot”: “Plant/Pumps/P101”}). The runtime refuses a value with a wildcard (* # + >), a brace or a “..” segment, so a parameter can never widen a write target; the server’s write policy enforces a templated target ({TagRoot}/Start) as a pattern.
param_set string yes ParamSet: the target screen’s parameter set to open it with (“P-101”, ScreenParams.Sets); Params given as well override the set’s values. The runtime refuses a set the screen does not have, and a value outside the screen’s allowed values or pattern.
popup_id string yes PopupID names the popup instance (close_popup closes it; an open_popup with the id of an open popup brings that one to the front). Empty: the target screen’s id, or a new id when the screen allows several copies.
modal boolean yes Modal: the popup blocks the screen behind it until closed. nil: the screen’s display settings decide (modeless by default).
position string yes Position: “center” (default), “object” (next to the object pressed) or “fixed” (PositionX, PositionY in screen pixels). The operator’s last position of a dragged popup is remembered per screen in the browser.
position_x integer yes
position_y integer yes
title string yes Title of the popup window (default: the screen’s name). {Param} works.
draggable boolean yes Draggable: nil means true.
cover_alarm_banner boolean yes CoverAlarmBanner lets the popup be placed over an alarm banner. By default a popup is kept clear of every alarm banner on the page.
dock_edge string yes DockEdge: the edge of open_dock / close_dock / toggle_dock (“top”, “bottom”, “left”, “right”).

ConnectorSpec is how a connector’s route was made. Coordinates are in the screen’s frame (a group’s offset included), in pixels.

Source: eaxScada/internal/devstudio/devstudio.go

Key Type Optional Description
routing string yes Routing: “orthogonal” (horizontal and vertical segments around the other objects; the default), “straight” (segments through the waypoints) or “curved” (a smooth curve, stored flattened in props.points).
start ConnectorEnd yes Start, End: the two ends, each glued to an object’s port or free.
end ConnectorEnd yes
waypoints list of ConnectorPoint yes Waypoints: points the route passes through, set by dragging a segment; kept until the route is reset.
locked boolean yes Locked: the route keeps its bends; only its ends follow the objects.

IsoGround is a ground area: tiles Rect [x0, z0, x1, z1] (inclusive) of Kind (“slab”, “yard”, “grass”, “water”…) at Elev.

Source: eaxScada/internal/devstudio/iso.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
rect list of integer
kind string
elev number yes

IsoLevel is a named elevation.

Source: eaxScada/internal/devstudio/iso.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
id string
name string yes
elev number

ReportBandItem is a text of a band, with page fields and parameters.

Source: eaxScada/internal/devstudio/report.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
text string
align string yes Align: “left” (default when empty), “center” or “right”.

ReportValue is one value of a dataset column: the aggregate of the column (“first” when empty: the first row, or the current row in a repeat group over the dataset).

Source: eaxScada/internal/devstudio/report.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
dataset string
column string
aggregate string yes
format string yes

ReportColumn is a column of a table, or a series of a chart.

Source: eaxScada/internal/devstudio/report.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
column string
label string yes
format string yes Format: a format by name (“0.0”, “date”, “datetime”, “percent”…); the engine reads it.

ReportChart is how a chart element draws its dataset.

Source: eaxScada/internal/devstudio/report.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
kind string Kind: line, bar, area, scatter, pie.
x string X: the column of the x axis (a time column for a trend; the category of a bar or pie).
series string yes Series (optional, the report engine, lane R): a column whose values split the rows into one line or bar series each (tag_path of a samples dataset), for each of the element’s columns.

ReportSignatureStep is one step of a plan.

Source: eaxScada/internal/devstudio/report_signatures.go

This type has its own JSON decoding: it accepts more than its fields below (see its description).

Key Type Optional Description
roles list of string yes Roles: the signer holds at least one of these roles (names; their own or through a group). Empty: any holder of the reports_sign right.
meaning string yes Meaning: printed with the signature (“Reviewed by”, “Approved by (QA)”); empty: the step’s default.

ConnectorEnd is one end of a connector. ObjectID and Port: the object it is glued to and its port (a symbol’s own port name, “top”, “right”, “bottom” or “left” for a side’s middle, or “a<degrees>” for a point of the outline by angle from the centre); both empty for a free end. X, Y: where the end is (for a glued end, where the port was when the route was made: an object that moved since is found by comparing).

Source: eaxScada/internal/devstudio/devstudio.go

Key Type Optional Description
objectId string yes
port string yes
x number
y number

ConnectorPoint is a point of a connector’s route.

Source: eaxScada/internal/devstudio/devstudio.go

Key Type Optional Description
x number
y number