Keyboard Shortcuts
Likes
Search
Locked
Starting jmriHeadless with specific "Panel" and "Jython script"
#scripting
#rpi
Greetings,
I think I've got my configuration working to control the Walther 130' DCC-controlled turntable from our LCC control panel. As a reminder, I've got a Raspberry Pi mounted under the module, along with several Tower-LCC nodes (connected by a LCC-Buffer-USB to the Raspberry Pi) and another Serial cable going to the NCE Command Station. I've spent the evening in PanelPro, pressing buttons, making the turntable go where I want it. NOW, it's time to "productionize" this... to configure it so that I don't need to have Putty and XMing running, all I want to have to do is connect power to the module and the Command Station, and have the R-Pi start up JMRI "Headless" automatically (to many in the club, that's pronounced "automagically.") I'm looking for command-line prompts, and while I've found a couple of useful ones, I don't see how to:
This specifies the configuration and profile files, per the instructions on the JMRI website. I've also go: script: /home/brian/.jmri/turnoutListener.py "panel" definition /home/brian/.jmri/My_JMRI_ How can I indicate to use those when jmriHeadless is run? Thanks, Brian Pickering |
Randall Wood
You want to do two things:
You may also want to consider: - Use VNC, not X-over-SSH, to access your Raspberry Pi -- this way, once you configure the default account to auto-login, PanelPro can be configured to be automatically launched by that user, and you can use VNC to connect to the running instance of PanelPro instead of only being able to launch PanelPro after you connect with Putty. |
¿ªÔÆÌåÓý
You can also configure the Raspberry Pi to automatically login as a user and start JMRI in headless mode. ?see, for example?. The link above mentions executing a script at login. ?This can be a simple call to start JMRI with the appropriate options. There is some advantage to this, primarily a slight reduction in processor and memory usage ( due to not drawing the GUI ). ?In a memory constrained setting, conservation of memory can be important. Paul |