From 0792372c9d2a4f57386b3193a69f1e17110d4f07 Mon Sep 17 00:00:00 2001 From: Ace Date: Sat, 4 Jul 2020 14:17:01 +0200 Subject: [PATCH] Added "info section" option in web-ui Added new option to select the use of an info section, which is displayed at the bottom of the display and shows some extra stats (time of last update etc.). Still work in progress.... Switched from hour-format as string to hour-format as integer. --- settings-UI.html | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/settings-UI.html b/settings-UI.html index 08d82b4..e356a1f 100644 --- a/settings-UI.html +++ b/settings-UI.html @@ -248,6 +248,20 @@ +
+ +
+
+ + +
+
+ + +
+
+
+
@@ -610,9 +624,15 @@ units = "imperial"; } - var hours = "24"; + + var info_section = true; + if ($('#info_no').is(':checked')) { + info_section = False; + } + + var hours = 24; if ($('#12_hours').is(':checked')) { - hours = "12"; + hours = 12; } var top_section = "Weather"; @@ -666,7 +686,8 @@ week_starts_on, calibration_hours, model, language, - units, hours, + units, hours, + info_section, top_section, top_section_height, middle_section, @@ -694,6 +715,7 @@ language, units, hours, + info_section, top_section, top_section_height, middle_section, @@ -712,6 +734,7 @@ "update_interval": Number(update_interval), // 10, 15, 20, 30, 60 "calibration_hours": calibration_hours.split(",").map(function (x) { return Number(x); }), // Do not change unless you know what you are doing "display_orientation": display_orientation, + "info_section":info_section, "panels": [] };