diff --git a/config.json.dist b/config.json.dist index e1fb220..33ffd50 100755 --- a/config.json.dist +++ b/config.json.dist @@ -1,7 +1,4 @@ { - "loop_activation": true, - "loop_log": true, - "boot_log": true, "modem_config_mode": false, "NPM/get_data_modbus_v3.py":true, "loop/SARA_send_data_v2.py": true, diff --git a/html/admin.html b/html/admin.html index f3a6524..8f5ef6b 100755 --- a/html/admin.html +++ b/html/admin.html @@ -59,6 +59,8 @@
+
- + + +
+ +
+
+
+ + +
+
@@ -200,24 +217,20 @@ window.onload = function() { //get BME check const checkbox = document.getElementById("check_bme280"); - checkbox.checked = data.i2c_BME; + checkbox.checked = data["BME280/get_data_v2.py"]; - //get BME check + //get NPM-5channels check + const checkbox_NPM_5channels = document.getElementById("check_NPM_5channels"); + checkbox_NPM_5channels.checked = data["NextPM_5channels"]; + + //get sonde Envea check + const checkbox_envea = document.getElementById("check_envea"); + checkbox_envea.checked = data["envea/read_value_v2.py"]; + + //get RTC check const checkbox_RTC = document.getElementById("check_RTC"); checkbox_RTC.checked = data.i2c_RTC; - //loop activation - const flex_loop = document.getElementById("flex_loop"); - flex_loop.checked = data.loop_activation; - console.log("Loop activation: " + data.loop_activation); - - //loop logs - const flex_loop_log = document.getElementById("flex_loop_log"); - flex_loop_log.checked = data.loop_log; - - //start logs - const flex_start_log = document.getElementById("flex_start_log"); - flex_start_log.checked = data.boot_log; //device name const device_name = document.getElementById("device_name");