From fa3d68c3216a214105d06020827db3f34ca62b4d Mon Sep 17 00:00:00 2001 From: Magnus Persson Date: Tue, 26 Apr 2022 19:54:48 +0200 Subject: [PATCH] Added wifi advanced config --- html/config.htm | 22 +++++++++++++++++++++- html/config.min.htm | 2 +- html/format.min.htm | 4 ++-- src/config.cpp | 9 ++++++--- src/config.hpp | 4 ++++ src/resources.hpp | 3 ++- src/webserver.cpp | 10 +++++++--- src/wifi.cpp | 2 +- test/adv.json | 4 +++- 9 files changed, 47 insertions(+), 13 deletions(-) diff --git a/html/config.htm b/html/config.htm index 7b36160..e81a462 100644 --- a/html/config.htm +++ b/html/config.htm @@ -485,7 +485,25 @@
(1 - 10) - default 1.6 SG
- + +
+ +
+ +
+ +
+
(1 - 60) - default 20 s
+
+ +
+ +
+ +
+
(10 - 240) - default 120 s
+
+
@@ -715,6 +733,8 @@ $("#gyro-read-count").val(cfg["gyro-read-count"]); $("#gyro-moving-threashold").val(cfg["gyro-moving-threashold"]); $("#formula-max-deviation").val(cfg["formula-max-deviation"]); + $("#wifi-portal-timeout").val(cfg["wifi-portal-timeout"]); + $("#wifi-connect-timeout").val(cfg["wifi-connect-timeout"]); $("#int-http1").val(cfg["int-http1"]); $("#int-http2").val(cfg["int-http2"]); $("#int-http3").val(cfg["int-http3"]); diff --git a/html/config.min.htm b/html/config.min.htm index 0e1502b..82a3e60 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

(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

(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/html/format.min.htm b/html/format.min.htm index 3ab73e1..5c0697f 100644 --- a/html/format.min.htm +++ b/html/format.min.htm @@ -1,8 +1,8 @@ Beer Gravity Monitor