3

Let's say I have a website and multiple pis. And I want to control my Pi from the website, for example I can reboot that X pi by just clicking on the button. Does anyone have a tool that do that ? Should I do that by using PHP, Python or what?

user2849967
  • 131
  • 2

1 Answers1

2

What you run on your website is irrelevant, so long as you have a safe login functionality and clients can receive messages.

Make the PIs login (python, perl libwww, even just curl if you're frisky) at intervals, and retrieve instructions to act on.

Limit these actions with a whitelist on the PI, since much will require root. You can use textfiles/fifos in e.g. /tmp if you wish to do webrequests as not-root, and read output as root.

user400344
  • 264
  • 2
  • 4