Pyro – Networking made simple
Conclusion
As I've walked through the code, you've probably noticed that the majority of it is not related to Pyro at all; rather, the code does whatever your application would normally do. Pyro is just an overlay that allows multiple hardware devices to interact as if they are all on a local machine by hiding all of the networking, so you don't have to worry about it.
Another application I set up was connected to a sound system, so any calls for sound effects were directed to the Pyro server. Other Pyro daemons controlled four scoreboard screens similar to the application described here. Another one ran a high score display on a fifth monitor. Pyro hid all of the networking code, so all I had to do was call things like sound.playBuzzer()
and highScore.addTeam()
.
Infos
- Pyro: https://pythonhosted.org/Pyro4/
- GPIO pin numbering: https://www.raspberrypi.org/forums/viewtopic.php?p=1239056
- CherryPy: https://cherrypy.org/
« Previous 1 2 3 4 5
Buy this article as PDF
(incl. VAT)