diff -r affe4d2adc94 -r 9e6fb5aed618 www-thermferm/getstate.php --- a/www-thermferm/getstate.php Tue Sep 02 16:54:18 2014 +0200 +++ b/www-thermferm/getstate.php Wed Sep 03 15:02:09 2014 +0200 @@ -26,7 +26,7 @@ if (isset($_GET["uuid"])) $uuid = $_GET["uuid"]; else - $uuid = "0e261929-486d-4117-897a-2b23509157c6"; + $uuid = "48c9ae27-3f58-41c9-ae4b-1d57b249c45a"; $answer = send_cmd('UNIT GET '.$uuid); $arr = explode("\r\n", $answer); @@ -40,6 +40,7 @@ $fridge_set = "NA"; $beer_set = "NA"; $heater = $cooler = $fan = "no"; +$prof_state = "OFF"; if (startsWith($arr[0], "213")) { @@ -83,6 +84,8 @@ $target_temperature = $f[1]; if (($f[0] == "PROF_TARGET") && ($mode == "PROFILE")) $target_temperature = $f[1]; + if (($f[0] == "PROF_STATE") && ($mode == "PROFILE")) + $prof_state = $f[1]; $j++; } } @@ -137,7 +140,8 @@ 'led3' => $led3, 'sw1' => $sw1, 'sw2' => $sw2, - 'sw3' => $sw3 + 'sw3' => $sw3, + 'profile_state' => $prof_state );