24 require_once('utilities.php'); |
24 require_once('utilities.php'); |
25 |
25 |
26 if (isset($_GET["uuid"])) |
26 if (isset($_GET["uuid"])) |
27 $uuid = $_GET["uuid"]; |
27 $uuid = $_GET["uuid"]; |
28 else |
28 else |
29 $uuid = "0e261929-486d-4117-897a-2b23509157c6"; |
29 $uuid = "48c9ae27-3f58-41c9-ae4b-1d57b249c45a"; |
30 |
30 |
31 $answer = send_cmd('UNIT GET '.$uuid); |
31 $answer = send_cmd('UNIT GET '.$uuid); |
32 $arr = explode("\r\n", $answer); |
32 $arr = explode("\r\n", $answer); |
33 |
33 |
34 $air_temperature = "NA"; |
34 $air_temperature = "NA"; |
81 $target_temperature = $f[1]; |
82 $target_temperature = $f[1]; |
82 if (($f[0] == "FRIDGE_SET") && ($mode == "FRIDGE")) |
83 if (($f[0] == "FRIDGE_SET") && ($mode == "FRIDGE")) |
83 $target_temperature = $f[1]; |
84 $target_temperature = $f[1]; |
84 if (($f[0] == "PROF_TARGET") && ($mode == "PROFILE")) |
85 if (($f[0] == "PROF_TARGET") && ($mode == "PROFILE")) |
85 $target_temperature = $f[1]; |
86 $target_temperature = $f[1]; |
|
87 if (($f[0] == "PROF_STATE") && ($mode == "PROFILE")) |
|
88 $prof_state = $f[1]; |
86 $j++; |
89 $j++; |
87 } |
90 } |
88 } |
91 } |
89 |
92 |
90 |
93 |