Susi Server

File Reader

Node ID: fileReader · Role: Source · Realtime config: no

Description

Replays recorded sensor data from JSON line files. Supports rate control and all data types. Useful for offline analysis and testing.

Inputs / Outputs

Config aliases

FileReader, fileReader, filereader

Properties

The following fields are exposed in the node’s Properties panel in the UI. Types map to UI widgets (e.g. string → text input, number → numeric, boolean → toggle, select → dropdown, json → JSON editor).

KeyLabelTypeDefaultDescription / Notes
filenameFile Pathfilepath""Path to the JSON-lines log file to replay.
realTimeReal-Time PlaybackbooleantruePace playback so wall-clock advances at the same rate as data timestamps. Disable to use Playback Interval instead (for deterministic test harnesses).
loopLoop Playbackbooleantrue
playbackIntervalPlayback Interval (s)number0.0Used only when Real-Time Playback is off. Fixed sleep between emitted samples in seconds (0 = no sleep, max speed).
exitOnEndExit Process On EndbooleanfalseExit the process when playback reaches end-of-file (used by deterministic test harnesses).

Example node definition

A full node definition in config.json looks like the block below. Paste it under the sources key of your config, keyed by the node’s instance name (any identifier; it doesn’t have to match the node ID).

{
  "sources": {
    "fileReader": {
      "outEndpoint": "inproc://fileReader_data",
      "settings": {
        "exitOnEnd": false,
        "filename": "",
        "loop": true,
        "playbackInterval": 0.0,
        "realTime": true
      }
    }
  }
}

Field reference

FieldPurpose
outEndpointZMQ / inproc endpoint this source binds to publish its output. The runtime auto-generates one if omitted.
settingsAll user-configurable fields — see the Properties table above.

Connections can also be declared at the top-level connections array when settings.explicitConnections is true, as an alternative to filling inputEndpoints on each node.

Loading documentation…