emhass 0.13.0__py3-none-any.whl → 0.13.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- emhass/__init__.py +0 -0
- emhass/command_line.py +1891 -0
- emhass/data/associations.csv +71 -0
- emhass/data/cec_inverters.pbz2 +0 -0
- emhass/data/cec_modules.pbz2 +0 -0
- emhass/data/config_defaults.json +128 -0
- emhass/forecast.py +1768 -0
- emhass/img/emhass_icon.png +0 -0
- emhass/machine_learning_forecaster.py +386 -0
- emhass/machine_learning_regressor.py +245 -0
- emhass/optimization.py +1548 -0
- emhass/retrieve_hass.py +712 -0
- emhass/static/advanced.html +36 -0
- emhass/static/basic.html +14 -0
- emhass/static/configuration_list.html +48 -0
- emhass/static/configuration_script.js +888 -0
- emhass/static/data/param_definitions.json +482 -0
- emhass/static/img/emhass_icon.png +0 -0
- emhass/static/img/emhass_logo_short.svg +544 -0
- emhass/static/img/feather-sprite.svg +1 -0
- emhass/static/script.js +443 -0
- emhass/static/style.css +1373 -0
- emhass/templates/configuration.html +75 -0
- emhass/templates/index.html +77 -0
- emhass/templates/template.html +5 -0
- emhass/utils.py +1764 -0
- emhass/web_server.py +753 -0
- {emhass-0.13.0.dist-info → emhass-0.13.2.dist-info}/METADATA +13 -4
- emhass-0.13.2.dist-info/RECORD +32 -0
- emhass-0.13.0.dist-info/RECORD +0 -5
- {emhass-0.13.0.dist-info → emhass-0.13.2.dist-info}/WHEEL +0 -0
- {emhass-0.13.0.dist-info → emhass-0.13.2.dist-info}/entry_points.txt +0 -0
- {emhass-0.13.0.dist-info → emhass-0.13.2.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
<!-- advance div, dynamically appended inside of index.html -->
|
2
|
+
<!-- action button elements section -->
|
3
|
+
<div class="loading-div" id="advance">
|
4
|
+
<h4>Use the buttons below to manually launch different optimization tasks</h4>
|
5
|
+
<div id=loader></div> <!-- status dynamic element -->
|
6
|
+
</div>
|
7
|
+
<button type="button" id="perfect-optim" class="button button1">Perfect Optimization</button>
|
8
|
+
<button type="button" id="dayahead-optim" class="button button2">Day-ahead Optimization</button>
|
9
|
+
<button type="button" id="naive-mpc-optim" class="button button3">MPC Optimization</button>
|
10
|
+
<!--ml toggled div button -->
|
11
|
+
<h4>Use the button below to publish the optimized variables at the current timestamp</h4>
|
12
|
+
<button type="button" id="publish-data" class="button button1">Publish Optimization Results</button>
|
13
|
+
<h4>Use the buttons below to fit, predict and tune a machine learning model for testing</h4>
|
14
|
+
<button type="button" id="forecast-model-fit" class="button button1">ML forecast model fit</button>
|
15
|
+
<button type="button" id="forecast-model-predict" class="button button2">ML forecast model
|
16
|
+
predict</button>
|
17
|
+
<button type="button" id="forecast-model-tune" class="button button3">ML forecast model tune</button>
|
18
|
+
</br></br>
|
19
|
+
<button type="button" id="regressor-model-fit" class="button button1">ML regressor model fit</button>
|
20
|
+
<button type="button" id="regressor-model-predict" class="button button2">ML regressor model predict</button>
|
21
|
+
<!-- -->
|
22
|
+
<!--dynamic runtime parameter input (list and box) elements section -->
|
23
|
+
<h4>Input Runtime Parameters</h4>
|
24
|
+
<div class="input-button-container">
|
25
|
+
<div class="input-buttons">
|
26
|
+
<button type="button" id="input-plus">+</button>
|
27
|
+
<button type="button" id="input-minus">-</button>
|
28
|
+
<select name="Select" id="input-select">
|
29
|
+
<option value="List" selected>List</option>
|
30
|
+
<option value="Box">Box</option>
|
31
|
+
</select>
|
32
|
+
<button type="button" id="input-clear">Clear</button>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<div id="input-container"> <!-- (Box/List) dynamic input elements will be added here -->
|
36
|
+
</div>
|
emhass/static/basic.html
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
<!-- basic div, dynamically appended inside of index.html -->
|
2
|
+
<!-- action button elements section -->
|
3
|
+
<div class="loading-div" id="basic">
|
4
|
+
<h4>Use the button below to manually launch optimization task</h4>
|
5
|
+
<div id=loader></div> <!-- status dynamic element -->
|
6
|
+
</div>
|
7
|
+
<button type="button" id="dayahead-optim-basic" class="button button1">Day-ahead Optimization</button>
|
8
|
+
<div class="info">
|
9
|
+
<p>The day-ahead optimization button will run once, based on the values entered into the configuration page.
|
10
|
+
</br>
|
11
|
+
After a few seconds, the charts and table below should be updated to reflect the optimization plan for the next
|
12
|
+
24 hours.
|
13
|
+
</p>
|
14
|
+
</div>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<!-- configuration list dynamically appended inside of configuration.html -->
|
2
|
+
<!-- configuration list view parameter sections -->
|
3
|
+
<div id="Local" class="section-card">
|
4
|
+
<div class="section-card-header">
|
5
|
+
<h4>Local</h4>
|
6
|
+
</div>
|
7
|
+
<div class="section-body"> </div> <!-- parameters will get generated here -->
|
8
|
+
</div>
|
9
|
+
<div id="System" class="section-card">
|
10
|
+
<div class="section-card-header">
|
11
|
+
<h4>System</h4>
|
12
|
+
</div>
|
13
|
+
<div class="section-body"> </div> <!-- parameters will get generated here -->
|
14
|
+
</div>
|
15
|
+
<div id="Tariff" class="section-card">
|
16
|
+
<div class="section-card-header">
|
17
|
+
<h4>Tariff</h4>
|
18
|
+
</div>
|
19
|
+
<div class="section-body"> </div> <!-- parameters will get generated here -->
|
20
|
+
</div>
|
21
|
+
<div id="Deferrable Loads" class="section-card">
|
22
|
+
<div class="section-card-header">
|
23
|
+
<h4>Deferrable Loads</h4>
|
24
|
+
<input id="number_of_deferrable_loads" min="1" type="number">
|
25
|
+
</label>
|
26
|
+
</div>
|
27
|
+
<div class="section-body"> </div> <!-- parameters will get generated here -->
|
28
|
+
</div>
|
29
|
+
<div id="Solar System (PV)" class="section-card">
|
30
|
+
<div class="section-card-header">
|
31
|
+
<h4>Solar System (PV)</h4>
|
32
|
+
<label class="switch"> <!-- switch connected to set_use_pv -->
|
33
|
+
<input id="set_use_pv" type="checkbox">
|
34
|
+
<span class="slider"></span>
|
35
|
+
</label>
|
36
|
+
</div>
|
37
|
+
<div class="section-body"> </div> <!-- parameters will get generated here -->
|
38
|
+
</div>
|
39
|
+
<div id="Battery" class="section-card">
|
40
|
+
<div class="section-card-header">
|
41
|
+
<h4>Battery</h4>
|
42
|
+
<label class="switch"> <!-- switch connected to set_use_battery -->
|
43
|
+
<input id="set_use_battery" type="checkbox">
|
44
|
+
<span class="slider"></span>
|
45
|
+
</label>
|
46
|
+
</div>
|
47
|
+
<div class="section-body"> </div> <!-- parameters will get generated here -->
|
48
|
+
</div>
|