2

I want to run a script remotely on raspberry pi and get feedback. It's easy when I have 1 raspberry pi: I just log in with ssh, do my stuff and see feedback on my remote terminal.

To be precise: the script downloads files from dropbox. And of course raspberries will be spread on huge area so they are not in local network.

But I want to do it with many raspberries (about 100 pieces) at the same time so there must be a better way to do it.

So far I've seen cgi-style solutions and e-mailing feedback to gmail.com.

I'd rather have some sort of proprietary server that communicates via sockets to raspberry pi.

Any other solutions?

2 Answers2

3

You might want to look into MQTT. I use mosquitto as my broker(server)/client on the Pi and and knoleary's (knolleary.net/arduino-client-for-mqtt/) library on several Arduinos. However, there are many other open source MQTT Brokers/Clients available on every platform.

MQTT, Message Queue Telemetry Transport, is a open protocol that implements a publish/subscribe architecture that allows clients to publish (send) information to the broker then allow any number of clients to subscribe (receive) that information. The information does not have to go to any specific user, except to the broker, and multiple clients can be sent the information to use. Of course there are permissions and encryption available to restrict who can have access.

It is not a ready made script and it will require programming but there are many examples out there.

Joe Zilch
  • 116
  • 1
  • 3
1

I've found something worth considering: https://dweet.io. Maybe also JSON-RPC is worth to look at.