Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
4de0c07
1
Parent(s):
78ab611
Update app.py
Browse files
app.py
CHANGED
@@ -101,11 +101,21 @@ def set_pH_value():
|
|
101 |
globs.eep_set = 1
|
102 |
return "pH value set successfully"
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
@app.route('/EC_set')
|
105 |
def set_EC_value():
|
106 |
ec_value = request.args.get('value')
|
107 |
globs.ec_set = ec_value
|
108 |
-
globs.eep_set =
|
109 |
return "EC value set successfully"
|
110 |
|
111 |
|
|
|
101 |
globs.eep_set = 1
|
102 |
return "pH value set successfully"
|
103 |
|
104 |
+
|
105 |
+
@app.route('/ph_on_set')
|
106 |
+
def set_EC_value():
|
107 |
+
ph_on_value = request.args.get('value')
|
108 |
+
globs.ph_on_set = ph_on_value
|
109 |
+
globs.eep_set = 2
|
110 |
+
return "EC value set successfully"
|
111 |
+
|
112 |
+
|
113 |
+
|
114 |
@app.route('/EC_set')
|
115 |
def set_EC_value():
|
116 |
ec_value = request.args.get('value')
|
117 |
globs.ec_set = ec_value
|
118 |
+
globs.eep_set = 3
|
119 |
return "EC value set successfully"
|
120 |
|
121 |
|