DmitrMakeev commited on
Commit
bc09640
1 Parent(s): 81f024f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -140,7 +140,7 @@ def settings_api():
140
 
141
 
142
 
143
- @app.route('/pH_set')
144
  def set_pH_value():
145
  ph_value = request.args.get('value')
146
  globs.ph_set = ph_value
@@ -148,7 +148,7 @@ def set_pH_value():
148
  return "pH value set successfully"
149
 
150
 
151
- @app.route('/ph_on_set')
152
  def ph_on_value():
153
  ph_on_value = request.args.get('value')
154
  globs.ph_on_set = ph_on_value
@@ -157,28 +157,28 @@ def ph_on_value():
157
 
158
 
159
 
160
- @app.route('/EC_set')
161
  def set_EC_value():
162
  ec_value = request.args.get('value')
163
  globs.ec_set = ec_value
164
  globs.eep_set = 3
165
  return "EC value set successfully"
166
 
167
- @app.route('/ec_A_set')
168
  def ec_A_setValue():
169
  ec_A_setValue = request.args.get('value')
170
  globs.ec_A_set = ec_A_setValue
171
  globs.eep_set = 4
172
  return "EC value set successfully"
173
 
174
- @app.route('/ec_B_set')
175
  def ec_B_setValue():
176
  ec_B_setValue = request.args.get('value')
177
  globs.ec_B_set = ec_B_setValue
178
  globs.eep_set = 5
179
  return "EC value set successfully"
180
 
181
- @app.route('/ec_C_set')
182
  def ec_C_setValue():
183
  ec_C_setValue = request.args.get('value')
184
  globs.ec_C_set = ec_C_setValue
@@ -186,7 +186,7 @@ def ec_C_setValue():
186
  return "EC value set successfully"
187
 
188
 
189
- @app.route('/l_ON_set')
190
  def l_ON_set():
191
  globs.l_ON_h_set = request.args.get('l_ON_h_set')
192
  globs.l_ON_m_set = request.args.get('l_ON_m_set')
@@ -195,7 +195,7 @@ def l_ON_set():
195
 
196
 
197
 
198
- @app.route('/l_OFF_set')
199
  def l_OFF_set():
200
  globs.l_OFF_h_set = request.args.get('l_OFF_h_set')
201
  globs.l_OFF_m_set = request.args.get('l_OFF_m_set')
@@ -205,7 +205,7 @@ def l_OFF_set():
205
 
206
 
207
 
208
- @app.route('/t_Voz_eep_set')
209
  def t_Voz_eep_set():
210
  t_Voz_eep_set = request.args.get('value')
211
  globs.ec_t_Voz_set = t_Voz_eep_set
 
140
 
141
 
142
 
143
+ @app.route('/pH_set', methods=['GET'])
144
  def set_pH_value():
145
  ph_value = request.args.get('value')
146
  globs.ph_set = ph_value
 
148
  return "pH value set successfully"
149
 
150
 
151
+ @app.route('/ph_on_set', methods=['GET'])
152
  def ph_on_value():
153
  ph_on_value = request.args.get('value')
154
  globs.ph_on_set = ph_on_value
 
157
 
158
 
159
 
160
+ @app.route('/EC_set', methods=['GET'])
161
  def set_EC_value():
162
  ec_value = request.args.get('value')
163
  globs.ec_set = ec_value
164
  globs.eep_set = 3
165
  return "EC value set successfully"
166
 
167
+ @app.route('/ec_A_set', methods=['GET'])
168
  def ec_A_setValue():
169
  ec_A_setValue = request.args.get('value')
170
  globs.ec_A_set = ec_A_setValue
171
  globs.eep_set = 4
172
  return "EC value set successfully"
173
 
174
+ @app.route('/ec_B_set', methods=['GET'])
175
  def ec_B_setValue():
176
  ec_B_setValue = request.args.get('value')
177
  globs.ec_B_set = ec_B_setValue
178
  globs.eep_set = 5
179
  return "EC value set successfully"
180
 
181
+ @app.route('/ec_C_set', methods=['GET'])
182
  def ec_C_setValue():
183
  ec_C_setValue = request.args.get('value')
184
  globs.ec_C_set = ec_C_setValue
 
186
  return "EC value set successfully"
187
 
188
 
189
+ @app.route('/l_ON_set', methods=['GET'])
190
  def l_ON_set():
191
  globs.l_ON_h_set = request.args.get('l_ON_h_set')
192
  globs.l_ON_m_set = request.args.get('l_ON_m_set')
 
195
 
196
 
197
 
198
+ @app.route('/l_OFF_set', methods=['GET'])
199
  def l_OFF_set():
200
  globs.l_OFF_h_set = request.args.get('l_OFF_h_set')
201
  globs.l_OFF_m_set = request.args.get('l_OFF_m_set')
 
205
 
206
 
207
 
208
+ @app.route('/t_Voz_eep_set', methods=['GET'])
209
  def t_Voz_eep_set():
210
  t_Voz_eep_set = request.args.get('value')
211
  globs.ec_t_Voz_set = t_Voz_eep_set