1

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.

2
3

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:

http://pi1.domain.com/relay/on/1?pw=password

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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