diff -r f3b0e9ac9bcb -r 7b0f819a3805 www-thermferm/units.php --- a/www-thermferm/units.php Sun Feb 15 23:09:00 2015 +0100 +++ b/www-thermferm/units.php Mon Feb 16 19:52:42 2015 +0100 @@ -203,10 +203,10 @@ if (($_POST['TempSetMin'] < -5) || ($_POST['TempSetMin'] > 15)) return 6; - if (($_POST['HeaterDelay'] < 0) || ($_POST['HeaterDelay'] > 45)) + if (($_POST['HeaterDelay'] < 0) || ($_POST['HeaterDelay'] > 720)) return 7; - if (($_POST['CoolerDelay'] < 0) || ($_POST['CoolerDelay'] > 45)) + if (($_POST['CoolerDelay'] < 0) || ($_POST['CoolerDelay'] > 720)) return 8; if (($_POST['IdleRangeL'] > 0) || ($_POST['IdleRangeL'] < -5)) @@ -215,7 +215,7 @@ if (($_POST['IdleRangeH'] < 0) || ($_POST['IdleRangeH'] > 5)) return 10; - if (($_POST['LightDelay'] < 0) || ($_POST['LightDelay'] > 45)) + if (($_POST['LightDelay'] < 0) || ($_POST['LightDelay'] > 720)) return 11; } else { @@ -256,15 +256,15 @@ break; case 6: $error = 'Temperature Minimum must be between -5 and 15 °C'; break; - case 7: $error = 'Heater Delay must be bewteen 0 and 45'; + case 7: $error = 'Heater Delay must be bewteen 0 and 720 seconds'; break; - case 8: $error = 'Cooler Delay must be bewteen 0 and 45'; + case 8: $error = 'Cooler Delay must be bewteen 0 and 720 seconds'; break; case 9: $error = 'Idle Range Low must be between -5 en 0'; break; case 10: $error = 'Idle Range High must be between 0 and 5'; break; - case 11: $error = 'Light Delay must be bewteen 0 and 45'; + case 11: $error = 'Light Delay must be bewteen 0 and 720 seconds'; break; case 99: load('units.php'); @@ -397,7 +397,7 @@ if ($f[0] == "HEATER_DELAY") { $outstr .= ' '.PHP_EOL; $outstr .= ' Heater Switch Delay'.PHP_EOL; - $outstr .= ' * 15 seconds'.PHP_EOL; + $outstr .= ' seconds (0..720)'.PHP_EOL; $outstr .= ' '.PHP_EOL; } if ($f[0] == "COOLER_ADDRESS") { @@ -424,7 +424,7 @@ if ($f[0] == "COOLER_DELAY") { $outstr .= ' '.PHP_EOL; $outstr .= ' Cooler Switch Delay'.PHP_EOL; - $outstr .= ' * 15 seconds'.PHP_EOL; + $outstr .= ' seconds (0..720)'.PHP_EOL; $outstr .= ' '.PHP_EOL; } if ($f[0] == "FAN_ADDRESS") { @@ -472,7 +472,7 @@ if ($f[0] == "LIGHT_DELAY") { $outstr .= ' '.PHP_EOL; $outstr .= ' Lights Delay'.PHP_EOL; - $outstr .= ' * 15 seconds'.PHP_EOL; + $outstr .= ' seconds (0..720)'.PHP_EOL; $outstr .= ' '.PHP_EOL; } if ($f[0] == "DOOR_ADDRESS") { @@ -532,13 +532,13 @@ if ($f[0] == "IDLE_RANGE_L") { $outstr .= ' '.PHP_EOL; $outstr .= ' Idle Range Low'.PHP_EOL; - $outstr .= ' °C (Cooler margin)'.PHP_EOL; + $outstr .= ' °C (Cooler margin)'.PHP_EOL; $outstr .= ' '.PHP_EOL; } if ($f[0] == "IDLE_RANGE_H") { $outstr .= ' '.PHP_EOL; $outstr .= ' Idle Range High'.PHP_EOL; - $outstr .= ' °C (Heater margin)'.PHP_EOL; + $outstr .= ' °C (Heater margin)'.PHP_EOL; $outstr .= ' '.PHP_EOL; } if ($f[0] == "PID_KP") { @@ -663,9 +663,9 @@ $outstr .= ''; $outstr .= ''; $outstr .= ''; - $outstr .= ''; - $outstr .= ''; - $outstr .= ''; + $outstr .= ''; + $outstr .= ''; + $outstr .= ''; $outstr .= ''; $outstr .= ''; $outstr .= '';