diff -r 32bf084df5af -r 28d1f5188c1d www-thermferm/liveview.php
--- a/www-thermferm/liveview.php Thu Jul 06 22:31:01 2017 +0200
+++ b/www-thermferm/liveview.php Sat Jul 22 23:04:44 2017 +0200
@@ -44,8 +44,8 @@
$profile = "";
$prof_state = "OFF";
$power_led = $cooler_led = $heater_led = $fan_led = "off";
- $heater = $cooler = $fan = "no";
- $heater_state = $cooler_state = $fan_state = 0;
+ $heater = $cooler = $chiller = $fan = "no";
+ $heater_state = $cooler_state = $chiller_state = $fan_state = 0;
foreach($arr as $l) {
$vals = explode(",", $l);
@@ -78,6 +78,12 @@
if (strcmp($vals[0], "COOLER_STATE") == 0) {
$cooler_state = $vals[1];
}
+ if ((strcmp($vals[0], "CHILLER_ADDRESS") == 0) && (strcmp($vals[1], "(null)"))) {
+ $chiller = "yes";
+ }
+ if (strcmp($vals[0], "CHILLER_STATE") == 0) {
+ $chiller_state = $vals[1];
+ }
if ((strcmp($vals[0], "FAN_ADDRESS") == 0) && (strcmp($vals[1], "(null)"))) {
$fan = "yes";
}
@@ -166,6 +172,10 @@
$outstr .= ' $("#load_beer_'.$unr.'").html(data.beer_temperature);'.PHP_EOL;
$outstr .= ' $("#gaugeContainer_beer'.$unr.'").jqxGauge(\'value\', data.beer_temperature);'.PHP_EOL;
}
+ if ("$chiller_state" == "OK") {
+ $outstr .= ' $("#load_chiller_'.$unr.'").html(data.chiller_temperature);'.PHP_EOL;
+ $outstr .= ' $("#gaugeContainer_chiller'.$unr.'").jqxGauge(\'value\', data.chiller_temperature);'.PHP_EOL;
+ }
$outstr .= ' $("#load_target_lo_'.$unr.'").html(data.target_temperature_lo);'.PHP_EOL;
$outstr .= ' $("#load_target_hi_'.$unr.'").html(data.target_temperature_hi);'.PHP_EOL;
$outstr .= ' $("#load_select_'.$unr.'").html(data.mode);'.PHP_EOL;
@@ -398,10 +408,7 @@
$outstr .= ' '.PHP_EOL;
$outstr .= ' '.PHP_EOL;
$outstr .= ' '.PHP_EOL;
-// $outstr .= ' '.PHP_EOL;
-/* $outstr .= ' '.PHP_EOL;
- $outstr .= ' '.PHP_EOL;
- */ $outstr .= ' '.PHP_EOL;
+ $outstr .= ' '.PHP_EOL;
$outstr .= ' '.PHP_EOL;
$outstr .= ' '.PHP_EOL;