DmitrMakeev
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -139,13 +139,6 @@ def settings_api():
|
|
139 |
|
140 |
|
141 |
|
142 |
-
@app.route('/set_res')
|
143 |
-
def set_res():
|
144 |
-
globs.eep_set = 0
|
145 |
-
return jsonify(value_set="reset")
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
|
150 |
@app.route('/pH_set')
|
151 |
def set_pH_value():
|
@@ -220,6 +213,26 @@ def t_Voz_eep_set():
|
|
220 |
return "EC value set successfully"
|
221 |
|
222 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
|
224 |
@app.route("/api", methods=['GET'])
|
225 |
def handle_api():
|
@@ -233,13 +246,18 @@ def handle_save_db():
|
|
233 |
return response
|
234 |
|
235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
|
237 |
|
238 |
|
239 |
|
240 |
-
@app.route('/graf_json', methods=['GET'])
|
241 |
-
def graf_json():
|
242 |
-
return render_template('graf.html')
|
243 |
|
244 |
|
245 |
|
|
|
139 |
|
140 |
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
@app.route('/pH_set')
|
144 |
def set_pH_value():
|
|
|
213 |
return "EC value set successfully"
|
214 |
|
215 |
|
216 |
+
|
217 |
+
|
218 |
+
|
219 |
+
|
220 |
+
@app.route('/but_start')
|
221 |
+
def but_start():
|
222 |
+
globs.eep_set = 10
|
223 |
+
return jsonify(value_set="start")
|
224 |
+
|
225 |
+
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
+
|
230 |
+
|
231 |
+
|
232 |
+
|
233 |
+
|
234 |
+
|
235 |
+
|
236 |
|
237 |
@app.route("/api", methods=['GET'])
|
238 |
def handle_api():
|
|
|
246 |
return response
|
247 |
|
248 |
|
249 |
+
@app.route('/set_res')
|
250 |
+
def set_res():
|
251 |
+
globs.eep_set = 0
|
252 |
+
return jsonify(value_set="reset")
|
253 |
+
|
254 |
+
|
255 |
+
|
256 |
+
|
257 |
|
258 |
|
259 |
|
260 |
|
|
|
|
|
|
|
261 |
|
262 |
|
263 |
|