I have made automation app to control lights at my office.
I have used the RPi & to control the setup over wifi I have used php.
I am using it only on wifi & not via internet, I want to create a shutdown button which I am unable to.
I am using the following php code
system("sudo shutdown now")
But its not working.
I googled some solutions but it was using python approach, which I dont want to.
Is there any other solution or something that I am missing.
Experts plz help.
Thanks & Regards
Swapneel