Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a function to predict a value from a csv file. #147

Closed
wants to merge 161 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
c31e701
index and script, simplify static file fetch urls
GeoDerp Mar 14, 2024
cf029eb
Merge branch 'davidusb-geek:master' into index-icon-fix
GeoDerp Mar 14, 2024
f203c9d
script, remove unused function
GeoDerp Mar 14, 2024
2b26c47
Merge remote-tracking branch 'refs/remotes/origin/index-icon-fix' int…
GeoDerp Mar 14, 2024
d9a701c
add /app to gitignore
gieljnssns Jan 7, 2024
c8b71e1
Add csv-prediction
gieljnssns Jan 7, 2024
0e2f535
cleanup
gieljnssns Jan 9, 2024
61f64fd
more cleanup
gieljnssns Jan 18, 2024
11b3a3d
filename_path -> inp
gieljnssns Jan 19, 2024
779c6b8
resolve some comments
gieljnssns Jan 29, 2024
2d0c460
Use gridsearchcv and split up fit and predict
gieljnssns Feb 13, 2024
1933710
remove backtest
gieljnssns Feb 13, 2024
0bf50a2
cleanup
gieljnssns Feb 13, 2024
ac45455
cleanup + docstrings
gieljnssns Feb 13, 2024
f3574c8
add other regression methods
gieljnssns Mar 11, 2024
b9fa914
add --editable
gieljnssns Mar 15, 2024
f7fc59f
Add sklearn model
gieljnssns Mar 15, 2024
7177ad2
multiple regression methods
gieljnssns Mar 15, 2024
11664bf
change to MLRegressor
gieljnssns Mar 15, 2024
5b168cd
change naming and some formatting
gieljnssns Mar 15, 2024
4ced757
sklearn-model -> regression-model
gieljnssns Mar 15, 2024
1cb2ed5
REGRESSION_METHODS const
gieljnssns Mar 15, 2024
33feb44
webserver archive basename
GeoDerp Mar 16, 2024
40adc0f
Some cleanup
gieljnssns Mar 17, 2024
bbfbc3a
Add csv-prediction
gieljnssns Jan 7, 2024
b5c2b95
Use gridsearchcv and split up fit and predict
gieljnssns Feb 13, 2024
9eaf488
gitignore fun
gieljnssns Feb 13, 2024
8f0cab3
python -> debugpy
gieljnssns Mar 17, 2024
c27ea5c
launch.json
gieljnssns Mar 17, 2024
e154380
delete csv-predictor
gieljnssns Mar 17, 2024
e946d18
remove KNeighborsRegressor
gieljnssns Mar 18, 2024
06920aa
first documentation for mlregressor
gieljnssns Mar 19, 2024
0a3e20c
style.css auto format and adjusted table styling
GeoDerp Mar 19, 2024
3959280
Merge pull request #239 from GeoDerp/index-icon-fix
davidusb-geek Mar 25, 2024
c6eb17d
Merge pull request #241 from GeoDerp/patch-9
davidusb-geek Mar 25, 2024
8e63126
Added some improvements to utils.py and tested forecasts longer than 24h
davidusb-geek Mar 27, 2024
05e2da0
Fixed bug on utils.py treating lists of data
davidusb-geek Mar 27, 2024
bedac39
Added updated database for PV modules and inverters
davidusb-geek Mar 27, 2024
9039794
dynamic paths with emhass config dict, some mlforcaster error suppres…
GeoDerp Mar 29, 2024
11cfcde
forcast typos, vscode tweak tasks and Dev Container
GeoDerp Mar 30, 2024
acd1246
emhass_config utils and scripts
GeoDerp Mar 30, 2024
7395773
Updated .gitignore
davidusb-geek Mar 31, 2024
cb0baf1
Added new script to create modules and inverters databases
davidusb-geek Mar 31, 2024
e39fe55
Added missing path to files
davidusb-geek Mar 31, 2024
e29e0f5
Trying to add the new PV database files to the Dockerfile
davidusb-geek Mar 31, 2024
8c65816
patch fix cec path issue
GeoDerp Apr 1, 2024
82d7364
tweaked cec paths
GeoDerp Apr 1, 2024
9f93c7d
Merge branch 'master' into insufficient-day-error-log
GeoDerp Apr 1, 2024
026c4e6
Dockerfile remove git package from purge
GeoDerp Apr 1, 2024
c309d97
master merge, cec file path
GeoDerp Apr 1, 2024
59e2beb
forcast, weak cec file paths
GeoDerp Apr 1, 2024
8a7cedc
cec path Issue
GeoDerp Apr 1, 2024
4a5b8af
Merge pull request #249 from GeoDerp/database-file-error
davidusb-geek Apr 1, 2024
f6023e2
Updated docs, updated new inverter database
davidusb-geek Apr 1, 2024
6c18866
Added a new P_from_grid_max configuration variable option
davidusb-geek Apr 1, 2024
7284aa3
Added update pip3 step to Dockerfile
davidusb-geek Apr 1, 2024
905120b
Reverted pip upgrade on Dockerfile
davidusb-geek Apr 1, 2024
7024039
Update python-test.yml
davidusb-geek Apr 1, 2024
7e9fc28
Dropped support for Python 3.9
davidusb-geek Apr 1, 2024
f90e099
Prepared new version
davidusb-geek Apr 1, 2024
3d5eca4
Fix - Fixed bug from forecast out method related to issue 240
davidusb-geek Apr 3, 2024
7e77345
Fix - Fixed case for method list and perfect optim
davidusb-geek Apr 3, 2024
e277d39
Merge pull request #250 from davidusb-geek/davidusb-geek/fix/patch_fo…
davidusb-geek Apr 4, 2024
96e66b3
Update mlforecaster.md
davidusb-geek Apr 4, 2024
414f382
forcast, tweak error message
GeoDerp Apr 5, 2024
3d3d648
Merge branch 'master' into insufficient-day-error-log
GeoDerp Apr 5, 2024
689872d
fix merge typos
GeoDerp Apr 5, 2024
5f62589
test_main_publish_data alternative test
GeoDerp Apr 5, 2024
c9686cd
Prepared a new version
davidusb-geek Apr 7, 2024
c89a1e5
scripts, fixed bugs, mainly from dynamic paths
GeoDerp Apr 11, 2024
a5be2b8
add /app to gitignore
gieljnssns Jan 7, 2024
7c71203
Add csv-prediction
gieljnssns Jan 7, 2024
9b7472a
cleanup
gieljnssns Jan 9, 2024
b975b74
more cleanup
gieljnssns Jan 18, 2024
36ba25f
filename_path -> inp
gieljnssns Jan 19, 2024
259ced3
resolve some comments
gieljnssns Jan 29, 2024
e200dc8
Use gridsearchcv and split up fit and predict
gieljnssns Feb 13, 2024
d09cbe3
remove backtest
gieljnssns Feb 13, 2024
cb2050a
cleanup
gieljnssns Feb 13, 2024
264a8ca
cleanup + docstrings
gieljnssns Feb 13, 2024
c375042
add other regression methods
gieljnssns Mar 11, 2024
79752df
add --editable
gieljnssns Mar 15, 2024
79c478e
Add sklearn model
gieljnssns Mar 15, 2024
d4c36f0
multiple regression methods
gieljnssns Mar 15, 2024
bf64255
change to MLRegressor
gieljnssns Mar 15, 2024
d5adde3
change naming and some formatting
gieljnssns Mar 15, 2024
b15914d
sklearn-model -> regression-model
gieljnssns Mar 15, 2024
9807ed6
REGRESSION_METHODS const
gieljnssns Mar 15, 2024
063ccf2
Some cleanup
gieljnssns Mar 17, 2024
6fae7a4
Add csv-prediction
gieljnssns Jan 7, 2024
b4293c0
Use gridsearchcv and split up fit and predict
gieljnssns Feb 13, 2024
fa8f6c0
gitignore fun
gieljnssns Feb 13, 2024
54966d4
python -> debugpy
gieljnssns Mar 17, 2024
ef4e177
launch.json
gieljnssns Mar 17, 2024
1a502e1
delete csv-predictor
gieljnssns Mar 17, 2024
6095a2c
remove KNeighborsRegressor
gieljnssns Mar 18, 2024
07e43c1
Refined dynamic path commits
GeoDerp Apr 11, 2024
dab01c3
slight path adjusts
GeoDerp Apr 13, 2024
454d79e
optim_results_analysis support external sensors
GeoDerp Apr 13, 2024
0b09c85
retrieve, change warning to debug
GeoDerp Apr 14, 2024
bdb4bff
command_line main, add arguments
GeoDerp Apr 14, 2024
ce4048e
develop.md fix small mistakes
GeoDerp Apr 14, 2024
8fd7fbf
add tests
gieljnssns Apr 17, 2024
cf5a4ad
Merge branch 'master' of https://github.com/gieljnssns/emhass
gieljnssns Apr 17, 2024
c51d540
Rename paragrams
gieljnssns Apr 17, 2024
1590404
Ready for review (I think)
gieljnssns Apr 18, 2024
34def7d
Merge pull request #247 from GeoDerp/insufficient-day-error-log
davidusb-geek Apr 18, 2024
f8b43aa
remove *.csv from .gitignore to upload heating_prediction.csv
gieljnssns Apr 18, 2024
a7f301c
add /app to gitignore
gieljnssns Jan 7, 2024
d40da86
Add csv-prediction
gieljnssns Jan 7, 2024
86b9fec
cleanup
gieljnssns Jan 9, 2024
21e486c
more cleanup
gieljnssns Jan 18, 2024
483898f
filename_path -> inp
gieljnssns Jan 19, 2024
3559c28
resolve some comments
gieljnssns Jan 29, 2024
c928f2b
Use gridsearchcv and split up fit and predict
gieljnssns Feb 13, 2024
e744c5e
remove backtest
gieljnssns Feb 13, 2024
cf5657f
cleanup
gieljnssns Feb 13, 2024
b2d1eb2
cleanup + docstrings
gieljnssns Feb 13, 2024
714f66b
add other regression methods
gieljnssns Mar 11, 2024
667611c
add --editable
gieljnssns Mar 15, 2024
a63546c
Add sklearn model
gieljnssns Mar 15, 2024
6f720eb
multiple regression methods
gieljnssns Mar 15, 2024
be01f8f
change to MLRegressor
gieljnssns Mar 15, 2024
7430bf0
change naming and some formatting
gieljnssns Mar 15, 2024
9ed8798
sklearn-model -> regression-model
gieljnssns Mar 15, 2024
7b5e2ba
REGRESSION_METHODS const
gieljnssns Mar 15, 2024
6bf36a3
Some cleanup
gieljnssns Mar 17, 2024
43b4927
Add csv-prediction
gieljnssns Jan 7, 2024
173f05e
Use gridsearchcv and split up fit and predict
gieljnssns Feb 13, 2024
19da6f8
gitignore fun
gieljnssns Feb 13, 2024
1f531ec
python -> debugpy
gieljnssns Mar 17, 2024
b4984d0
launch.json
gieljnssns Mar 17, 2024
c1344b1
delete csv-predictor
gieljnssns Mar 17, 2024
723ed3f
remove KNeighborsRegressor
gieljnssns Mar 18, 2024
93380f3
add tests
gieljnssns Apr 17, 2024
b614f81
add /app to gitignore
gieljnssns Jan 7, 2024
86b1604
Add csv-prediction
gieljnssns Jan 7, 2024
cd59928
cleanup
gieljnssns Jan 9, 2024
d4a3c67
more cleanup
gieljnssns Jan 18, 2024
87c54d8
filename_path -> inp
gieljnssns Jan 19, 2024
a9cd098
resolve some comments
gieljnssns Jan 29, 2024
9a86046
Use gridsearchcv and split up fit and predict
gieljnssns Feb 13, 2024
cfb248b
remove backtest
gieljnssns Feb 13, 2024
4af34ad
cleanup
gieljnssns Feb 13, 2024
c8e02a7
cleanup + docstrings
gieljnssns Feb 13, 2024
775d61f
add other regression methods
gieljnssns Mar 11, 2024
904a36a
multiple regression methods
gieljnssns Mar 15, 2024
ce407cf
change to MLRegressor
gieljnssns Mar 15, 2024
9d45cb1
change naming and some formatting
gieljnssns Mar 15, 2024
af8b9f6
Add csv-prediction
gieljnssns Jan 7, 2024
b035ccd
Use gridsearchcv and split up fit and predict
gieljnssns Feb 13, 2024
879186f
gitignore fun
gieljnssns Feb 13, 2024
36e1735
python -> debugpy
gieljnssns Mar 17, 2024
3e82c87
launch.json
gieljnssns Mar 17, 2024
730a2df
delete csv-predictor
gieljnssns Mar 17, 2024
a23b693
first documentation for mlregressor
gieljnssns Mar 19, 2024
058c732
Rename paragrams
gieljnssns Apr 17, 2024
6c21629
Ready for review (I think)
gieljnssns Apr 18, 2024
fec4558
remove *.csv from .gitignore to upload heating_prediction.csv
gieljnssns Apr 18, 2024
b9ec17a
Adapt to the latest path changes
gieljnssns Apr 19, 2024
30e76a9
Merge branch 'master' of https://github.com/gieljnssns/emhass
gieljnssns Apr 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM mcr.microsoft.com/devcontainers/python:0-3.11
# EXPOSE 5000:5000
COPY .devcontainer/setup.sh requirements.txt ./
COPY .devcontainer/setup.sh ./
COPY requirements.txt ./
RUN ./setup.sh
11 changes: 9 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@
},
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
}
},
//"appPort": ["5000:5000"] //used to access app from external device (User discretion advised)


