emhass 0.12.3__py3-none-any.whl → 0.12.4__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/web_server.py +5 -0
- {emhass-0.12.3.dist-info → emhass-0.12.4.dist-info}/METADATA +1 -1
- {emhass-0.12.3.dist-info → emhass-0.12.4.dist-info}/RECORD +6 -6
- {emhass-0.12.3.dist-info → emhass-0.12.4.dist-info}/WHEEL +0 -0
- {emhass-0.12.3.dist-info → emhass-0.12.4.dist-info}/entry_points.txt +0 -0
- {emhass-0.12.3.dist-info → emhass-0.12.4.dist-info}/licenses/LICENSE +0 -0
emhass/web_server.py
CHANGED
@@ -45,6 +45,7 @@ from emhass.utils import (
|
|
45
45
|
|
46
46
|
# Define the Flask instance
|
47
47
|
app = Flask(__name__)
|
48
|
+
|
48
49
|
emhass_conf = {}
|
49
50
|
entity_path = Path
|
50
51
|
params_secrets = {}
|
@@ -59,6 +60,9 @@ def create_app(settings_override=None):
|
|
59
60
|
:return: Flask app
|
60
61
|
"""
|
61
62
|
global app
|
63
|
+
gunicorn_logger = logging.getLogger("gunicorn.error")
|
64
|
+
app.logger.handlers = gunicorn_logger.handlers
|
65
|
+
app.logger.setLevel(logging.INFO)
|
62
66
|
main()
|
63
67
|
return app
|
64
68
|
|
@@ -553,6 +557,7 @@ def main(
|
|
553
557
|
global emhass_conf
|
554
558
|
global entity_path
|
555
559
|
global injection_dict
|
560
|
+
global app
|
556
561
|
# Pre formatted config parameters
|
557
562
|
config = {}
|
558
563
|
# Secrets
|
@@ -6,7 +6,7 @@ emhass/machine_learning_regressor.py,sha256=yFwMvVEmlgDJUsHhBT-HpNE3j2TC24e8Gmbc
|
|
6
6
|
emhass/optimization.py,sha256=DVUEtYrXFYNUIGpOPFX87TvpM1yqlmxjpERzZ7TNUIc,64680
|
7
7
|
emhass/retrieve_hass.py,sha256=t51D1D_HjpV6h4IA0xitV5wQ39Wr3Lh2A-bJPEWdZJc,27282
|
8
8
|
emhass/utils.py,sha256=7kuQfEQrYFh78Q5M2bQB0_x_4F-MvZ69v1c8JNFO1eU,70181
|
9
|
-
emhass/web_server.py,sha256=
|
9
|
+
emhass/web_server.py,sha256=qVFzU6ei_T4NhnPyhQ3BJyB_cWJz7VkpooPafZlqE98,29253
|
10
10
|
emhass/data/associations.csv,sha256=IpEZIIWYdFjkRoC5xa1pRHjwnVs_VH8G8ogbGFxLfGI,3679
|
11
11
|
emhass/data/cec_inverters.pbz2,sha256=P1JkVuAF1VKD8HmA9Y-Pvb45dv7E-bIwAVkGXDftZLQ,189425
|
12
12
|
emhass/data/cec_modules.pbz2,sha256=h14aS6aC1x1NKsCeTctsVZdFgAl5WiBZFAdnFZR_vE4,1885712
|
@@ -27,8 +27,8 @@ emhass/static/img/feather-sprite.svg,sha256=VHjMJQg88wXa9CaeYrKGhNtyK0xdd47zCqwS
|
|
27
27
|
emhass/templates/configuration.html,sha256=M-_L__juYzcdGDaryGrz6LG2mguW2f1Sx6k01YfG7Dc,2885
|
28
28
|
emhass/templates/index.html,sha256=1V44c0yyliu_z8inl0K-zmmmkhQumH3Bqk8Jj1YJPzY,3076
|
29
29
|
emhass/templates/template.html,sha256=TkGgMecQEbFUZA4ymPwMUzNjKHsENvCgroUWbPt7G4Y,158
|
30
|
-
emhass-0.12.
|
31
|
-
emhass-0.12.
|
32
|
-
emhass-0.12.
|
33
|
-
emhass-0.12.
|
34
|
-
emhass-0.12.
|
30
|
+
emhass-0.12.4.dist-info/METADATA,sha256=QSe1zRBt_wjb-wp5ZRrlDmtyJtTBesZco0ARGslI-sk,49664
|
31
|
+
emhass-0.12.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
32
|
+
emhass-0.12.4.dist-info/entry_points.txt,sha256=6Bp1NFOGNv_fSTxYl1ke3K3h3aqAcBxI-bgq5yq-i1M,52
|
33
|
+
emhass-0.12.4.dist-info/licenses/LICENSE,sha256=1X3-S1yvOCBDBeox1aK3dq00m7dA8NDtcPrpKPISzbE,1077
|
34
|
+
emhass-0.12.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|