www-thermferm/index.php

changeset 578
d694abd9d809
parent 570
1e0192b295b9
child 693
3518c07737d8
equal deleted inserted replaced
577:7a29f835e20a 578:d694abd9d809
60 unset($_POST['UUID']); 60 unset($_POST['UUID']);
61 unset($_POST['FanState']); 61 unset($_POST['FanState']);
62 } 62 }
63 63
64 64
65 if (isset($_POST['Fridge']) && isset($_POST['key']) && isset($_POST['UUID'])) { 65 if (isset($_POST['Fridge_lo']) && isset($_POST['Fridge_hi']) && isset($_POST['key']) && isset($_POST['UUID'])) {
66 66
67 if ($_POST['key'] == "Set") { 67 if ($_POST['key'] == "Set") {
68 send_array(array('UNIT PUT '.$_POST['UUID'], 'FRIDGE_SET,'.$_POST['Fridge'], '.')); 68 send_array(array('UNIT PUT '.$_POST['UUID'], 'FRIDGE_SET_LO,'.$_POST['Fridge_lo'], 'FRIDGE_SET_HI,'.$_POST['Fridge_hi'], '.'));
69 } 69 }
70 unset($_POST['Fridge']); 70 unset($_POST['Fridge_lo']);
71 unset($_POST['Fridge_hi']);
71 unset($_POST['key']); 72 unset($_POST['key']);
72 unset($_POST['UUID']); 73 unset($_POST['UUID']);
73 } 74 }
74 75
75 76
76 if (isset($_POST['Beer']) && isset($_POST['key']) && isset($_POST['UUID'])) { 77 if (isset($_POST['Beer_lo']) && isset($_POST['Beer_hi']) && isset($_POST['key']) && isset($_POST['UUID'])) {
77 78
78 if ($_POST['key'] == "Set") { 79 if ($_POST['key'] == "Set") {
79 send_array(array('UNIT PUT '.$_POST['UUID'], 'BEER_SET,'.$_POST['Beer'], '.')); 80 send_array(array('UNIT PUT '.$_POST['UUID'], 'BEER_SET_LO,'.$_POST['Beer_lo'], 'BEER_SET_HI,'.$_POST['Beer_hi'], '.'));
80 } 81 }
81 unset($_POST['Beer']); 82 unset($_POST['Beer_lo']);
83 unset($_POST['Beer_hi']);
82 unset($_POST['key']); 84 unset($_POST['key']);
83 unset($_POST['UUID']); 85 unset($_POST['UUID']);
84 } 86 }
85 87
86 88

mercurial