SOLVED show and hide modules using python ?
Hello ,does anyone know how to show and hide modules using python ?
you can use a node helper to collect info from python and the send that info to modulename.js and it can lookup the module call it’s module.suspend() method
my python.print module shows how to collect python print statements and send them to the modulename.js
@sdetweil thanks a lot bro , yes I sow your module from the last time when you tell me to check it , and use it to display info from my max30102 sensor , I’ll share all of my codes with this forum members when I end it ,
still have a problem just on the displaying the outputs of my voice control python code on the mirror , I’m trying hard , if I lose hope can I share it with you and you do it for me please ? (this project is my PFE)
@sakliadem what is the problem with displaying output?
node helper starts python script in background
python script does print
node helper gets stdout text from running python script
node helper sends to front end
front end receives, processes and creates content
front end tells mm new content is available by calling updateDom()
mm calls getDom() to get new content to display where module position is
@sdetweil thank you , i did it