# HG changeset patch # User Michiel Broek # Date 1534007811 -7200 # Node ID 5b384299cc5340b2baa69e1082504cb64c5e95ff # Parent 50545c3e36c680a0dd86dd216a70548dce68dcd5 Added thermometers values block diff -r 50545c3e36c6 -r 5b384299cc53 www/css/style.css --- a/www/css/style.css Sat Aug 11 16:36:45 2018 +0200 +++ b/www/css/style.css Sat Aug 11 19:16:51 2018 +0200 @@ -68,7 +68,40 @@ } -#fermentor_thermometers { +.temperature { + display: inline-block; + font-size: 12pt; + width: 64px; + height: 20px; + white-space: nowrap; + color: #00eeee; +} + +.NUM { + font-family: "Arial Black", Gadget, sans-serif; + color: #00eeee; + border-style: ridge; + padding: 2px; + margin: 2px; + background-color: #212121; +} + + +/* + * +----------------------------------------------------_ + * |+-------------------++--------++-------------------+| + * || || || || + * || || chiller|| || + * || || || || + * || |=--------+| || + * || Air temp |+--------+| Beer temp || + * || || || || + * || || Temps || || + * || || digits || || + * |+-------------------++--------++-------------------+| + * +----------------------------------------------------+ + */ +#fermenter_thermometers { width: 720px; height: 295px; background-color: #252526; @@ -78,6 +111,18 @@ border-radius: 5px 5px 5px 5px; } +#fermenter_tempdigits { + width: 145px; + height: 120px; + float: left; + margin-top: 170; + background-color: #252526; + border: 2px solid; + border-color: #888; + border-radius: 5px 5px 5px 5px; +} + + .LEDred_on { margin: 5px auto; diff -r 50545c3e36c6 -r 5b384299cc53 www/index.php --- a/www/index.php Sat Aug 11 16:36:45 2018 +0200 +++ b/www/index.php Sat Aug 11 19:16:51 2018 +0200 @@ -32,7 +32,7 @@ * Different right panel pages */ var refreshIntervalId = 0; - $("#fermentor_thermometers").hide(); + $("#fermenter_thermometers").hide(); $("#splitter").jqxSplitter({ theme: "", width: 1278, height: 618, panels: [{ size: 250}] }); $("#jqxTree").jqxTree({ theme: "", height: "100%", width: "100%" }); /* @@ -65,7 +65,7 @@ clearInterval(refreshIntervalId); refreshIntervalId = 0; } - $("#fermentor_thermometers").hide(); + $("#fermenter_thermometers").hide(); $("#gaugeContainer_air").hide(); $("#gaugeContainer_beer").hide(); $("#gaugeContainer_chiller").hide(); @@ -179,7 +179,7 @@ animationDuration: 1200, caption: { value: 'Chiller', position: 'bottom', offset: [0, 10] } }; - $("#fermentor_thermometers").show(); + $("#fermenter_thermometers").show(); $("#gaugeContainer_air").show(); $("#gaugeContainer_air").jqxGauge( gaugeoptions ); $("#gaugeContainer_air").jqxGauge( { caption: { value: 'Air', position: 'bottom', offset: [0, 10] }} ); @@ -274,6 +274,11 @@ } else { $("#gaugeContainer_chiller").jqxGauge({ disabled: true }); } + html = "
SpH " + record.setpoint_high + "
"; + html += "
SpL " + record.setpoint_low + "
"; + html += "
Air " + record.air_temperature + "
"; + html += "
Beer " + record.beer_temperature + "
"; + $("#fermenter_tempdigits").html(html); } }); // Get the data immediatly and then at regular intervals to refresh. @@ -338,10 +343,11 @@
-
+
+