Read the statement by Michael Teeuw here.
Python in to the magic mirror.
-
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…
-
@paulvanderheijden90
You can putvar process = spawn("python", ["/home/pi/src/P2000.py"])
intostart
function if you want to execute when module is successfully loaded.Or you can make some
START
notification from main module then use it as trigger for execution. You can usesocketNotificationReceived
function to that purpose.Or, you can terminate spawned child process when it becomes needless.
-
@sdetweil
Yes one time start the python and it will run.