I want to execute a python script.
But it doesn¡¯t work.? All it will be doing is using the raspberry's GPIO pins to control some servos.? The automation of the railroad will be put on hold, to minimize any impact on the JMRI.
I¡¯ve created the python scripts using Thonny.? I can run them within the Thonny editor, so they work.? And I¡¯ve written other JMRI scripts that control other things like my semaphore or set global variables, so I know execfile works to run another JMRI scripts.
Does JMRI require the scripts to be a certain way or protocol?? If so, would I be able to put the Thonny scripts into the JMRI automat template script and be able to access the GPIO pins?? Which template script should I use?
Or is there a way to compile the Thonny scripts and I can call the compiled scripts from JMRI?
Has anyone tried to do this already?
Also, I¡¯ve had some syntax errors in that I misspelled some variables, but where does the error of the script go?? This would really help when writing and debugging the scripts.
Thanks, Kirk Ervin