Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
52ce0c5
1
Parent(s):
660203c
Update app.py
Browse files
app.py
CHANGED
@@ -82,6 +82,28 @@ def settings_api():
|
|
82 |
|
83 |
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
@app.route('/pH_set')
|
86 |
def set_pH_value():
|
87 |
ph_value = request.args.get('value')
|
|
|
82 |
|
83 |
|
84 |
|
85 |
+
@app.route('/settings_api_eep_set', methods=['GET'])
|
86 |
+
def settings_api():
|
87 |
+
return jsonify(ph_eep=globs.ph_eep,
|
88 |
+
ph_on_eep=globs.ph_on_eep,
|
89 |
+
ec_eep=globs.ec_eep,
|
90 |
+
ec_A_eep=globs.ec_A_eep,
|
91 |
+
ec_B_eep=globs.ec_B_eep,
|
92 |
+
ec_C_eep=globs.ec_C_eep,
|
93 |
+
l_ON_h_eep=globs.l_ON_h_eep,
|
94 |
+
l_ON_m_eep=globs.l_ON_m_eep,
|
95 |
+
l_OFF_h_eep=globs.l_OFF_h_eep,
|
96 |
+
l_OFF_m_eep=globs.l_OFF_m_eep,
|
97 |
+
t_Voz_eep=globs.t_Voz_eep
|
98 |
+
)
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
+
|
107 |
@app.route('/pH_set')
|
108 |
def set_pH_value():
|
109 |
ph_value = request.args.get('value')
|