Hello,
i have a button on a webpage that when clicked, it will run a python file.
#php code to handle it
<?php
if (isset($_POST['LightOn'])){
exec("sudo python /home/pi/lightOn.py");
}
?>
how can i be notified after successfully running the lightOn.py file?