2025-01-03 00:31:20 +01:00
# Akkudoktor-EOS
2026-07-29 12:56:08 +02:00
**Version** : `v0.3.0.dev2607290898922686`
2025-01-03 00:31:20 +01:00
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-03 00:31:20 +01:00
**Description** : This project provides a comprehensive solution for simulating and optimizing an energy system based on renewable energy sources. With a focus on photovoltaic (PV) systems, battery storage (batteries), load management (consumer requirements), heat pumps, electric vehicles, and consideration of electricity price data, this system enables forecasting and optimization of energy flow and costs over a specified period.
2026-07-18 02:08:25 -04:00
## Currency Information
All monetary values in this API are expressed in the locally configured currency of the EOS installation. The system is designed to work with any currency (e.g., EUR, SEK, CHF, USD, GBP, etc.). Each installation uses a single, consistent currency throughout all endpoints and responses.
Values are given in whole currency units, not in hundredth subunits: a value of `0.0003` in an installation configured for Euro means 0.0003 EUR/Wh (i.e. 0.30 EUR/kWh), never cents. The same applies to all totals (e.g. `total_costs` of `1.5` = 1.50 EUR).
Field names containing cost, price, revenue, tariff, or similar monetary terms (e.g., `total_costs` , `electricity_price_per_wh` , `revenue_per_hour` ) represent amounts in the configured currency, without explicit currency designation in the field name to maintain currency-neutrality.
## Deprecated Field Names
The genetic optimization API fields were renamed from German to English. For backward compatibility the old German field names (e.g. `gesamtlast` , `pv_prognose_wh` , `Gesamtbilanz_Euro` ) are still accepted on input and are emitted in responses alongside the English names, marked as deprecated in the schema. They will be removed in a future release — new clients should use the English field names only.
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
**Base URL** : `No base URL provided.`
**Endpoints** :
2025-01-05 14:41:07 +01:00
## POST /gesamtlast
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_gesamtlast_gesamtlast_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_gesamtlast_gesamtlast_post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
Fastapi Gesamtlast
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-05 14:41:07 +01:00
Deprecated: Total Load Prediction with adjustment.
Endpoint to handle total load prediction adjusted by latest measured data.
Total load prediction starts at 00.00.00 today and is provided for 48 hours.
If no prediction values are available the missing ones at the start of the series are
filled with the first available prediction value.
Note:
2025-11-01 00:49:11 +01:00
Use '/v1/prediction/list?key=loadforecast_power_w' instead.
2025-01-05 14:41:07 +01:00
Load energy meter readings to be added to EOS measurement by:
2025-10-28 02:50:31 +01:00
'/v1/measurement/value' or
'/v1/measurement/series' or
'/v1/measurement/dataframe' or
'/v1/measurement/data'
2025-11-13 22:53:46 +01:00
"""
2025-01-05 14:41:07 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
**Request Body** :
- `application/json` : {
"$ref": "#/components/schemas/GesamtlastRequest "
}
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
## GET /gesamtlast_simple
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_gesamtlast_simple_gesamtlast_simple_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_gesamtlast_simple_gesamtlast_simple_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
Fastapi Gesamtlast Simple
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-05 14:41:07 +01:00
Deprecated: Total Load Prediction.
Endpoint to handle total load prediction.
Total load prediction starts at 00.00.00 today and is provided for 48 hours.
If no prediction values are available the missing ones at the start of the series are
filled with the first available prediction value.
2025-01-21 16:56:42 +01:00
Args:
year_energy (float): Yearly energy consumption in Wh.
2025-01-05 14:41:07 +01:00
Note:
2025-01-18 14:26:34 +01:00
Set LoadAkkudoktor as provider, then update data with
2025-01-05 14:41:07 +01:00
'/v1/prediction/update'
and then request data with
2025-11-01 00:49:11 +01:00
'/v1/prediction/list?key=loadforecast_power_w' instead.
2025-11-13 22:53:46 +01:00
"""
2025-01-05 14:41:07 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
**Parameters** :
- `year_energy` (query, required): No description provided.
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
## POST /optimize
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_optimize_optimize_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_optimize_optimize_post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
Fastapi Optimize
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-10-28 02:50:31 +01:00
Deprecated: Optimize.
Endpoint to handle optimization.
2026-07-29 12:56:08 +02:00
Uses the `classic` GENETIC0 optimisation algorithm (__NO__ 15-minutes slots).
2025-10-28 02:50:31 +01:00
Note:
Use automatic optimization instead.
2026-07-29 12:56:08 +02:00
"v1/energy-management/optimization/solution/GENETIC0"
2025-11-13 22:53:46 +01:00
"""
2025-10-28 02:50:31 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
2025-01-05 14:41:07 +01:00
**Parameters** :
- `start_hour` (query, optional): Defaults to current hour of the day.
2025-10-28 02:50:31 +01:00
- `ngen` (query, optional): Number of indivuals to generate for genetic algorithm.
2025-01-19 00:42:39 +01:00
2025-01-05 14:41:07 +01:00
**Request Body** :
- `application/json` : {
2026-07-29 12:56:08 +02:00
"$ref": "#/components/schemas/Genetic0OptimizationParameters "
2025-01-05 14:41:07 +01:00
}
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
## GET /pvforecast
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_pvforecast_pvforecast_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_pvforecast_pvforecast_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
Fastapi Pvforecast
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-05 14:41:07 +01:00
Deprecated: PV Forecast Prediction.
Endpoint to handle PV forecast prediction.
PVForecast starts at 00.00.00 today and is provided for 48 hours.
If no forecast values are available the missing ones at the start of the series are
filled with the first available forecast value.
Note:
2025-01-18 14:26:34 +01:00
Set PVForecastAkkudoktor as provider, then update data with
2025-01-05 14:41:07 +01:00
'/v1/prediction/update'
and then request data with
'/v1/prediction/list?key=pvforecast_ac_power' and
'/v1/prediction/list?key=pvforecastakkudoktor_temp_air' instead.
2025-11-13 22:53:46 +01:00
"""
2025-01-05 14:41:07 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
**Responses** :
- **200**: Successful Response
---
## GET /strompreis
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_strompreis_strompreis_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_strompreis_strompreis_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
Fastapi Strompreis
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2026-07-18 02:08:25 -04:00
Deprecated: Electricity Market Price Prediction per Wh [amount/Wh].
2025-01-05 14:41:07 +01:00
Electricity prices start at 00.00.00 today and are provided for 48 hours.
If no prices are available the missing ones at the start of the series are
filled with the first available price.
Note:
Electricity price charges are added.
Note:
2025-01-18 14:26:34 +01:00
Set ElecPriceAkkudoktor as provider, then update data with
2025-01-05 14:41:07 +01:00
'/v1/prediction/update'
and then request data with
'/v1/prediction/list?key=elecprice_marketprice_wh' or
'/v1/prediction/list?key=elecprice_marketprice_kwh' instead.
2025-11-13 22:53:46 +01:00
"""
2025-01-05 14:41:07 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
**Responses** :
- **200**: Successful Response
---
2025-02-12 21:35:51 +01:00
## GET /v1/admin/cache
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-02-12 21:35:51 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_admin_cache_get_v1_admin_cache_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_admin_cache_get_v1_admin_cache_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
Fastapi Admin Cache Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-02-12 21:35:51 +01:00
Current cache management data.
Returns:
data (dict): The management data.
2025-11-13 22:53:46 +01:00
"""
2025-02-12 21:35:51 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
**Responses** :
- **200**: Successful Response
---
## POST /v1/admin/cache/clear
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-02-12 21:35:51 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_admin_cache_clear_post_v1_admin_cache_clear_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_admin_cache_clear_post_v1_admin_cache_clear_post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
Fastapi Admin Cache Clear Post
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-10-28 02:50:31 +01:00
Clear the cache.
2025-02-12 21:35:51 +01:00
2025-10-28 02:50:31 +01:00
Deletes all cache files.
2025-02-12 21:35:51 +01:00
Returns:
data (dict): The management data after cleanup.
2025-11-13 22:53:46 +01:00
"""
2025-02-12 21:35:51 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
**Responses** :
- **200**: Successful Response
2025-10-28 02:50:31 +01:00
---
## POST /v1/admin/cache/clear-expired
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-10-28 02:50:31 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_admin_cache_clear_expired_post_v1_admin_cache_clear-expired_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_admin_cache_clear_expired_post_v1_admin_cache_clear-expired_post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
Fastapi Admin Cache Clear Expired Post
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-10-28 02:50:31 +01:00
Clear the cache from expired data.
Deletes expired cache files.
Returns:
data (dict): The management data after cleanup.
2025-11-13 22:53:46 +01:00
"""
2025-10-28 02:50:31 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
**Responses** :
- **200**: Successful Response
2025-02-12 21:35:51 +01:00
---
## POST /v1/admin/cache/load
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-02-12 21:35:51 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_admin_cache_load_post_v1_admin_cache_load_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_admin_cache_load_post_v1_admin_cache_load_post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
Fastapi Admin Cache Load Post
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-02-12 21:35:51 +01:00
Load cache management data.
Returns:
data (dict): The management data that was loaded.
2025-11-13 22:53:46 +01:00
"""
2025-02-12 21:35:51 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
**Responses** :
- **200**: Successful Response
---
## POST /v1/admin/cache/save
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-02-12 21:35:51 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_admin_cache_save_post_v1_admin_cache_save_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_admin_cache_save_post_v1_admin_cache_save_post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
Fastapi Admin Cache Save Post
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-02-12 21:35:51 +01:00
Save the current cache management data.
Returns:
data (dict): The management data that was saved.
2025-11-13 22:53:46 +01:00
"""
2025-02-12 21:35:51 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
**Responses** :
- **200**: Successful Response
---
2026-07-15 16:38:53 +02:00
## POST /v1/admin/database/save
<!-- pyml disable line-length -->
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_admin_database_save_post_v1_admin_database_save_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_admin_database_save_post_v1_admin_database_save_post )
<!-- pyml enable line-length -->
Fastapi Admin Database Save Post
<!-- pyml disable line-length -->
```python
"""
Save in memory data to database.
Returns:
data (dict): The database stats after saving the records.
"""
```
<!-- pyml enable line-length -->
**Responses** :
- **200**: Successful Response
---
2026-02-22 14:12:42 +01:00
## GET /v1/admin/database/stats
<!-- pyml disable line-length -->
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_admin_database_stats_get_v1_admin_database_stats_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_admin_database_stats_get_v1_admin_database_stats_get )
<!-- pyml enable line-length -->
Fastapi Admin Database Stats Get
<!-- pyml disable line-length -->
```python
"""
Get statistics from database.
Returns:
data (dict): The database statistics
"""
```
<!-- pyml enable line-length -->
**Responses** :
- **200**: Successful Response
---
## POST /v1/admin/database/vacuum
<!-- pyml disable line-length -->
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_admin_database_vacuum_post_v1_admin_database_vacuum_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_admin_database_vacuum_post_v1_admin_database_vacuum_post )
<!-- pyml enable line-length -->
Fastapi Admin Database Vacuum Post
<!-- pyml disable line-length -->
```python
"""
Remove old records from database.
Returns:
data (dict): The database stats after removal of old records.
"""
```
<!-- pyml enable line-length -->
**Responses** :
- **200**: Successful Response
---
2025-02-12 21:35:51 +01:00
## POST /v1/admin/server/restart
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-02-12 21:35:51 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_admin_server_restart_post_v1_admin_server_restart_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_admin_server_restart_post_v1_admin_server_restart_post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
Fastapi Admin Server Restart Post
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-02-12 21:35:51 +01:00
Restart the server.
Restart EOS properly by starting a new instance before exiting the old one.
2025-11-13 22:53:46 +01:00
"""
2025-02-12 21:35:51 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
**Responses** :
- **200**: Successful Response
---
## POST /v1/admin/server/shutdown
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-02-12 21:35:51 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_admin_server_shutdown_post_v1_admin_server_shutdown_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_admin_server_shutdown_post_v1_admin_server_shutdown_post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
Fastapi Admin Server Shutdown Post
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-02-12 21:35:51 +01:00
Shutdown the server.
2025-11-13 22:53:46 +01:00
"""
2025-02-12 21:35:51 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
**Responses** :
- **200**: Successful Response
---
2025-01-03 00:31:20 +01:00
## GET /v1/config
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_config_get_v1_config_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_config_get_v1_config_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Fastapi Config Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-03 00:31:20 +01:00
Get the current configuration.
2025-01-05 14:41:07 +01:00
Returns:
configuration (ConfigEOS): The current configuration.
2025-11-13 22:53:46 +01:00
"""
2025-01-03 00:31:20 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
**Responses** :
- **200**: Successful Response
---
## PUT /v1/config
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_config_put_v1_config_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_config_put_v1_config_put )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Fastapi Config Put
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-19 21:47:21 +01:00
Update the current config with the provided settings.
2025-01-05 14:41:07 +01:00
2025-01-19 21:47:21 +01:00
Note that for any setting value that is None or unset, the configuration will fall back to
values from other sources such as environment variables, the EOS configuration file, or default
values.
2025-01-03 00:31:20 +01:00
Args:
2025-01-05 14:41:07 +01:00
settings (SettingsEOS): The settings to write into the current settings.
Returns:
configuration (ConfigEOS): The current configuration after the write.
2025-11-13 22:53:46 +01:00
"""
2025-01-03 00:31:20 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
2025-01-19 00:42:39 +01:00
**Request Body** :
2025-01-03 00:31:20 +01:00
2025-01-19 00:42:39 +01:00
- `application/json` : {
"$ref": "#/components/schemas/SettingsEOS "
}
2025-01-05 14:41:07 +01:00
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-11-03 17:40:25 +01:00
## GET /v1/config/backup
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-11-03 17:40:25 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_config_backup_get_v1_config_backup_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_config_backup_get_v1_config_backup_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-11-03 17:40:25 +01:00
Fastapi Config Backup Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-11-03 17:40:25 +01:00
Get the EOS configuration backup identifiers and backup metadata.
Returns:
dict[str, dict[str, Any]]: Mapping of backup identifiers to metadata.
2025-11-13 22:53:46 +01:00
"""
2025-11-03 17:40:25 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-11-03 17:40:25 +01:00
**Responses** :
- **200**: Successful Response
---
2025-01-05 14:41:07 +01:00
## PUT /v1/config/file
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_config_file_put_v1_config_file_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_config_file_put_v1_config_file_put )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
Fastapi Config File Put
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-05 14:41:07 +01:00
Save the current configuration to the EOS configuration file.
Returns:
configuration (ConfigEOS): The current configuration that was saved.
2025-11-13 22:53:46 +01:00
"""
2025-01-05 14:41:07 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
**Responses** :
- **200**: Successful Response
---
2025-02-12 21:35:51 +01:00
## POST /v1/config/reset
2025-01-05 14:41:07 +01:00
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-02-12 21:35:51 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_config_reset_post_v1_config_reset_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_config_reset_post_v1_config_reset_post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
2025-02-12 21:35:51 +01:00
Fastapi Config Reset Post
2025-01-05 14:41:07 +01:00
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-22 23:47:28 +01:00
Reset the configuration to the EOS configuration file.
2025-01-05 14:41:07 +01:00
Returns:
configuration (ConfigEOS): The current configuration after update.
2025-11-13 22:53:46 +01:00
"""
2025-01-05 14:41:07 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
**Responses** :
- **200**: Successful Response
---
2025-11-03 17:40:25 +01:00
## PUT /v1/config/revert
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-11-03 17:40:25 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_config_revert_put_v1_config_revert_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_config_revert_put_v1_config_revert_put )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-11-03 17:40:25 +01:00
Fastapi Config Revert Put
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-11-03 17:40:25 +01:00
Revert the configuration to a EOS configuration backup.
Returns:
configuration (ConfigEOS): The current configuration after revert.
2025-11-13 22:53:46 +01:00
"""
2025-11-03 17:40:25 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-11-03 17:40:25 +01:00
**Parameters** :
- `backup_id` (query, required): EOS configuration backup ID.
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-01-26 20:54:27 +01:00
## GET /v1/config/{path}
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-26 20:54:27 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_config_get_key_v1_config__path__get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_config_get_key_v1_config__path__get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-26 20:54:27 +01:00
Fastapi Config Get Key
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-26 20:54:27 +01:00
Get the value of a nested key or index in the config model.
Args:
path (str): The nested path to the key (e.g., "general/latitude" or "optimize/nested_list/0").
Returns:
value (Any): The value of the selected nested key.
2025-11-13 22:53:46 +01:00
"""
2025-01-26 20:54:27 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-26 20:54:27 +01:00
**Parameters** :
- `path` (path, required): The nested path to the configuration key (e.g., general/latitude).
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
## PUT /v1/config/{path}
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-26 20:54:27 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_config_put_key_v1_config__path__put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_config_put_key_v1_config__path__put )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-26 20:54:27 +01:00
Fastapi Config Put Key
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-26 20:54:27 +01:00
Update a nested key or index in the config model.
Args:
path (str): The nested path to the key (e.g., "general/latitude" or "optimize/nested_list/0").
value (Any): The new value to assign to the key or index at path.
Returns:
configuration (ConfigEOS): The current configuration after the update.
2025-11-13 22:53:46 +01:00
"""
2025-01-26 20:54:27 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-26 20:54:27 +01:00
**Parameters** :
- `path` (path, required): The nested path to the configuration key (e.g., general/latitude).
**Request Body** :
- `application/json` : {
2025-03-27 21:53:01 +01:00
"anyOf": [
{},
{
"type": "null"
}
],
"description": "The value to assign to the specified configuration path (can be None).",
2025-01-26 20:54:27 +01:00
"title": "Value"
}
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-10-28 02:50:31 +01:00
## GET /v1/energy-management/optimization/solution
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-10-28 02:50:31 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_energy_management_optimization_solution_get_v1_energy-management_optimization_solution_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_energy_management_optimization_solution_get_v1_energy-management_optimization_solution_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
Fastapi Energy Management Optimization Solution Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-10-28 02:50:31 +01:00
Get the latest solution of the optimization.
2025-11-13 22:53:46 +01:00
"""
2025-10-28 02:50:31 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
**Responses** :
- **200**: Successful Response
---
2026-07-29 12:56:08 +02:00
## GET /v1/energy-management/optimization/solution/{algorithm}
<!-- pyml disable line-length -->
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_energy_management_optimization_solution_algorithm_get_v1_energy-management_optimization_solution__algorithm__get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_energy_management_optimization_solution_algorithm_get_v1_energy-management_optimization_solution__algorithm__get )
<!-- pyml enable line-length -->
Fastapi Energy Management Optimization Solution Algorithm Get
<!-- pyml disable line-length -->
```python
"""
Get the latest algorithm specific solution of the optimization.
Args:
algorithm: Optimization algorithm
"""
```
<!-- pyml enable line-length -->
**Parameters** :
- `algorithm` (path, required): No description provided.
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-10-28 02:50:31 +01:00
## GET /v1/energy-management/plan
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-10-28 02:50:31 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_energy_management_plan_get_v1_energy-management_plan_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_energy_management_plan_get_v1_energy-management_plan_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
Fastapi Energy Management Plan Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-10-28 02:50:31 +01:00
Get the latest energy management plan.
2025-11-13 22:53:46 +01:00
"""
2025-10-28 02:50:31 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
**Responses** :
- **200**: Successful Response
---
2025-02-12 21:35:51 +01:00
## GET /v1/health
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-02-12 21:35:51 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_health_get_v1_health_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_health_get_v1_health_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
Fastapi Health Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-02-12 21:35:51 +01:00
Health check endpoint to verify that the EOS server is alive.
2025-11-13 22:53:46 +01:00
"""
2025-02-12 21:35:51 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
**Responses** :
- **200**: Successful Response
---
2025-06-10 22:00:28 +02:00
## GET /v1/logging/log
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-06-10 22:00:28 +02:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_logging_get_log_v1_logging_log_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_logging_get_log_v1_logging_log_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-06-10 22:00:28 +02:00
Fastapi Logging Get Log
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-06-10 22:00:28 +02:00
Get structured log entries from the EOS log file.
Filters and returns log entries based on the specified query parameters. The log
file is expected to contain newline-delimited JSON entries.
Args:
limit (int): Maximum number of entries to return.
level (Optional[str]): Filter logs by severity level (e.g., DEBUG, INFO).
contains (Optional[str]): Return only logs that include this string in the message.
regex (Optional[str]): Return logs that match this regular expression in the message.
from_time (Optional[str]): ISO 8601 timestamp to filter logs not older than this.
to_time (Optional[str]): ISO 8601 timestamp to filter logs not newer than this.
tail (bool): If True, fetch the most recent log entries (like `tail`).
Returns:
JSONResponse: A JSON list of log entries.
2025-11-13 22:53:46 +01:00
"""
2025-06-10 22:00:28 +02:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-06-10 22:00:28 +02:00
**Parameters** :
- `limit` (query, optional): Maximum number of log entries to return.
- `level` (query, optional): Filter by log level (e.g., INFO, ERROR).
- `contains` (query, optional): Filter logs containing this substring.
- `regex` (query, optional): Filter logs by matching regex in message.
- `from_time` (query, optional): Start time (ISO format) for filtering logs.
- `to_time` (query, optional): End time (ISO format) for filtering logs.
- `tail` (query, optional): If True, returns the most recent lines (tail mode).
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-01-05 14:41:07 +01:00
## PUT /v1/measurement/data
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_measurement_data_put_v1_measurement_data_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_measurement_data_put_v1_measurement_data_put )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
Fastapi Measurement Data Put
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-05 14:41:07 +01:00
Merge the measurement data given as datetime data into EOS measurements.
2025-11-13 22:53:46 +01:00
"""
2025-01-05 14:41:07 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
**Request Body** :
- `application/json` : {
2025-01-05 14:41:07 +01:00
"$ref": "#/components/schemas/PydanticDateTimeData "
}
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
## PUT /v1/measurement/dataframe
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_measurement_dataframe_put_v1_measurement_dataframe_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_measurement_dataframe_put_v1_measurement_dataframe_put )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
Fastapi Measurement Dataframe Put
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-05 14:41:07 +01:00
Merge the measurement data given as dataframe into EOS measurements.
2025-11-13 22:53:46 +01:00
"""
2025-01-05 14:41:07 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
**Request Body** :
- `application/json` : {
"$ref": "#/components/schemas/PydanticDateTimeDataFrame "
2025-01-03 00:31:20 +01:00
}
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
## GET /v1/measurement/keys
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_measurement_keys_get_v1_measurement_keys_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_measurement_keys_get_v1_measurement_keys_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Fastapi Measurement Keys Get
**Responses** :
- **200**: Successful Response
---
2026-07-15 16:38:53 +02:00
## DELETE /v1/measurement/range
<!-- pyml disable line-length -->
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_measurement_range_delete_v1_measurement_range_delete ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_measurement_range_delete_v1_measurement_range_delete )
<!-- pyml enable line-length -->
Fastapi Measurement Range Delete
<!-- pyml disable line-length -->
```python
"""
Delete measurement values for a key within a datetime range.
"""
```
<!-- pyml enable line-length -->
**Parameters** :
- `key` (query, required): Measurement key.
- `start_datetime` (query, optional): Start datetime.
- `end_datetime` (query, optional): End datetime.
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-01-03 00:31:20 +01:00
## GET /v1/measurement/series
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_measurement_series_get_v1_measurement_series_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_measurement_series_get_v1_measurement_series_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Fastapi Measurement Series Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-03 00:31:20 +01:00
Get the measurements of given key as series.
2025-11-13 22:53:46 +01:00
"""
2025-01-03 00:31:20 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
**Parameters** :
2025-10-28 02:50:31 +01:00
- `key` (query, required): Measurement key.
2025-01-03 00:31:20 +01:00
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
## PUT /v1/measurement/series
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_measurement_series_put_v1_measurement_series_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_measurement_series_put_v1_measurement_series_put )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Fastapi Measurement Series Put
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-03 00:31:20 +01:00
Merge measurement given as series into given key.
2025-11-13 22:53:46 +01:00
"""
2025-01-03 00:31:20 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
**Parameters** :
2025-10-28 02:50:31 +01:00
- `key` (query, required): Measurement key.
2025-01-03 00:31:20 +01:00
**Request Body** :
- `application/json` : {
"$ref": "#/components/schemas/PydanticDateTimeSeries "
}
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
## PUT /v1/measurement/value
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_measurement_value_put_v1_measurement_value_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_measurement_value_put_v1_measurement_value_put )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Fastapi Measurement Value Put
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-03 00:31:20 +01:00
Merge the measurement of given key and value into EOS measurements at given datetime.
2025-11-13 22:53:46 +01:00
"""
2025-01-03 00:31:20 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
**Parameters** :
- `datetime` (query, required): Datetime.
2025-10-28 02:50:31 +01:00
- `key` (query, required): Measurement key.
2025-01-03 00:31:20 +01:00
- `value` (query, required): No description provided.
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-01-22 23:47:28 +01:00
## GET /v1/prediction/dataframe
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-22 23:47:28 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_prediction_dataframe_get_v1_prediction_dataframe_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_prediction_dataframe_get_v1_prediction_dataframe_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-22 23:47:28 +01:00
Fastapi Prediction Dataframe Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-22 23:47:28 +01:00
Get prediction for given key within given date range as series.
Args:
key (str): Prediction key
start_datetime (Optional[str]): Starting datetime (inclusive).
Defaults to start datetime of latest prediction.
end_datetime (Optional[str]: Ending datetime (exclusive).
Defaults to end datetime of latest prediction.
2025-11-13 22:53:46 +01:00
"""
2025-01-22 23:47:28 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-22 23:47:28 +01:00
**Parameters** :
- `keys` (query, required): Prediction keys.
- `start_datetime` (query, optional): Starting datetime (inclusive).
- `end_datetime` (query, optional): Ending datetime (exclusive).
- `interval` (query, optional): Time duration for each interval. Defaults to 1 hour.
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-02-12 21:35:51 +01:00
## PUT /v1/prediction/import/{provider_id}
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-02-12 21:35:51 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_prediction_import_provider_v1_prediction_import__provider_id__put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_prediction_import_provider_v1_prediction_import__provider_id__put )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
Fastapi Prediction Import Provider
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-02-12 21:35:51 +01:00
Import prediction for given provider ID.
Args:
provider_id: ID of provider to update.
data: Prediction data.
force_enable: Update data even if provider is disabled.
Defaults to False.
2025-11-13 22:53:46 +01:00
"""
2025-02-12 21:35:51 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-02-12 21:35:51 +01:00
**Parameters** :
- `provider_id` (path, required): Provider ID.
- `force_enable` (query, optional): No description provided.
**Request Body** :
- `application/json` : {
"anyOf": [
{
"$ref": "#/components/schemas/PydanticDateTimeDataFrame "
},
{
"$ref": "#/components/schemas/PydanticDateTimeData "
},
{
2025-04-30 23:05:44 +02:00
"type": "object",
"additionalProperties": true
2025-02-12 21:35:51 +01:00
},
{
"type": "null"
}
],
"title": "Data"
}
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-01-03 00:31:20 +01:00
## GET /v1/prediction/keys
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_prediction_keys_get_v1_prediction_keys_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_prediction_keys_get_v1_prediction_keys_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Fastapi Prediction Keys Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-03 00:31:20 +01:00
Get a list of available prediction keys.
2025-11-13 22:53:46 +01:00
"""
2025-01-03 00:31:20 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
**Responses** :
- **200**: Successful Response
---
## GET /v1/prediction/list
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_prediction_list_get_v1_prediction_list_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_prediction_list_get_v1_prediction_list_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Fastapi Prediction List Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-03 00:31:20 +01:00
Get prediction for given key within given date range as value list.
Args:
key (str): Prediction key
start_datetime (Optional[str]): Starting datetime (inclusive).
Defaults to start datetime of latest prediction.
end_datetime (Optional[str]: Ending datetime (exclusive).
Defaults to end datetime of latest prediction.
interval (Optional[str]): Time duration for each interval.
Defaults to 1 hour.
2025-11-13 22:53:46 +01:00
"""
2025-01-03 00:31:20 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
**Parameters** :
- `key` (query, required): Prediction key.
- `start_datetime` (query, optional): Starting datetime (inclusive).
- `end_datetime` (query, optional): Ending datetime (exclusive).
2025-02-12 21:35:51 +01:00
- `interval` (query, optional): Time duration for each interval. Defaults to 1 hour.
2025-01-03 00:31:20 +01:00
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-01-19 00:42:39 +01:00
## GET /v1/prediction/providers
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-19 00:42:39 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_prediction_providers_get_v1_prediction_providers_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_prediction_providers_get_v1_prediction_providers_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-19 00:42:39 +01:00
Fastapi Prediction Providers Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-19 00:42:39 +01:00
Get a list of available prediction providers.
Args:
enabled (bool): Return enabled/disabled providers. If unset, return all providers.
2025-11-13 22:53:46 +01:00
"""
2025-01-19 00:42:39 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-19 00:42:39 +01:00
**Parameters** :
- `enabled` (query, optional): No description provided.
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-01-05 14:41:07 +01:00
## GET /v1/prediction/series
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_prediction_series_get_v1_prediction_series_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_prediction_series_get_v1_prediction_series_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
Fastapi Prediction Series Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-05 14:41:07 +01:00
Get prediction for given key within given date range as series.
Args:
key (str): Prediction key
start_datetime (Optional[str]): Starting datetime (inclusive).
Defaults to start datetime of latest prediction.
end_datetime (Optional[str]: Ending datetime (exclusive).
Defaults to end datetime of latest prediction.
2025-11-13 22:53:46 +01:00
"""
2025-01-05 14:41:07 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-05 14:41:07 +01:00
**Parameters** :
- `key` (query, required): Prediction key.
- `start_datetime` (query, optional): Starting datetime (inclusive).
- `end_datetime` (query, optional): Ending datetime (exclusive).
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-01-03 00:31:20 +01:00
## POST /v1/prediction/update
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_prediction_update_v1_prediction_update_post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_prediction_update_v1_prediction_update_post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Fastapi Prediction Update
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-03 00:31:20 +01:00
Update predictions for all providers.
Args:
force_update: Update data even if it is already cached.
Defaults to False.
force_enable: Update data even if provider is disabled.
Defaults to False.
2025-11-13 22:53:46 +01:00
"""
2025-01-03 00:31:20 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
**Parameters** :
- `force_update` (query, optional): No description provided.
- `force_enable` (query, optional): No description provided.
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
## POST /v1/prediction/update/{provider_id}
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_prediction_update_provider_v1_prediction_update__provider_id__post ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_prediction_update_provider_v1_prediction_update__provider_id__post )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Fastapi Prediction Update Provider
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-01-03 00:31:20 +01:00
Update predictions for given provider ID.
Args:
provider_id: ID of provider to update.
force_update: Update data even if it is already cached.
Defaults to False.
force_enable: Update data even if provider is disabled.
Defaults to False.
2025-11-13 22:53:46 +01:00
"""
2025-01-03 00:31:20 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
**Parameters** :
- `provider_id` (path, required): No description provided.
- `force_update` (query, optional): No description provided.
- `force_enable` (query, optional): No description provided.
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-10-28 02:50:31 +01:00
## GET /v1/resource/status
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-10-28 02:50:31 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_devices_status_get_v1_resource_status_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_devices_status_get_v1_resource_status_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
Fastapi Devices Status Get
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-10-28 02:50:31 +01:00
Get the latest status of a resource/ device.
Return:
latest_status: The latest status of a resource/ device.
2025-11-13 22:53:46 +01:00
"""
2025-10-28 02:50:31 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
**Parameters** :
- `resource_id` (query, required): Resource ID.
- `actuator_id` (query, optional): Actuator ID.
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
## PUT /v1/resource/status
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-10-28 02:50:31 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/fastapi_devices_status_put_v1_resource_status_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_devices_status_put_v1_resource_status_put )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
Fastapi Devices Status Put
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
```python
"""
2025-10-28 02:50:31 +01:00
Update the status of a resource/ device.
Return:
latest_status: The latest status of a resource/ device.
2025-11-13 22:53:46 +01:00
"""
2025-10-28 02:50:31 +01:00
```
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-10-28 02:50:31 +01:00
**Parameters** :
- `resource_id` (query, required): Resource ID.
- `actuator_id` (query, optional): Actuator ID.
**Request Body** :
- `application/json` : {
"anyOf": [
{
2026-04-15 08:48:56 +02:00
"$ref": "#/components/schemas/PowerMeasurement "
2025-10-28 02:50:31 +01:00
},
{
2026-04-15 08:48:56 +02:00
"$ref": "#/components/schemas/EnergyMeasurement "
2025-10-28 02:50:31 +01:00
},
{
2026-04-15 08:48:56 +02:00
"$ref": "#/components/schemas/PPBCPowerProfileStatus "
2025-10-28 02:50:31 +01:00
},
{
"$ref": "#/components/schemas/OMBCStatus "
},
{
"$ref": "#/components/schemas/FRBCActuatorStatus "
},
{
2026-04-15 08:48:56 +02:00
"$ref": "#/components/schemas/FRBCEnergyStatus "
2025-10-28 02:50:31 +01:00
},
{
"$ref": "#/components/schemas/FRBCStorageStatus "
},
{
"$ref": "#/components/schemas/FRBCTimerStatus "
},
{
"$ref": "#/components/schemas/DDBCActuatorStatus "
}
],
"description": "Resource Status.",
"title": "Status"
}
**Responses** :
- **200**: Successful Response
- **422**: Validation Error
---
2025-01-03 00:31:20 +01:00
## GET /visualization_results.pdf
2025-11-13 22:53:46 +01:00
<!-- pyml disable line-length -->
2025-01-06 16:27:57 +01:00
**Links** : [local ](http://localhost:8503/docs#/default/get_pdf_visualization_results_pdf_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/get_pdf_visualization_results_pdf_get )
2025-11-13 22:53:46 +01:00
<!-- pyml enable line-length -->
2025-01-03 00:31:20 +01:00
Get Pdf
**Responses** :
- **200**: Successful Response
---
2025-11-13 22:53:46 +01:00
Auto generated from openapi.json.