# HG changeset patch # User Michiel Broek # Date 1428224985 -7200 # Node ID 0f3fe4fa09771bf17189747e69b83d682b0a47ae # Parent 12734a3774e8e95f3049645c24d5569c4982f35b Leds on if any state value is set. diff -r 12734a3774e8 -r 0f3fe4fa0977 www-thermferm/liveview.php --- a/www-thermferm/liveview.php Thu Apr 02 23:24:32 2015 +0200 +++ b/www-thermferm/liveview.php Sun Apr 05 11:09:45 2015 +0200 @@ -351,17 +351,17 @@ $outstr .= ' '.PHP_EOL; $outstr .= '
'.PHP_EOL; - if ($cooler_state == "100") + if ($cooler_state) $cooler_led = "on"; $outstr .= '
'.PHP_EOL; $outstr .= '
Cool'.PHP_EOL; $outstr .= '
'.PHP_EOL; - if ($heater_state == "100") + if ($heater_state) $heater_led = "on"; $outstr .= '
'.PHP_EOL; $outstr .= '
Heat'.PHP_EOL; $outstr .= '
'.PHP_EOL; - if ($fan_state == "100") + if ($fan_state) $fan_led = "on"; $outstr .= '
'.PHP_EOL; $outstr .= '
Fan'.PHP_EOL;