OTDeck

Docs · Commissioning tools

Trends

The trend panel (Trends in the title bar) plots numeric values from any open connection on one time axis:

  • Trend on an MQTT topic: the bare payload, a JSON field (value, a.b[2].c) or a Sparkplug B metric;
  • the chart icon on a polled Modbus row (the value of a polled range);
  • Trend on an OPC UA node or a BACnet object (it joins the watch list, which is what delivers its values).

Up to 32 series, windows of 1 min, 5 min, 15 min and 1 h, one shared axis or one lane per series, a cursor readout of every series. Each series keeps up to 36 000 points (one hour at 10 Hz) in a ring buffer, so memory stays flat however long OTDeck runs. Free shows the last 5 minutes; Pro the whole hour. Record and Export (Pro) are described in Getting started with OTDeck.

After a restart

The panel comes back as you left it.

  • The series (what is plotted: the connection, the topic and field, the register, the node or object, the label, the unit and the colour) are saved whenever you add, rename or remove one, in trends.json in the app directory. On the next start they are on the panel again. A series fills again as soon as its connection is open (connect as usual). An OPC UA node or a BACnet object of a series is subscribed again on connect even if you removed it from the watch list. Series of connections deleted in the meantime are dropped.
  • The last points: when OTDeck quits normally it writes the last hour of every series (Free: the last 5 minutes, as on screen) to trend-points.bin.gz. On the next start they are shown before a dashed line marked before restart, on a light grey band, and the line breaks there: the time OTDeck was closed is a gap, never a straight line drawn across it. After a crash nothing new is written; the next start shows the points of the last clean exit if they are still inside the window.
  • Watch lists were already kept in the connection: the OPC UA watch list and the BACnet watch list (subscribed again on connect), the polled Modbus ranges and the MQTT subscriptions. Nothing changes there.

The values a device sends while OTDeck is closed are not collected: the gap is real. The points file is capped at 50 MB (usually a few MB; past the cap the oldest points are left out). Both files carry a format version. A missing file is an empty panel; a damaged file, or one written by a newer OTDeck, is renamed to *.bad and the panel starts empty instead of failing.

Where the app directory is: Getting started with OTDeck (or OTDECK_DIR when it is set).

For agents

trend_snapshot (otdeck-mcp) reads the panel over the last ≤ 300 s while OTDeck is open, restored points included (AI agents (MCP)).