Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
9a37481
1
Parent(s):
923009e
Update zapro.html
Browse files- zapro.html +9 -1
zapro.html
CHANGED
@@ -28,7 +28,15 @@
|
|
28 |
<h1>EC value: {{ ec_values }}</h1>
|
29 |
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
</body>
|
34 |
</html>
|
|
|
28 |
<h1>EC value: {{ ec_values }}</h1>
|
29 |
|
30 |
|
31 |
+
<script>
|
32 |
+
fetch('/api')
|
33 |
+
.then(response => response.json())
|
34 |
+
.then(data => {
|
35 |
+
// Обновляем значения ph_values и ec_values
|
36 |
+
document.getElementById("ph_value").innerText = data.ph_out;
|
37 |
+
document.getElementById("ec_value").innerText = data.ec_out;
|
38 |
+
});
|
39 |
+
</script>
|
40 |
|
41 |
</body>
|
42 |
</html>
|