DmitrMakeev commited on
Commit
23e1f87
1 Parent(s): 0430110

Update zapro.html

Browse files
Files changed (1) hide show
  1. zapro.html +18 -5
zapro.html CHANGED
@@ -24,11 +24,24 @@
24
 
25
 
26
 
27
- <h1>PH value: {{ ph_values }}</h1>
28
- <h1>EC value: {{ ec_values }}</h1>
29
-
30
-
31
-
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  </body>
34
  </html>
 
24
 
25
 
26
 
27
+ <p>PH значение: <span id="ph_value">{{ ph_value }}</span></p>
28
+ <p>EC значение: <span id="ec_value">{{ ec_value }}</span></p>
29
+
30
+
31
+ <script>
32
+ $(document).ready(function() {
33
+ setInterval(function() {
34
+ $.ajax({
35
+ url: "/zapro",
36
+ method: "GET",
37
+ success: function(response) {
38
+ $("#ph_value").text(response.ph_value);
39
+ $("#ec_value").text(response.ec_value);
40
+ }
41
+ });
42
+ }, 10000);
43
+ });
44
+ </script>
45
 
46
  </body>
47
  </html>