Python in to the magic mirror.
sdetweil last edited by
does your python script continue to run once its started? the design of the node helper starting the script every second depends on the script ending…
or as you have found you will kill the system (doesn’t matter, pi or larger)…
you could do it your suggested way… but typically, one would add code in the notification received to start it once…
You can put
var process = spawn("python", ["/home/pi/src/P2000.py"])
startfunction if you want to execute when module is successfully loaded.
Or you can make some
STARTnotification from main module then use it as trigger for execution. You can use
socketNotificationReceivedfunction to that purpose.
Or, you can terminate spawned child process when it becomes needless.
paulvanderheijden90 last edited by
Yes one time start the python and it will run.