@@ -465,7 +465,7 @@
@@ -473,7 +473,7 @@
@@ -481,7 +481,7 @@
@@ -491,7 +491,7 @@
@@ -501,7 +501,7 @@
@@ -509,7 +509,7 @@
@@ -519,7 +519,7 @@
@@ -527,7 +527,7 @@
@@ -535,7 +535,7 @@
@@ -543,7 +543,7 @@
@@ -551,7 +551,7 @@
@@ -566,8 +566,8 @@
@@ -747,7 +747,7 @@
function checkAdvancedSection( b ) {
var b = $("#adv-config").is(":checked");
-
+
$("#advanced-btn").prop("disabled", b);
$("#gyro-read-count").prop("disabled", b);
$("#gyro-moving-threashold").prop("disabled", b);
@@ -783,6 +783,11 @@
$("#int-http3").val(cfg["int-http3"]);
$("#int-influx").val(cfg["int-influx"]);
$("#int-mqtt").val(cfg["int-mqtt"]);
+
+ if ( cfg["gyro-read-count"] != 50 || cfg["gyro-moving-threashold"] != 500 || cfg["formula-max-deviation"] != 1.6 || cfg["wifi-portal-timeout"] != 120 || cfg["wifi-connect-timeout"] != 20 || cfg["tempsensor-resolution"] != 9 ||
+ cfg["int-http1"] != 0 || cfg["int-http2"] != 0 || cfg["int-http3"] != 0 || cfg["int-influx"] != 0 || cfg["int-mqtt"] != 0 ) {
+ $("#adv-config").attr("checked", false );
+ }
})
.fail(function () {
showError('Unable to get data from the device.');
diff --git a/html/config.min.htm b/html/config.min.htm
index 538c99b..e30c101 100644
--- a/html/config.min.htm
+++ b/html/config.min.htm
@@ -1 +1 @@
-
Beer Gravity MonitorA sleep-interval of less than 300s will reduce battery life, consider using 900s
When using the gyro temperature use a sleep-interval that is greater than 300s for accurate readings
(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file
+
Beer Gravity MonitorA sleep-interval of less than 300s will reduce battery life, consider using 900s
When using the gyro temperature use a sleep-interval that is greater than 300s for accurate readings
(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file
diff --git a/test/adv.json b/test/adv.json
index 4ee53db..edbb91c 100644
--- a/test/adv.json
+++ b/test/adv.json
@@ -1,15 +1,15 @@
{
- "gyro-read-count": 51,
- "gyro-moving-threashold": 501,
- "formula-max-deviation": 1.7,
- "wifi-portal-timeout": 121,
- "wifi-connect-timeout": 21,
- "formula-calibration-temp": 21,
- "tempsensor-resolution": 12,
+ "gyro-read-count": 50,
+ "gyro-moving-threashold": 500,
+ "formula-max-deviation": 1.6,
+ "wifi-portal-timeout": 120,
+ "wifi-connect-timeout": 20,
+ "formula-calibration-temp": 20,
+ "tempsensor-resolution": 9,
"push-timeout": 10,
- "int-http1": 1,
- "int-http2": 2,
- "int-http3": 3,
- "int-influx": 4,
- "int-mqtt": 5
+ "int-http1": 0,
+ "int-http2": 0,
+ "int-http3": 0,
+ "int-influx": 0,
+ "int-mqtt": 0
}
\ No newline at end of file