LooT Manuals
Deutsch

Queries and live values

Read the values of a node with loot query, follow new values with loot live, and view, download, start and stop the recordings of stream nodes with loot stream.

Overview#

CommandPurpose
loot queryRead the stored values of a node in a time range
loot liveShow new values of one or more nodes as they arrive
loot stream listList the recording sessions of a stream node
loot stream downloadDownload a session or a time excerpt into a file
loot stream start, loot stream stopStart or stop a recording on the device

All commands need the Read permission on the node (Permissions); loot stream start and loot stream stop additionally need Execute. Exporting time series for other programs, aggregating and converting units is done by loot values export; the commands on the Analysis page compute spectra and forecasts.

loot query#

Reads the stored raw values of a node.

text
loot query <path> [--from <time>] [--to <time>] [--limit <count>] [--order <asc|desc>]
           [--unit <unit>] [--json]
Argument or optionMeaning
<path>Path of the node
--from <time>Start of the range, inclusive, ISO 8601. Without an offset your local time applies, with --utc UTC. Without it the start is open.
--to <time>End of the range, exclusive, otherwise like --from
--limit <count>Maximum number of values (default: 1000, server maximum: 50,000)
--order <asc|desc>Order: asc ascending by time (default) or desc descending, newest first
--unit <unit>Target unit of the conversion, for example °F. Only for numeric values and only within the same quantity (temperature to temperature, not to pressure).
--jsonPrints the server's response as JSON instead of a table
console
$ loot query "Brewery/Plant.Line1.Temperature" --from 2026-11-30T14:00 --to 2026-11-30T15:00
Zeitstempel                       Wert [°C]
--------------------------------  ---------
2026-11-30T14:02:11.482913+01:00  18.4
2026-11-30T14:05:00.000000+01:00  18.9
2026-11-30T14:07:30.120044+01:00  19.1

The header of the value column names the node's unit. The last values, newest first, in Fahrenheit:

console
$ loot query "Brewery/Plant.Line1.Temperature" --order desc --limit 5 --unit °F
Zeitstempel                       Wert [°F]
--------------------------------  ---------
2026-11-30T14:07:30.120044+01:00  66.38
2026-11-30T14:05:00.000000+01:00  66.02
2026-11-30T14:02:11.482913+01:00  65.12

With a range in UTC and --utc, the times carry a Z:

console
$ loot query "Brewery/Plant.Line1.Temperature" --from 2026-11-30T13:00:00Z --to 2026-11-30T14:00:00Z --utc
Zeitstempel                  Wert [°C]
---------------------------  ---------
2026-11-30T13:02:11.482913Z  18.4
2026-11-30T13:05:00.000000Z  18.9
2026-11-30T13:07:30.120044Z  19.1

What the table looks like#

Value typeColumns
Numbers, truth values, textsZeitstempel (timestamp) and Wert (value; with the unit in square brackets if the node has one)
geoBreite, Länge, Höhe [m], Genauigkeit [m], Geschwindigkeit [m/s], Richtung [°] (latitude, longitude, altitude, accuracy, speed, heading); missing details as a dash
compoundOne column per field, in the order of the fields; a field without a value shows a dash
customGröße [Bytes] (size), Inhaltstyp (content type), Dateiname (file name). loot download fetches the content.

A timestamp without a value (a deliberate gap) appears as (kein Wert). Stream nodes have no values in the usual sense; loot stream list shows their recordings.

Truncated output#

If the range holds more values than --limit, loot shortens the output and says so; the notice goes to the error output, so the table stays clean:

text
Hinweis: Die Ausgabe ist auf 1000 Werte begrenzt (--limit erhöhen oder den Zeitraum eingrenzen).

With --order desc you get the most recent values, with --order asc the oldest of the range. Fetch very large amounts better with loot values export.

JSON for programs#

With --json, loot prints the server's response unchanged, in UTC (one line of JSON, keys in camelCase): the node id (nodeRef), the value type (valueType), the list points with ts and value per entry, truncated and the unit unit. This lets you process it further, for example with jq:

console
$ loot query "Brewery/Plant.Line1.Temperature" --limit 3 --json | jq -r '.points[] | [.ts, .value] | @csv'
"2026-11-30T13:02:11.482913Z",18.4
"2026-11-30T13:05:00.000000Z",18.9
"2026-11-30T13:07:30.120044Z",19.1

loot live#

Shows new values of one or more nodes as they arrive. The command runs until you end it with Ctrl+C; that counts as a normal end (exit code 0).

text
loot live <paths>… [--unit <units>]
Argument or optionMeaning
<paths>Paths of one or more nodes, separated by spaces
--unit <units>Target units of the conversion, one per quantity, separated by commas, for example °F,l. Applies only to nodes of a matching quantity with numeric values.
console
$ loot live "Brewery/Plant.Line1.Temperature" "Brewery/Plant.Line1.Running"
Warte auf Werte von 2 Node(s) … (Strg+C beendet)
2026-11-30T14:07:30.120044+01:00  Brewery/Plant.Line1.Temperature = 19.1
2026-11-30T14:07:31.000518+01:00  Brewery/Plant.Line1.Running = true
2026-11-30T14:08:30.119872+01:00  Brewery/Plant.Line1.Temperature = 19.2

Each line names the timestamp of the value, the path and the value. A converted value also names its unit:

