diff --git a/html/config.htm b/html/config.htm index f2aba37..03830d6 100644 --- a/html/config.htm +++ b/html/config.htm @@ -107,7 +107,7 @@
- +
@@ -121,7 +121,7 @@
- +
@@ -130,7 +130,7 @@
- +
@@ -285,7 +285,7 @@
- +
@@ -352,7 +352,7 @@
- +
@@ -390,7 +390,7 @@
- +
@@ -398,7 +398,7 @@
- +
@@ -453,7 +453,7 @@

@@ -465,7 +465,7 @@
- +
(10-100) - default 50
@@ -473,7 +473,7 @@
- +
(50-1000) - default 500
@@ -481,7 +481,7 @@
- +
(1 - 10) - default 1.6 SG
@@ -491,7 +491,7 @@
- +
(9 - 12) - default 9 bits
@@ -501,7 +501,7 @@
- +
(1 - 60) - default 20 s
@@ -509,7 +509,7 @@
- +
(10 - 240) - default 120 s
@@ -519,7 +519,7 @@
- +
(0 - 5) - default 0
@@ -527,7 +527,7 @@
- +
(0 - 5) - default 0
@@ -535,7 +535,7 @@
- +
(0 - 5) - default 0
@@ -543,7 +543,7 @@
- +
(0 - 5) - default 0
@@ -551,7 +551,7 @@
- +
(0 - 5) - default 0
@@ -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 Monitor

Temperature Format:


Gravity Format:

(10-100) - default 50
(50-1000) - default 500
(1 - 10) - default 1.6 SG

(9 - 12) - default 9 bits

(1 - 60) - default 20 s
(10 - 240) - default 120 s

(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file +Beer Gravity Monitor

Temperature Format:


Gravity Format:

(10-100) - default 50
(50-1000) - default 500
(1 - 10) - default 1.6 SG

(9 - 12) - default 9 bits

(1 - 60) - default 20 s
(10 - 240) - default 120 s

(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(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