How to have Python and JS talk to each other?
I have a question for the JS / Python pros out there:
I have a python program doing some long lasting process and consistently printing out the progress of its work to the console. (I have it running in a tmux virtual shell)
I was wondering what would be the best way to “include” this program into a mirror module.
A first step would be to pass on the python stdout print to a JS module.
What is the best way for that?
Is there any way for a python program to “talk” to my JS module?
Thanks for any help or hints!
@sdetweil Great! Will have a look at it. Thank you Sam!
@lavolp3 you can have a look into https://github.com/paviro/MMM-Facial-Recognition/blob/master/node_helper.js which is doing the communication between the python script and module
@strawberry-3-141 and that uses a larger wrapper of python scripts called PythonShell