console
$ loot live "Brewery/Plant.Line1.Temperature" --unit °F
Warte auf Werte von 1 Node(s) … (Strg+C beendet)
2026-11-30T14:09:30.121400+01:00  Brewery/Plant.Line1.Temperature = 66.74 °F
  • loot live shows only new values; fetch earlier ones with loot query.
  • If your read permission for a node is revoked during the display, loot reports on the error output: Live für <path> beendet: Das Leserecht wurde entzogen. (live for the path ended: the read permission was revoked).
  • If no connection can be established, the command ends with Fehler: Live-Verbindung nicht möglich: … and exit code 1.

loot stream list#

Lists the sessions of a stream node, newest first. A stream node continuously records audio or video from a device; each recording is a session (see compound and stream).

text
loot stream list <path> [--state <ended|running>] [--limit <count>]
Argument or optionMeaning
<path>Path of the stream node
--state <ended|running>Only running (running) or ended (ended) sessions
--limit <count>Maximum number of sessions (newest first)
console
$ loot stream list "Brewery/Plant.Line1.Microphone" --limit 2
Sitzung                           Beginn                            Zustand  Dauer    Bytes      Format  Codec  Segmente  Hinweise
--------------------------------  --------------------------------  -------  -------  ---------  ------  -----  --------  --------
5f0c2d9e8a7b4c3d9e1f0a2b3c4d5e6f  2026-11-30T14:20:00.000000+01:00  läuft    0:12:41  81250304   wav     -      25        -
a1b2c3d4e5f60718293a4b5c6d7e8f90  2026-11-30T09:00:00.000000+01:00  beendet  0:20:00  345600044  wav     -      69        -

The Sitzung (session) column holds the id you need for loot stream download --session. Zustand (state) is läuft (running) or the reason it ended: beendet (ended), Verbindung verloren (connection lost), Höchstdauer erreicht (maximum duration reached), Datenrate überschritten (data rate exceeded), Fehler (error) or Server beendet (server stopped). If the node has no session, the command reports Keine Sitzung an '<path>'.

loot stream download#

Downloads a session or a time excerpt as a file. The data is written to the file continuously, so even very large recordings are no problem; progress appears on the error output.

text
loot stream download <path> --session <id> [--from <time>] [--to <time>] [-o <file>]
Argument or optionMeaning
<path>Path of the stream node
--session <id>Required. Id of the session (the Sitzung column of loot stream list)
--from <time>Only from this time on, ISO 8601. The cut is segment-accurate, not sample-accurate.
--to <time>Only up to this time, like --from
-o <file>, --out <file>, --output <file>Target file. Default: the file name from the server, otherwise node name and start of the session with a matching extension (.wav, .mp4 …) in the current directory.

The file format matches the node's format: wav as a WAV file with header, mp4 as MP4, raw as raw data. Running sessions deliver the data up to the last stored segment.

console
$ loot stream download "Brewery/Plant.Line1.Microphone" --session a1b2c3d4e5f60718293a4b5c6d7e8f90 --from 2026-11-30T09:10:00 --to 2026-11-30T09:20:00 -o early-shift.wav
Sitzung gespeichert: early-shift.wav (172800044 Bytes, audio/wav).

loot stream start#

Triggers the Stream starten command (start stream) on the node: the responsible device begins a recording. Every stream node has this command; the recording itself is done by a device that is responsible for the node and has the Execute permission.

text
loot stream start <path> [--wait] [--timeout <seconds>]
Argument or optionMeaning
<path>Path of the stream node
--waitWaits for the device's result. Exit code 0 only on success.
--timeout <seconds>Waiting time for --wait in seconds (default: 30)

Without --wait the command returns as soon as the command is triggered:

console
$ loot stream start "Brewery/Plant.Line1.Microphone"
Kommando 'Stream starten' an 'Brewery/Plant.Line1.Microphone' ausgelöst (Auslösung 87, ausstehend, läuft ab 2026-11-30T14:21:00.000000+01:00).

With --wait, loot shows every status change and ends with the result:

console
$ loot stream start "Brewery/Plant.Line1.Microphone" --wait --timeout 60
Kommando 'Stream starten' an 'Brewery/Plant.Line1.Microphone' ausgelöst (Auslösung 88, ausstehend, läuft ab 2026-11-30T14:22:00.000000+01:00).
Status: zugestellt
Erfolgreich

If the device reports an error, cannot be reached or the waiting time runs out, the command ends with Fehler: … and exit code 1 (for example Nach 60 s noch nicht abgeschlossen (Status: zugestellt)., meaning not finished after 60 s). For commands in general see Connections and commands.

loot stream stop#

Triggers the Stream beenden command (stop stream): the responsible device ends the running recording. Arguments and options are the same as for loot stream start.

text
loot stream stop <path> [--wait] [--timeout <seconds>]
Argument or optionMeaning
<path>Path of the stream node
--waitWaits for the device's result. Exit code 0 only on success.
--timeout <seconds>Waiting time for --wait in seconds (default: 30)
console
$ loot stream stop "Brewery/Plant.Line1.Microphone" --wait
Kommando 'Stream beenden' an 'Brewery/Plant.Line1.Microphone' ausgelöst (Auslösung 89, ausstehend, läuft ab 2026-11-30T14:55:00.000000+01:00).
Status: zugestellt
Erfolgreich

Both commands require a stream node; for other nodes they report Fehler: '<path>' ist kein Stream Node ….

A product of Rheinwert Datentechnik · rheinwert.deVersion: LooT 0.9.10