2025-01-03 00:31:20 +01:00
# Akkudoktor-EOS
**Version**: `0.0.1`
**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.
**Base URL**: `No base URL provided.`
**Endpoints**:
2025-01-05 14:41:07 +01:00
## POST /gesamtlast
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-01-05 14:41:07 +01:00
Fastapi Gesamtlast
```
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:
Use '/v1/prediction/list?key=load_mean_adjusted' instead.
Load energy meter readings to be added to EOS measurement by:
'/v1/measurement/load-mr/value/by-name' or
'/v1/measurement/value'
```
**Request Body**:
- `application/json` : {
"$ref": "#/components/schemas/GesamtlastRequest "
}
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## GET /gesamtlast_simple
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-01-05 14:41:07 +01:00
Fastapi Gesamtlast Simple
```
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
'/v1/prediction/list?key=load_mean' instead.
```
**Parameters**:
- `year_energy` (query, required): No description provided.
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## POST /optimize
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-01-05 14:41:07 +01:00
Fastapi Optimize
**Parameters**:
- `start_hour` (query, optional): Defaults to current hour of the day.
2025-01-19 00:42:39 +01:00
- `ngen` (query, optional): No description provided.
2025-01-05 14:41:07 +01:00
**Request Body**:
- `application/json` : {
"$ref": "#/components/schemas/OptimizationParameters "
}
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## GET /pvforecast
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-01-05 14:41:07 +01:00
Fastapi Pvforecast
```
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.
```
**Responses**:
- **200**: Successful Response
---
## GET /strompreis
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-01-05 14:41:07 +01:00
Fastapi Strompreis
```
Deprecated: Electricity Market Price Prediction per Wh (€/Wh).
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.
```
**Responses**:
- **200**: Successful Response
---
2025-01-03 00:31:20 +01:00
## GET /v1/config
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-01-05 14:41:07 +01:00
Fastapi Config Get
```
Get the current configuration.
Returns:
configuration (ConfigEOS): The current configuration.
```
**Responses**:
- **200**: Successful Response
---
## PUT /v1/config
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-01-05 14:41:07 +01:00
Fastapi Config Put
```
Write the provided settings into the current settings.
The existing settings are completely overwritten. Note that for any setting
value that is None, the configuration will fall back to values from other sources such as
environment variables, the EOS configuration file, or default values.
Args:
settings (SettingsEOS): The settings to write into the current settings.
Returns:
configuration (ConfigEOS): The current configuration after the write.
```
2025-01-19 00:42:39 +01:00
**Request Body**:
2025-01-05 14:41:07 +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
---
## PUT /v1/config/file
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-01-05 14:41:07 +01:00
Fastapi Config File Put
```
Save the current configuration to the EOS configuration file.
Returns:
configuration (ConfigEOS): The current configuration that was saved.
```
**Responses**:
- **200**: Successful Response
---
2025-01-19 00:42:39 +01:00
## PUT /v1/config/reset
2025-01-05 14:41:07 +01:00
2025-01-19 00:42:39 +01:00
**Links**: [local ](http://localhost:8503/docs#/default/fastapi_config_update_post_v1_config_reset_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_config_update_post_v1_config_reset_put )
2025-01-05 14:41:07 +01:00
Fastapi Config Update Post
```
2025-01-19 00:42:39 +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.
```
**Responses**:
- **200**: Successful Response
---
2025-01-03 00:31:20 +01:00
2025-01-05 14:41:07 +01:00
## PUT /v1/measurement/data
2025-01-03 00:31:20 +01:00
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-01-03 00:31:20 +01:00
2025-01-05 14:41:07 +01:00
Fastapi Measurement Data Put
2025-01-03 00:31:20 +01:00
```
2025-01-05 14:41:07 +01:00
Merge the measurement data given as datetime data into EOS measurements.
2025-01-03 00:31:20 +01:00
```
2025-01-05 14:41:07 +01:00
**Request Body**:
- `application/json` : {
"$ref": "#/components/schemas/PydanticDateTimeData "
}
2025-01-03 00:31:20 +01:00
2025-01-05 14:41:07 +01:00
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## PUT /v1/measurement/dataframe
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-01-05 14:41:07 +01:00
Fastapi Measurement Dataframe Put
```
Merge the measurement data given as dataframe into EOS measurements.
```
2025-01-03 00:31:20 +01:00
**Request Body**:
- `application/json` : {
2025-01-05 14:41:07 +01:00
"$ref": "#/components/schemas/PydanticDateTimeDataFrame "
2025-01-03 00:31:20 +01:00
}
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## GET /v1/measurement/keys
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-01-03 00:31:20 +01:00
Fastapi Measurement Keys Get
```
Get a list of available measurement keys.
```
**Responses**:
- **200**: Successful Response
---
## GET /v1/measurement/load-mr/series/by-name
2025-01-06 16:27:57 +01:00
**Links**: [local ](http://localhost:8503/docs#/default/fastapi_measurement_load_mr_series_by_name_get_v1_measurement_load-mr_series_by-name_get ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_measurement_load_mr_series_by_name_get_v1_measurement_load-mr_series_by-name_get )
2025-01-03 00:31:20 +01:00
Fastapi Measurement Load Mr Series By Name Get
```
Get the meter reading of given load name as series.
```
**Parameters**:
- `name` (query, required): Load name.
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## PUT /v1/measurement/load-mr/series/by-name
2025-01-06 16:27:57 +01:00
**Links**: [local ](http://localhost:8503/docs#/default/fastapi_measurement_load_mr_series_by_name_put_v1_measurement_load-mr_series_by-name_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_measurement_load_mr_series_by_name_put_v1_measurement_load-mr_series_by-name_put )
2025-01-03 00:31:20 +01:00
Fastapi Measurement Load Mr Series By Name Put
```
Merge the meter readings series of given load name into EOS measurements at given datetime.
```
**Parameters**:
- `name` (query, required): Load name.
**Request Body**:
- `application/json` : {
"$ref": "#/components/schemas/PydanticDateTimeSeries "
}
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## PUT /v1/measurement/load-mr/value/by-name
2025-01-06 16:27:57 +01:00
**Links**: [local ](http://localhost:8503/docs#/default/fastapi_measurement_load_mr_value_by_name_put_v1_measurement_load-mr_value_by-name_put ), [eos ](https://petstore3.swagger.io/?url=https://raw.githubusercontent.com/Akkudoktor-EOS/EOS/refs/heads/main/openapi.json#/default/fastapi_measurement_load_mr_value_by_name_put_v1_measurement_load-mr_value_by-name_put )
2025-01-03 00:31:20 +01:00
Fastapi Measurement Load Mr Value By Name Put
```
Merge the meter reading of given load name and value into EOS measurements at given datetime.
```
**Parameters**:
- `datetime` (query, required): Datetime.
- `name` (query, required): Load name.
- `value` (query, required): No description provided.
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## GET /v1/measurement/series
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-01-03 00:31:20 +01:00
Fastapi Measurement Series Get
```
Get the measurements of given key as series.
```
**Parameters**:
- `key` (query, required): Prediction key.
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## PUT /v1/measurement/series
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-01-03 00:31:20 +01:00
Fastapi Measurement Series Put
```
Merge measurement given as series into given key.
```
**Parameters**:
- `key` (query, required): Prediction key.
**Request Body**:
- `application/json` : {
"$ref": "#/components/schemas/PydanticDateTimeSeries "
}
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## PUT /v1/measurement/value
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-01-03 00:31:20 +01:00
Fastapi Measurement Value Put
```
Merge the measurement of given key and value into EOS measurements at given datetime.
```
**Parameters**:
- `datetime` (query, required): Datetime.
- `key` (query, required): Prediction key.
- `value` (query, required): No description provided.
**Responses**:
- **200**: Successful Response
- **422**: Validation Error
---
## GET /v1/prediction/keys
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-01-03 00:31:20 +01:00
Fastapi Prediction Keys Get
```
Get a list of available prediction keys.
```
**Responses**:
- **200**: Successful Response
---
2025-01-05 14:41:07 +01:00
## GET /v1/prediction/list
2025-01-03 00:31:20 +01:00
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-01-03 00:31:20 +01:00
2025-01-05 14:41:07 +01:00
Fastapi Prediction List Get
2025-01-03 00:31:20 +01:00
```
2025-01-05 14:41:07 +01:00
Get prediction for given key within given date range as value list.
2025-01-03 00:31:20 +01:00
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-01-05 14:41:07 +01:00
interval (Optional[str]): Time duration for each interval.
Defaults to 1 hour.
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-01-05 14:41:07 +01:00
- `interval` (query, optional): Time duration for each interval.
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
**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 )
Fastapi Prediction Providers Get
```
Get a list of available prediction providers.
Args:
enabled (bool): Return enabled/disabled providers. If unset, return all providers.
```
**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-01-03 00:31:20 +01:00
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-01-03 00:31:20 +01:00
2025-01-05 14:41:07 +01:00
Fastapi Prediction Series Get
2025-01-03 00:31:20 +01:00
```
2025-01-05 14:41:07 +01:00
Get prediction for given key within given date range as series.
2025-01-03 00:31:20 +01:00
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.
```
**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
---
## POST /v1/prediction/update
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-01-03 00:31:20 +01:00
Fastapi Prediction Update
```
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.
```
**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-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-01-03 00:31:20 +01:00
Fastapi Prediction Update Provider
```
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.
```
**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
---
## GET /visualization_results.pdf
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-01-03 00:31:20 +01:00
Get Pdf
**Responses**:
- **200**: Successful Response
---