Files
EOS/tests/testdata/docs/_generated/configserver.md
Bobby Noelte eb9e966de9 fix: move data management to async (#1015)
FAstAPI is an async framework. Data may be imported and exported, load and save, set and get
asynchronously. Prevent interleaving data operations to corrupt the data. In the previous design
sync and async data access was intermixed leading to data corruption.

The basic data classes DataSequence and DataContainer and the derived classes like Provider and
Measurement now are async. Data access is protected by several async locks.

To support the async design of the data classes the database interface became async.

The energy management is also adapted to the new async design. Optimization is still off-loaded
to another thread, but the prepration for the optimization and the post optimization actions now
follow the async design.

Adapter operations are now also protected by async locks.

Tests were adapted to the async design and new tests were created.

Besides this major fix several other improvements and fixes are included in this PR.

* fix: key_to_dict/list/array only regard data records with key value set.

  Before the exclusion of no value data records was only done if the dropna flag was set.

* fix: test for visual result pdf generation

  Due to updates in the library the generated charts text was a little bit different.
  Adapt the test to create the comaprison pdf in the test data durectory and
  update the reference pdf.

* chore: Remove MutableMapping from DataSequence and DataContainer.

  Mutable Mapping does not fit to the now async design.

* chore: Add NoDB database backend

  This backend implements the full database backend interface but performs
  no actual persistence. It is intended for configurations where database
  persistence is disabled (`provider=None`).

* chore: Improve measurement data import testing with real world scenarios.

  Added two new endpoints to support testing.

* chore: Add mermaid to supported documentation tools

* chore: Add documentation about async design

* chore: Add documentation about generic data handling

  Covers the basics of measurement and prediction time series data handling.

* chore: Add empty lines around markdown lists.

* chore: sync pre-commit config to updated package versions

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2026-07-15 16:38:53 +02:00

2.2 KiB

Server Configuration

:::{table} server :widths: 10 20 10 5 5 30 :align: left

Name Environment Variable Type Read-Only Default Description
eosdash_host EOS_SERVER__EOSDASH_HOST Optional[str] rw None EOSdash server IP address. Defaults to EOS server IP address.
eosdash_port EOS_SERVER__EOSDASH_PORT Optional[int] rw None EOSdash server IP port number. Defaults to EOS server IP port number + 1.
eosdash_supervise_interval_sec EOS_SERVER__EOSDASH_SUPERVISE_INTERVAL_SEC int rw 10 Supervision interval for EOS server to supervise EOSdash [seconds].
host EOS_SERVER__HOST Optional[str] rw 127.0.0.1 EOS server IP address. Defaults to 127.0.0.1.
port EOS_SERVER__PORT Optional[int] rw 8503 EOS server IP port number. Defaults to 8503.
reload EOS_SERVER__RELOAD Optional[bool] rw False Enable server auto-reload for debugging or development. Default is False. Monitors the package directory for changes and reloads the server.
run_as_user EOS_SERVER__RUN_AS_USER Optional[str] rw None The name of the target user to switch to. If None (default), the current effective user is used and no privilege change is attempted.
startup_eosdash EOS_SERVER__STARTUP_EOSDASH Optional[bool] rw True EOS server to start EOSdash server. Defaults to True.
verbose EOS_SERVER__VERBOSE Optional[bool] rw False Enable debug output
:::

Example Input/Output

   {
       "server": {
           "host": "127.0.0.1",
           "port": 8503,
           "verbose": false,
           "startup_eosdash": true,
           "eosdash_host": "127.0.0.1",
           "eosdash_port": 8504,
           "eosdash_supervise_interval_sec": 10,
           "run_as_user": null,
           "reload": true
       }
   }