# HG changeset patch # User Michiel Broek # Date 1414947605 -3600 # Node ID e88d182657ca282e51630e0841efd743998e373f # Parent e07b08283d966428e8f420d0a129d66f9d4baec9 Added print and save as png buttons diff -r e07b08283d96 -r e88d182657ca www-thermferm/css/style.css --- a/www-thermferm/css/style.css Sun Nov 02 13:47:57 2014 +0100 +++ b/www-thermferm/css/style.css Sun Nov 02 18:00:05 2014 +0100 @@ -194,6 +194,9 @@ * || switch1 || switch2 || switch3 || * |+----------++----------++----------+| * +------------------------------------+ + * +----------pannel_buttons------------+ + * | | + * +------------------------------------+ */ #fermentor_panel_top { @@ -204,7 +207,7 @@ border: 2px solid; border-color: #888; border-radius: 5px 5px 5px 5px; - margin-bottom: 5px; + margin-bottom: 3px; } #fermentor_selector { @@ -244,7 +247,7 @@ border: 2px solid; border-color: #888; border-radius: 5px 5px 5px 5px; - margin-bottom: 5px; + margin-bottom: 3px; } #fermentor_display1 { @@ -273,12 +276,13 @@ #fermentor_panel_control { width: 236px; - height: 120px; + height: 100px; float: right; background-color: #eee; border: 2px solid; border-color: #888; border-radius: 5px 5px 5px 5px; + margin-bottom: 3px; } #fermentor_led1 { @@ -286,7 +290,7 @@ height: 30px; float: left; text-align: center; - margin-top: 10px; + margin-top: 8px; } #fermentor_led2 { @@ -294,7 +298,7 @@ height: 30px; float: left; text-align: center; - margin-top: 10px; + margin-top: 8px; } #fermentor_led3 { @@ -302,7 +306,7 @@ height: 30px; float: left; text-align: center; - margin-top: 10px; + margin-top: 8px; } .dtemp { @@ -313,7 +317,7 @@ #fermentor_toggle1 { width: 79px; - height: 90px; + height: 70px; float: left; text-align: center; margin-top: 10px; @@ -321,7 +325,7 @@ #fermentor_toggle2 { width: 78px; - height: 90px; + height: 70px; float: left; text-align: center; margin-top: 10px; @@ -329,12 +333,22 @@ #fermentor_toggle3 { width: 79px; - height: 90px; + height: 70px; float: left; text-align: center; margin-top: 10px; } +#fermentor_panel_buttons { + width: 236px; + height: 30px; + float: right; + background-color: #eee; + border: 2px solid; + border-color: #888; + border-radius: 5px 5px 5px 5px; +} + #menu { width: 600px; height: 300px; @@ -387,7 +401,6 @@ box-shadow: #400 0 0px 1px 1px; } - .LEDyellow_on { margin: 5px auto; width: 12px; diff -r e07b08283d96 -r e88d182657ca www-thermferm/liveview.php --- a/www-thermferm/liveview.php Sun Nov 02 13:47:57 2014 +0100 +++ b/www-thermferm/liveview.php Sun Nov 02 18:00:05 2014 +0100 @@ -26,11 +26,11 @@ -function showunit($unit, $unr) +function showunit($unit, $unr, $name) { global $my_style; - $outstr = ' ' . PHP_EOL; + $outstr = ' ' . PHP_EOL; $air_state = $beer_state = 1; $answer = send_cmd("UNIT GET ".$unit); $arr = explode("\r\n", $answer); @@ -103,6 +103,9 @@ $outstr .= '