From 6ebf407e437309604ed3239877cb1ae786fe4d61 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Wed, 30 Mar 2022 16:53:47 +0200 Subject: [PATCH] Change html layout Signed-off-by: Thomas Klaehn --- greenhouseui/app.py | 2 +- greenhouseui/static/scripts/greenhouse.js | 6 +- greenhouseui/templates/index.html | 72 +++++++++++------------ 3 files changed, 39 insertions(+), 41 deletions(-) diff --git a/greenhouseui/app.py b/greenhouseui/app.py index 099d020..0714d50 100644 --- a/greenhouseui/app.py +++ b/greenhouseui/app.py @@ -64,7 +64,7 @@ def draw_temperature_image(): color = "#b6b6b6" fig, ax = plt.subplots(1) - fig.set_figwidth(4) + fig.set_figwidth(5.5) fig.set_figheight(2) fig.set_facecolor(background_color) diff --git a/greenhouseui/static/scripts/greenhouse.js b/greenhouseui/static/scripts/greenhouse.js index 8b71eb4..fc2a32a 100644 --- a/greenhouseui/static/scripts/greenhouse.js +++ b/greenhouseui/static/scripts/greenhouse.js @@ -106,7 +106,8 @@ var parse_config = function (event) { document.getElementById("heat_switch_label").style.visibility = visibility_heat document.getElementById("heat_switch").style.visibility = visibility_heat document.getElementById("heat_auto_switch").value = output; - document.getElementById("config_temperatures").style.visibility = visibility + document.getElementById("config_temperatures_on").style.visibility = visibility + document.getElementById("config_temperatures_off").style.visibility = visibility } output = "einschalten" visibility = 'hidden' @@ -124,7 +125,8 @@ var parse_config = function (event) { document.getElementById("water_switch_label").style.visibility = visibility_water document.getElementById("water_switch").style.visibility = visibility_water document.getElementById("water_auto_switch").value = output; - document.getElementById("water_times").style.visibility = visibility + document.getElementById("config_times_before_noon").style.visibility = visibility + document.getElementById("config_times_afternoon").style.visibility = visibility } } diff --git a/greenhouseui/templates/index.html b/greenhouseui/templates/index.html index 5f5b6cf..f8af2fb 100644 --- a/greenhouseui/templates/index.html +++ b/greenhouseui/templates/index.html @@ -9,7 +9,6 @@

Gewächshaus

-
@@ -34,50 +33,47 @@ -

Temperatur

- - -
- - - - - - - - - -
- -
Zeigesteuerte Bewässerung - -
-