"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": ["ms-python.debugpy", "ms-python.python"]
}
}


// Features to add to the dev container. More info: https://containers.dev/features.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
os: [ubuntu-latest]
env:
OS: ${{ matrix.os }}
PYTHON: '3.9'
PYTHON: '3.11'
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.9
python-version: 3.11
- name: Generate Report
run: |
python -m pip install --upgrade pip
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11"]
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
- os: macos-latest
python-version: "3.9"
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ secrets_emhass.yaml
.vscode/launch.json
.vscode/settings.json
.vscode/tasks.json
*.html
*.pkl
data/actionLogs.txt
**/app


# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
20 changes: 13 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
"request": "launch",
"module": "emhass.web_server",
"console": "integratedTerminal",
"purpose":["debug-in-terminal"],
"purpose": [
"debug-in-terminal"
],
"justMyCode": true,
"env": {
"CONFIG_PATH": "/workspaces/emhass/config_emhass.yaml",
"OPTIONS_PATH": "/workspaces/emhass/options.json",
"SECRETS_PATH": "/workspaces/emhass/secrets_emhass.yaml",
"DATA_PATH": "/workspaces/emhass/data/",
"LOGGING_LEVEL": "DEBUG"
}
},
{
Expand All @@ -30,8 +31,15 @@
"request": "launch",
"module": "emhass.web_server",
"console": "integratedTerminal",
"args": ["--addon", "true", "--no_response", "true"],
"purpose":["debug-in-terminal"],
"args": [
"--addon",
"true",
"--no_response",
"true"
],
"purpose": [
"debug-in-terminal"
],
"justMyCode": true,
"env": {
"CONFIG_PATH": "/workspaces/emhass/config_emhass.yaml",
Expand All @@ -44,9 +52,7 @@
"LAT": "45.83", //optional change
"LON": "6.86", //optional change
"ALT": "4807.8", //optional change
"LOGGING_LEVEL": "DEBUG" //optional change
},

}
}
]
}
22 changes: 21 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,27 @@
"isDefault": true
},
"args": [
"install", "--no-deps", "--force-reinstall", "."
"install",
"--no-deps",
"--force-reinstall",
"--editable",
"."
],
"presentation": {
"echo": true,
"panel": "shared",
"focus": true
}
},
{
"label": "EMHASS install with dependencies",
"command": "pip3",
"group": {
"kind": "build",
"isDefault": true
},
"args": [
"install", "--force-reinstall", "."
],
"presentation": {
"echo": true,
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 0.8.6 - 2024-04-07
### Fix
- Fixed bug from forecast out method related to issue 240
- Fix patch for some issues with package file paths

## 0.8.5 - 2024-04-01
### Improvement
- Simplified fetch urls to relatives
- Improved code for passed forecast data error handling in utils.py
- Added new tests for forecast longer than 24h by changing parameter `delta_forecast`
- Added new files for updated PV modules and inverters database for use with PVLib
- Added a new webapp to help configuring modules and inverters: [https://emhass-pvlib-database.streamlit.app/](https://emhass-pvlib-database.streamlit.app/)
- Added a new `P_to_grid_max` variable, different from the current `P_from_grid_max` option
### Fix
- style.css auto format and adjusted table styling
- Changed pandas datetime rounding to nonexistent='shift_forward' to help survive DST change
- Dropped support for Python 3.9

## 0.8.4 - 2024-03-13
### Improvement
- Improved documentation
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ RUN [[ "${TARGETARCH}" == "armhf" || "${TARGETARCH}" == "armv7" ]] && ln -sf /
#if armv7, try install libatomic1 to fix scipy issue
RUN [[ "${TARGETARCH}" == "armv7" ]] && apt-get update && apt-get install libatomic1 || echo "libatomic1 cant be installed"


#remove build only packages
RUN apt-get purge -y --auto-remove \
git \
gcc \
patchelf \
cmake \
Expand Down Expand Up @@ -111,6 +109,7 @@ COPY src/emhass/ /app/src/emhass/
COPY src/emhass/templates/ /app/src/emhass/templates/
COPY src/emhass/static/ /app/src/emhass/static/
COPY src/emhass/static/img/ /app/src/emhass/static/img/
COPY src/emhass/data/ /app/src/emhass/data/
COPY data/opt_res_latest.csv /app/data/
#add options.json, this otherwise would be generated via HA
COPY options.json /app/
Expand All @@ -132,8 +131,9 @@ RUN git clone $build_repo
WORKDIR /tmp/emhass
#Branch
RUN git checkout $build_branch
RUN mkdir -p /app/src/emhass/
RUN mkdir -p /app/src/emhass/data/
RUN cp -r /tmp/emhass/src/emhass/. /app/src/emhass/
RUN cp /tmp/emhass/src/emhass/data/* /app/src/emhass/data/
RUN cp /tmp/emhass/data/opt_res_latest.csv /app/data/
RUN cp /tmp/emhass/setup.py /app/
RUN cp /tmp/emhass/README.md /app/
Expand All @@ -144,13 +144,14 @@ RUN pip3 install --no-cache-dir --break-system-packages --no-deps --force-reinst
ENTRYPOINT [ "python3", "-m", "emhass.web_server","--addon", "True" , "--no_response", "True"]

#-------------------------
#EMHASS stanalone
#EMHASS standalone
FROM base as standalone

COPY src/emhass/ /app/src/emhass/
COPY src/emhass/templates/ /app/src/emhass/templates/
COPY src/emhass/static/ /app/src/emhass/static/
COPY src/emhass/static/img/ /app/src/emhass/static/img/
COPY src/emhass/data/ /app/src/emhass/data/
COPY data/opt_res_latest.csv /app/data/
COPY README.md /app/
COPY setup.py /app/
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,6 @@ curl -i -H 'Content-Type:application/json' -X POST -d '{"pv_power_forecast":[0,
curl -i -H 'Content-Type:application/json' -X POST -d '{"pv_power_forecast":[0, 70, 141.22, 246.18, 513.5, 753.27, 1049.89, 1797.93, 1697.3, 3078.93], "prediction_horizon":10, "soc_init":0.5,"soc_final":0.6,"def_total_hours":[1,3],"def_start_timestep":[0,3],"def_end_timestep":[0,6]}' http://localhost:5000/action/naive-mpc-optim
```



## A machine learning forecaster

Starting in v0.4.0 a new machine learning forecaster class was introduced.
Expand Down
3 changes: 2 additions & 1 deletion config_emhass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ optim_conf:
weight_battery_charge: 0.0 # weight applied in cost function to battery usage for charge

plant_conf:
P_grid_max: 9000 # The maximum power that can be supplied by the utility grid in Watts
P_from_grid_max: 9000 # The maximum power that can be supplied by the utility grid in Watts
P_to_grid_max: 9000 # The maximum power that can be supplied to the utility grid in Watts
module_model: # The PV module model
- 'CSUN_Eurasia_Energy_Systems_Industry_and_Trade_CSUN295_60M'
inverter_model: # The PV inverter model
Expand Down
130 changes: 130 additions & 0 deletions data/heating_prediction.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
timestamp,degreeday,solar,hour
2023-11-10 23:59:32.458039+01:00,12.23,3.982,2.87
2023-11-11 23:59:32.459778+01:00,12.94,13.723,3.14
2023-11-12 23:59:32.462220+01:00,14.45,4.925,3.5
2023-11-13 23:59:32.462167+01:00,8.49,2.138,3.19
2023-11-14 23:59:32.338942+01:00,8.61,2.444,2.91
2023-11-15 23:59:32.195198+01:00,9.83,10.685,2.88
2023-11-16 23:59:32.501044+01:00,12.8,1.955,1.28
2023-11-17 23:59:32.316366+01:00,13.35,8.742,2.97
2023-11-18 23:59:32.082785+01:00,11.84,0.849,3.42
2023-11-19 23:59:32.077198+01:00,7.3,10.85,1.9
2023-11-20 23:59:32.431964+01:00,9.91,6.395,2.48
2023-11-21 23:59:32.295705+01:00,11.44,2.678,2.91
2023-11-22 23:59:32.377740+01:00,16.14,2.994,2.96
2023-11-23 23:59:32.385890+01:00,9.31,5.346,2.91
2023-11-24 23:59:32.376194+01:00,12.96,8.61,2.9
2023-11-25 23:59:32.373666+01:00,14.91,12.31,3.47
2023-11-26 23:59:32.373647+01:00,14.79,2.589,3.69
2023-11-27 23:59:32.379920+01:00,14.92,0.322,6.05
2023-11-28 23:59:32.213947+01:00,18.59,20.342,2.94
2023-11-29 23:59:32.217384+01:00,19.05,5.393,5.41
2023-11-30 23:59:32.222641+01:00,21.27,1.899,6.77
2023-12-01 23:59:32.224533+01:00,21.3,1.233,5.75
2023-12-02 23:59:32.107119+01:00,21.97,14.653,2.96
2023-12-03 23:59:32.107436+01:00,20.61,4.766,8.89
2023-12-04 23:59:32.116642+01:00,18.36,1.349,6.73
2023-12-05 23:59:32.191254+01:00,16.93,0.869,6.17
2023-12-06 23:59:32.176803+01:00,16.8,5.413,5.38
2023-12-07 23:59:32.251031+01:00,17.67,8.089,5.98
2023-12-08 23:59:32.255888+01:00,14.37,1.203,5.63
2023-12-09 23:59:32.109040+01:00,11.94,0.814,5.08
2023-12-10 23:59:32.103738+01:00,9.72,6.051,3.42
2023-12-11 23:59:32.497717+01:00,9.83,1.459,3.87
2023-12-12 23:59:32.502503+01:00,11.18,4.176,3.31
2023-12-13 23:59:32.504794+01:00,11.09,2.91,3.1
2023-12-14 23:59:32.177489+01:00,13.88,7.53,2.89
2023-12-15 23:59:32.186292+01:00,12.18,2.129,5.68
2023-12-16 23:59:32.176812+01:00,11.75,1.641,3.46
2023-12-17 23:59:32.119874+01:00,12.18,14.868,3.46
2023-12-18 23:59:32.120168+01:00,14.75,1.283,3.12
2023-12-19 23:59:32.120101+01:00,12.82,0.09,5.07
2023-12-20 23:59:32.249731+01:00,12.8,3.803,3.6
2023-12-21 23:59:32.249135+01:00,8.73,2.096,3.55
2023-12-22 23:59:32.385164+01:00,9.12,1.278,0.85
2023-12-23 23:59:32.382910+01:00,8.99,1.848,0.0
2023-12-24 23:59:32.382457+01:00,8.04,0.165,7.42
2023-12-25 23:59:32.303520+01:00,7.56,1.028,2.93
2023-12-26 23:59:32.105788+01:00,10.55,9.274,2.92
2023-12-27 23:59:32.183107+01:00,11.78,2.026,3.39
2023-12-28 23:59:32.183405+01:00,8.91,3.68,3.19
2023-12-29 23:59:32.399740+01:00,9.35,2.464,2.95
2023-12-30 23:59:32.091110+01:00,11.07,7.948,3.44
2023-12-31 23:59:32.257530+01:00,10.51,3.5,3.48
2024-01-01 23:59:32.106161+01:00,12.75,4.046,3.08
2024-01-02 23:59:32.103187+01:00,8.81,0.562,4.46
2024-01-03 23:59:32.429947+01:00,10.03,2.184,3.26
2024-01-04 23:59:32.436773+01:00,11.22,5.662,2.97
2024-01-05 23:59:32.165969+01:00,12.42,1.199,3.6
2024-01-06 23:59:32.110208+01:00,15.35,0.295,4.32
2024-01-07 23:59:32.147775+01:00,19.88,0.896,6.19
2024-01-08 23:59:32.242815+01:00,22.74,6.468,5.82
2024-01-09 23:59:32.201342+01:00,24.38,21.307,6.92
2024-01-10 23:59:32.411136+01:00,24.84,18.89,1.53
2024-01-11 23:59:32.399433+01:00,23.57,19.27,3.05
2024-01-12 23:59:32.467622+01:00,18.22,1.977,13.98
2024-01-13 23:59:32.077428+01:00,17.9,0.472,6.93
2024-01-14 23:59:32.127844+01:00,19.65,1.346,6.95
2024-01-15 23:59:32.125062+01:00,19.49,4.35,7.82
2024-01-16 23:59:32.280474+01:00,21.21,9.238,5.7
2024-01-17 23:59:32.283951+01:00,23.17,1.193,7.37
2024-01-18 23:59:32.361241+01:00,21.61,17.307,6.67
2024-01-19 23:59:32.341654+01:00,22.06,21.004,6.24
2024-01-20 23:59:32.359151+01:00,21.95,12.912,6.43
2024-01-21 23:59:32.126221+01:00,17.38,3.28,7.45
2024-01-22 23:59:32.126346+01:00,9.47,7.645,6.1
2024-01-23 23:59:32.417727+01:00,11.87,7.689,4.76
2024-01-24 23:59:32.420933+01:00,8.15,10.052,3.62
2024-01-25 23:59:32.419138+01:00,12.38,3.785,3.98
2024-01-26 23:59:32.422066+01:00,11.4,11.94,3.1
2024-01-27 23:59:32.176538+01:00,17.96,19.741,3.45
2024-01-28 23:59:32.168328+01:00,16.72,20.366,4.85
2024-01-29 23:59:32.173916+01:00,13.11,16.972,4.51
2024-01-30 23:59:32.503034+01:00,11.21,4.013,3.99
2024-01-31 23:59:32.179265+01:00,12.79,4.766,3.73
2024-02-01 23:59:32.487147+01:00,12.74,23.924,2.98
2024-02-02 23:59:32.570084+01:00,13.0,2.98,5.04
2024-02-03 23:59:32.484878+01:00,9.26,1.413,3.48
2024-02-04 23:59:32.472168+01:00,8.35,4.306,3.47
2024-02-05 23:59:32.409856+01:00,9.78,5.704,0.0
2024-02-06 23:59:32.439147+01:00,9.15,2.431,6.56
2024-02-07 23:59:32.235231+01:00,14.42,3.839,3.07
2024-02-08 23:59:32.441543+01:00,13.9,1.412,5.94
2024-02-09 23:59:32.443230+01:00,8.2,7.246,2.96
2024-02-10 23:59:32.504326+01:00,8.37,8.567,3.48
2024-02-11 23:59:32.452959+01:00,10.44,5.304,0.0
2024-02-12 23:59:32.450999+01:00,12.65,16.004,3.42
2024-02-13 23:59:32.343162+01:00,13.84,19.809,3.16
2024-02-14 23:59:32.339408+01:00,8.48,1.98,4.52
2024-02-15 23:59:32.339971+01:00,6.13,9.952,2.98
2024-02-16 23:59:32.455273+01:00,7.66,3.675,3.06
2024-02-17 23:59:32.097937+01:00,8.56,12.269,3.48
2024-02-18 23:59:32.126377+01:00,9.59,2.205,3.04
2024-02-19 23:59:32.421243+01:00,10.22,3.731,2.97
2024-02-20 23:59:32.421985+01:00,11.61,13.775,0.0
2024-02-21 23:59:32.371300+01:00,10.52,4.856,3.02
2024-02-22 23:59:32.373153+01:00,9.53,4.256,3.48
2024-02-23 23:59:32.372545+01:00,13.66,8.743,4.09
2024-02-24 23:59:32.197044+01:00,14.44,7.842,4.3
2024-02-25 23:59:32.196386+01:00,12.41,16.235,3.48
2024-02-26 23:59:32.409648+01:00,14.63,2.096,5.05
2024-02-27 23:59:32.373347+01:00,14.5,29.437,3.21
2024-02-28 23:59:32.407538+01:00,15.38,6.475,4.88
2024-02-29 23:59:32.194724+01:00,11.83,3.238,4.68
2024-03-01 23:59:32.084520+01:00,10.56,14.352,3.8
2024-03-02 23:59:32.066434+01:00,9.94,25.356,3.49
2024-03-03 23:59:32.270878+01:00,8.9,10.577,3.19
2024-03-04 23:59:32.274918+01:00,10.67,28.096,2.08
2024-03-05 23:59:32.315023+01:00,12.19,10.553,2.95
2024-03-06 23:59:32.441001+01:00,11.38,32.597,2.91
2024-03-07 23:59:32.440044+01:00,12.39,28.856,2.96
2024-03-08 23:59:32.228265+01:00,12.01,37.395,2.96
2024-03-09 23:59:32.081874+01:00,8.72,17.66,3.5
2024-03-10 23:59:32.335321+01:00,8.0,12.207,3.47
2024-03-11 23:59:32.139531+01:00,10.39,2.526,2.96
2024-03-12 23:59:32.136709+01:00,10.24,8.211,2.98
2024-03-13 23:59:32.407174+01:00,7.19,6.425,2.95
2024-03-14 23:59:32.342436+01:00,6.06,33.389,1.64
2024-03-15 23:59:32.266278+01:00,5.63,12.628,2.96
2024-03-16 23:59:32.155245+01:00,9.57,12.103,3.0
2024-03-17 23:59:32.366155+01:00,8.43,14.302,0.25
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'David HERNANDEZ'

# The full version, including alpha/beta/rc tags
release = '0.8.4'
release = '0.8.6'

# -- General configuration ---------------------------------------------------

Expand Down
10 changes: 5 additions & 5 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@ The following parameters and definitions are only needed if load_cost_forecast_m

These are the technical parameters of the energy system of the household.

- `P_grid_max`: The maximum power that can be supplied by the utility grid in Watts. Defaults to 9000.
- `P_from_grid_max`: The maximum power that can be supplied by the utility grid in Watts (consumption). Defaults to 9000.
- `P_to_grid_max`: The maximum power that can be supplied to the utility grid in Watts (injection). Defaults to 9000.

We will define the technical parameters of the PV installation. For the modeling task we rely on the PVLib Python package. For more information see: [https://pvlib-python.readthedocs.io/en/stable/](https://pvlib-python.readthedocs.io/en/stable/)
The complete list of supported modules can be found here: [https://github.com/davidusb-geek/emhass-add-on/files/9234460/sam-library-cec-modules-2019-03-05.csv](https://github.com/davidusb-geek/emhass-add-on/files/9234460/sam-library-cec-modules-2019-03-05.csv)
And the list of inverter models can be found here: [https://github.com/davidusb-geek/emhass-add-on/files/9532724/sam-library-cec-inverters-2019-03-05.csv](https://github.com/davidusb-geek/emhass-add-on/files/9532724/sam-library-cec-inverters-2019-03-05.csv)
A dedicated webapp will help you search for your correct PV module and inverter names: [https://emhass-pvlib-database.streamlit.app/](https://emhass-pvlib-database.streamlit.app/)
If your specific model is not found in these lists then solution (1) is to pick another model as close as possible as yours in terms of the nominal power.
Solution (2) would be to use SolCast and pass that data directly to emhass as a list of values from a template. Take a look at this example here: [https://emhass.readthedocs.io/en/latest/forecasts.html#example-using-solcast-forecast-amber-prices](https://emhass.readthedocs.io/en/latest/forecasts.html#example-using-solcast-forecast-amber-prices)

- `module_model`: The PV module model. For example: 'CSUN_Eurasia_Energy_Systems_Industry_and_Trade_CSUN295_60M'. This parameter can be a list of items to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270). When finding the correct model for your installation remember to replace all the special characters in the model name by '_'.
- `inverter_model`: The PV inverter model. For example: 'Fronius_International_GmbH__Fronius_Primo_5_0_1_208_240__240V_'. This parameter can be a list of items to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270). When finding the correct model for your installation remember to replace all the special characters in the model name by '_'.
- `module_model`: The PV module model. For example: 'CSUN_Eurasia_Energy_Systems_Industry_and_Trade_CSUN295_60M'. This parameter can be a list of items to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270). When finding the correct model for your installation remember to replace all the special characters in the model name by '_'. The name of the table column for your device on the webapp will already have the correct naming convention.
- `inverter_model`: The PV inverter model. For example: 'Fronius_International_GmbH__Fronius_Primo_5_0_1_208_240__240V_'. This parameter can be a list of items to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270). When finding the correct model for your installation remember to replace all the special characters in the model name by '_'. The name of the table column for your device on the webapp will already have the correct naming convention.
- `surface_tilt`: The tilt angle of your solar panels. Defaults to 30. This parameter can be a list of items to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270).
- `surface_azimuth`: The azimuth of your PV installation. Defaults to 205. This parameter can be a list of items to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270).
- `modules_per_string`: The number of modules per string. Defaults to 16. This parameter can be a list of items to enable the simulation of mixed orientation systems, for example one east-facing array (azimuth=90) and one west-facing array (azimuth=270).
Expand Down
Loading
Loading