I have a gevent-socketio server program (similar to the simple-chat-example) running. There is a second python script on the same machine, which does motion detection and also runs endlessly. I want to let them both talk to each other and in some cases the gevent-socketio server will trigger events for his client upon recieving a message from the motion-detection.
The machine is a RasperryPi, running Raspian Linux and I'm using python 2.7 (v3 is also available).
- How would I connect the two scripts, so they can send messages to each other?
- Is the answer in this SO Question the way to go?
- Does this zmq work with multiple programs or is it only for multiple threads in single program?
- In general, what is the "best" solution, when both scripts run on the same machine (considering the fact that gevent is already used in both programs)?