diff -r 7a29f835e20a -r d694abd9d809 www-thermferm/index.php --- a/www-thermferm/index.php Mon Jan 21 17:11:50 2019 +0100 +++ b/www-thermferm/index.php Thu Feb 07 14:59:47 2019 +0100 @@ -62,23 +62,25 @@ } -if (isset($_POST['Fridge']) && isset($_POST['key']) && isset($_POST['UUID'])) { +if (isset($_POST['Fridge_lo']) && isset($_POST['Fridge_hi']) && isset($_POST['key']) && isset($_POST['UUID'])) { if ($_POST['key'] == "Set") { - send_array(array('UNIT PUT '.$_POST['UUID'], 'FRIDGE_SET,'.$_POST['Fridge'], '.')); + send_array(array('UNIT PUT '.$_POST['UUID'], 'FRIDGE_SET_LO,'.$_POST['Fridge_lo'], 'FRIDGE_SET_HI,'.$_POST['Fridge_hi'], '.')); } - unset($_POST['Fridge']); + unset($_POST['Fridge_lo']); + unset($_POST['Fridge_hi']); unset($_POST['key']); unset($_POST['UUID']); } -if (isset($_POST['Beer']) && isset($_POST['key']) && isset($_POST['UUID'])) { +if (isset($_POST['Beer_lo']) && isset($_POST['Beer_hi']) && isset($_POST['key']) && isset($_POST['UUID'])) { if ($_POST['key'] == "Set") { - send_array(array('UNIT PUT '.$_POST['UUID'], 'BEER_SET,'.$_POST['Beer'], '.')); + send_array(array('UNIT PUT '.$_POST['UUID'], 'BEER_SET_LO,'.$_POST['Beer_lo'], 'BEER_SET_HI,'.$_POST['Beer_hi'], '.')); } - unset($_POST['Beer']); + unset($_POST['Beer_lo']); + unset($_POST['Beer_hi']); unset($_POST['key']); unset($_POST['UUID']); }