"") { $service_url = 'http://192.168.1.99/SetHHtoOFF?params=' . $_POST["HHOFF"]; $curl = curl_init($service_url); $curl_response = curl_exec($curl); curl_close($curl); } if ($_POST["MMOFF"] <> "") { $service_url = 'http://192.168.1.99/SetMMtoOFF?params=' . $_POST["MMOFF"]; $curl = curl_init($service_url); $curl_response = curl_exec($curl); curl_close($curl); } if ($_POST["Tol"] <> "") { $service_url = 'http://192.168.1.99/SetTolerance?params=' . $_POST["Tol"]; $curl = curl_init($service_url); $curl_response = curl_exec($curl); curl_close($curl); } if ($_POST["MinLum"] <> "") { $service_url = 'http://192.168.1.99/SetMinLum?params=' . $_POST["MinLum"]; $curl = curl_init($service_url); $curl_response = curl_exec($curl); curl_close($curl); } if ($_POST["AutoCtrl"] == "on") { $service_url = 'http://192.168.1.99/SetAutoCtrl?params=1'; $curl = curl_init($service_url); $curl_response = curl_exec($curl); } else { $service_url = 'http://192.168.1.99/SetAutoCtrl?params=0'; $curl = curl_init($service_url); $curl_response = curl_exec($curl); } curl_close($curl); if ($_POST["Lights"] == "off") { $service_url = 'http://192.168.1.99/ManualONOFF?params=0'; $curl = curl_init($service_url); $curl_response = curl_exec($curl); curl_close($curl); } else { if ($_POST["Lights"] == "on") { $service_url = 'http://192.168.1.99/ManualONOFF?params=1'; $curl = curl_init($service_url); $curl_response = curl_exec($curl); curl_close($curl); } } header("Refresh:0"); ?>

Minimum luminosity:
Current luminosity:
Tolerance: %
Nexa status is
Time now:
Time to turn off:
0) { echo "PIR minutes to OFF: ", $curl_response; } ?>

method=post> Light Automatic Control: "; } else { if ($DeviceActive == 1) { echo "
Turn Device "; } else { echo "
Turn Device "; } echo "
Light Automatic Control: "; } ?>
Hour to turn off:
Minute to turn off:
Tolerance:
Minimum luminosity:

Set Current Luminosity Value As Minimum Luminosity

"; ?>