¿ªÔÆÌåÓý

Locked Re: Starting jmriHeadless with specific "Panel" and "Jython script" #scripting #rpi


 

¿ªÔÆÌåÓý




On Jun 1, 2019, at 7:01 AM, Randall Wood via Groups.Io <rhwood@...> wrote:

You want to do two things:

  • In your profile, using PanelPro, under "Preferences->Start Up", you want to add an Open File (pointing to your Turntable.xml file) and Run Script action (referring to your script)
  • Use the command "/opt/JMRI/jmriHeadless --profile=/home/brian/.jmri/My_JMRI_Railroad.jmri" (the config option points to instructions about which profile to use if --profile is not specified, and the profile is a directory with a potentially large number of files).

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

Join [email protected] to automatically receive all group messages.