Befehle

Alle Befehle, Argumente und Optionen von smard 0.0.9, direkt aus der CLI gelesen.

Die Beschreibungen der Befehle, Argumente und Optionen stammen direkt aus der CLI und sind englisch.

Globale Optionen

Diese Optionen gelten für jeden Befehl.

OptionBeschreibungStandard
-V, --version output the version number
--base-url <url> API base URL https://www.smard.de
--timeout <ms> time limit per request in milliseconds, whole response included (0 = no timeout) 30000
--user-agent <ua> User-Agent header value
--max-retries <n> retries for transient 429/503 responses 2
--max-response-bytes <n> cap response body size in bytes (0 = unlimited; default 100 MiB)
--compact print JSON on a single line instead of pretty-printed

smard timestamps

List the available window timestamps for a series

smard timestamps [options] <filter> <region> <resolution>

Argumente

<filter> erforderlich
<region> erforderlich
<resolution> erforderlich

smard series

Get one window's data (timestamp from `timestamps`)

smard series [options] <filter> <region> <resolution> <timestamp>

Argumente

<filter> erforderlich
<region> erforderlich
<resolution> erforderlich
<timestamp> erforderlich

smard latest

Get the newest available window's data in one call

smard latest [options] <filter> <region> <resolution>

Argumente

<filter> erforderlich
<region> erforderlich
<resolution> erforderlich

smard table

Get quarter-hour table_data for one window

smard table [options] <filter> <region> <timestamp>

Argumente

<filter> erforderlich
<region> erforderlich
<timestamp> erforderlich

smard filters

List the documented chart-data filter ids

smard filters [options]

Optionen

OptionBeschreibungStandard
--group <group> only show one group: generation|consumption|price|forecast

smard regions

List the valid region codes

smard regions [options]