I have five Raspberry Pi zero W devices and each device connected to 4 channel relay module. These five devices are in different locations and connected to the internet. We wrote a python program to control the relays by using SSH (console or remotely) and it works fine.

My main objective is to control the relays over the internet by using a web browser and mobile apps.

Give me any suggestions for the process.


1 Answer 1


Set up a simple REST-API with PHP for example that triggers local controlling code. You may want to add some form of authentication tho like supplying a password in the request.

A request would be along the lines of:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.