diff -r affe4d2adc94 -r 9e6fb5aed618 www-thermferm/liveview.php --- a/www-thermferm/liveview.php Tue Sep 02 16:54:18 2014 +0200 +++ b/www-thermferm/liveview.php Wed Sep 03 15:02:09 2014 +0200 @@ -194,6 +194,8 @@ $outstr .= ' $("#load_sw1_'.$unr.'").html(data.sw1);'.PHP_EOL; $outstr .= ' $("#load_sw2_'.$unr.'").html(data.sw2);'.PHP_EOL; $outstr .= ' $("#load_sw3_'.$unr.'").html(data.sw3);'.PHP_EOL; + if ($mode == "PROFILE") + $outstr .= ' $("#prof_state_'.$unr.'").html(data.profile_state);'.PHP_EOL; $outstr .= ' });'.PHP_EOL; $outstr .= ' }, 10000);'.PHP_EOL; $outstr .= ' });'.PHP_EOL; @@ -268,7 +270,7 @@ } } $outstr .= '
Profile: '.$prof_name.'
'.PHP_EOL; - $outstr .= '
State: '.$prof_state.'
'.PHP_EOL; + $outstr .= '
State: '.$prof_state.'
'.PHP_EOL; $outstr .= '
'.PHP_EOL; if ($prof_state == "OFF") { @@ -292,7 +294,7 @@ if ($profile != "(null)") $outstr .= ' '.PHP_EOL; - } else if ($prof_state == "RUN") { + } else if (startsWith($prof_state, "RUN")) { $outstr .= ' '.PHP_EOL; $outstr .= ' '.PHP_EOL; $outstr .= ' '.PHP_EOL; @@ -304,7 +306,6 @@ $outstr .= ' '.PHP_EOL; $outstr .= ' '.PHP_EOL; } - //$outstr .= ' '.PHP_EOL; $outstr .= ' '.PHP_EOL; $outstr .= '
'.PHP_EOL; }