--- a/www-thermferm/liveview.php Mon Jan 21 17:11:50 2019 +0100 +++ b/www-thermferm/liveview.php Thu Feb 07 14:59:47 2019 +0100 @@ -109,11 +109,17 @@ if (strcmp($vals[0], "PROF_STATE") == 0) { $prof_state = $vals[1]; } - if (($vals[0] == "BEER_SET") && ($mode == "BEER")) { - $set_temperature_lo = $set_temperature_hi = $vals[1]; + if (($vals[0] == "BEER_SET_LO") && ($mode == "BEER")) { + $set_temperature_lo = $vals[1]; + } + if (($vals[0] == "BEER_SET_HI") && ($mode == "BEER")) { + $set_temperature_hi = $vals[1]; } - if (($vals[0] == "FRIDGE_SET") && ($mode == "FRIDGE")) { - $set_temperature_lo = $set_temperature_hi = $vals[1]; + if (($vals[0] == "FRIDGE_SET_LO") && ($mode == "FRIDGE")) { + $set_temperature_lo = $vals[1]; + } + if (($vals[0] == "FRIDGE_SET_HI") && ($mode == "FRIDGE")) { + $set_temperature_hi = $vals[1]; } if (($vals[0] == "PROF_TARGET_LO") && ($mode == "PROFILE")) { $set_temperature_lo = $vals[1]; @@ -266,14 +272,16 @@ $outstr .= ' <div id="fermentor_mode_control">'.PHP_EOL; if ($mode == "FRIDGE") { $outstr .= ' <form id="set_fridge_'.$unr.'" action="index.php" method="post">'.PHP_EOL; - $outstr .= ' <input type="text" name="Fridge" size="5" value="'.$set_temperature_lo.'"><br>'.PHP_EOL; + $outstr .= ' <input type="text" name="Fridge_lo" size="5" value="'.$set_temperature_lo.'"><br>'.PHP_EOL; + $outstr .= ' <input type="text" name="Fridge_hi" size="5" value="'.$set_temperature_hi.'"><br>'.PHP_EOL; $outstr .= ' <input type="submit" value="Set" name="key">'.PHP_EOL; $outstr .= ' <input type="hidden" value="'.$unit.'" name="UUID">'.PHP_EOL; $outstr .= ' </form>'.PHP_EOL; } if ($mode == "BEER") { $outstr .= ' <form id="set_beer_'.$unr.'" action="index.php" method="post">'.PHP_EOL; - $outstr .= ' <input type="text" name="Beer" size="5" value="'.$set_temperature_lo.'">'.PHP_EOL; + $outstr .= ' <input type="text" name="Beer_lo" size="5" value="'.$set_temperature_lo.'">'.PHP_EOL; + $outstr .= ' <input type="text" name="Beer_hi" size="5" value="'.$set_temperature_hi.'">'.PHP_EOL; $outstr .= ' <input type="submit" value="Set" name="key">'.PHP_EOL; $outstr .= ' <input type="hidden" value="'.$unit.'" name="UUID">'.PHP_EOL; $outstr .= ' </form>'.PHP_EOL;